Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/password123456/slack_api_example

slack-api code snippets using slack_sdk, python requests
https://github.com/password123456/slack_api_example

code-snippets python python-slack slack slack-api-channel slack-api-userlist slack-apis slack-bot slack-example slack-fileupload slack-notifications slack-web-api slack-webhook

Last synced: about 3 hours ago
JSON representation

slack-api code snippets using slack_sdk, python requests

Awesome Lists containing this project

README

        

# slack_example

![made-with-python][made-with-python]
![Python Versions][pyversion-button]
![Hits][hits]

[pyversion-button]: https://img.shields.io/pypi/pyversions/Markdown.svg
[made-with-python]: https://img.shields.io/badge/Made%20with-Python-1f425f.svg
[hits]: https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fpassword123456%2Fslack_api_example&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false(https://hits.seeyoufarm.com)

- Meaningless work on the slack

# How to set up
1. Install `slack-sdk`
```
# pip install slack_sdk
```
2. or Install `requests`
```
# pip install requests
```

3. Refer to a API guide
- https://api.slack.com/methods

# Examples - python slack_sdk/requests
- [Retrieve the list of users who have joined on channel](https://github.com/password123456/slack_api_example/tree/main/retrieve_the_list_of_users_who_have_joined_on_channel)
- [Retrieve all users in slack workspace](https://github.com/password123456/slack_api_example/tree/main/retrieve_all_users_in_slack_workspace)
- [Retrieve the uploaded files what files uploaded on channel](https://github.com/password123456/slack_api_example/tree/main/retrieve_the_uploaded_files_what_files_uploaded_on_channel)
- [Bot sending direct message to user](https://github.com/password123456/slack_api_example/tree/main/bot_sending_direct_message_to_user)
- [Bot send a file to channel](https://github.com/password123456/slack_api_example/tree/main/send_a_file_to_the_channel)
- [Bot send a file to user as a direct_message](https://github.com/password123456/slack_api_example/tree/main/send_a_file_to_the_user_as_a_direct_message)
- [Invite user to channel](https://github.com/password123456/slack_api_example/tree/main/invite-user-to-channel)
# And...
- If you find this helpful, please consider giving it a **"star"**:star2: to support further improvements.

## Reference Pages
[Slack API Application](https://api.slack.com/apps)

[Slack API Docs](http://www.slack.dev/python-slack-sdk)