Skip to content

Instantly share code, notes, and snippets.

@fatihbaltaci
Created March 17, 2019 19:25
Show Gist options
  • Save fatihbaltaci/8dbb3765db6325ed045eb557c45a01c4 to your computer and use it in GitHub Desktop.
Save fatihbaltaci/8dbb3765db6325ed045eb557c45a01c4 to your computer and use it in GitHub Desktop.
Get users information from Slack with Python 3
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