8000 README example doesn't work · Issue #7 · slackapi/python-slack-sdk · GitHub
[go: up one dir, main page]

Skip to content

README example doesn't work #7

@seancron

Description

@seancron
from slackclient import SlackClient

token = 'xoxp-28192348123947234198234'
sc = SlackClient(token)
print sc.api_call('api.test')

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

     19 
     20     def api_call(self, method, **kwargs):
---> 21         return self.server.api_call(method, kwargs)
     22 
     23     def rtm_read(self):

TypeError: api_call() takes exactly 2 arguments (3 given)

It looks like PRs #2 and #5 both include the fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0