Python-slack-sdk: Finding the available methods

Created on 29 Sep 2020  路  2Comments  路  Source: slackapi/python-slack-sdk

Hi, I'm trying to learn how to use the client but I don't quite understand what are the available API calls that I can do with it. I was able to post a message into a group but that's it. I would like, for example, to do a users.list call.

Thanks in advance

question

Most helpful comment

Hi @tinoargentino! Using this client, you have the ability to interact with the methods available from the Slack Web API, which you can find listed here, as well as the RTM API. I believe you're asking about the Web API, so I'll be referencing that below.

The corresponding API methods on the client follow the pattern of replacing the . that we see in the API documentation linked above with underscores (users.list => users_list). I find it helpful to look at the WebClient class and doing a quick search using that format adjustment.

Last but not least, if you still have any doubts about how to execute the method, doing a search in this repository for the method usually turns up an example in which it's used, as we see here with users_list.

Hope this helps! If you have any further questions, let us know, otherwise feel free to close this issue.

All 2 comments

Hi @tinoargentino! Using this client, you have the ability to interact with the methods available from the Slack Web API, which you can find listed here, as well as the RTM API. I believe you're asking about the Web API, so I'll be referencing that below.

The corresponding API methods on the client follow the pattern of replacing the . that we see in the API documentation linked above with underscores (users.list => users_list). I find it helpful to look at the WebClient class and doing a quick search using that format adjustment.

Last but not least, if you still have any doubts about how to execute the method, doing a search in this repository for the method usually turns up an example in which it's used, as we see here with users_list.

Hope this helps! If you have any further questions, let us know, otherwise feel free to close this issue.

Hi @misscoded thanks so much for such a quick and comprehensive reply! I'm leaving here an additional resource that I found useful since posting my original message

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marshallino16 picture marshallino16  路  3Comments

vv-grinko picture vv-grinko  路  3Comments

kompotkot picture kompotkot  路  4Comments

hemanth1991 picture hemanth1991  路  5Comments

sofya-salmanova picture sofya-salmanova  路  5Comments