Created
March 17, 2019 19:25
-
-
Save fatihbaltaci/8dbb3765db6325ed045eb557c45a01c4 to your computer and use it in GitHub Desktop.
Get users information from Slack with Python 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
TOKEN = "<YOUR_TOKEN>" | |
if __name__ == '__main__': | |
files_list_url = 'https://slack.com/api/users.list' | |
data = {"token": TOKEN} | |
response = requests.post(files_list_url, data=data) | |
print(json.dumps(response.json(), indent=4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment