Get a participant's username and screen name in Slack

I wanted only ID and name, so for the time being

import requests
import json

url = "https://slack.com/api/users.list"
token = ""

userlist = {}
payload = {"token": token}
response = requests.get(url,params=payload)
user_json = response.json()
for i in user_json["members"]:
  userlist[i["id"]] = i["name"]
print(userlist)

I will get involved in various ways from here

Recommended Posts

Get a participant's username and screen name in Slack
How to get a specific column name and index name in pandas DataFrame
Get the file name in a folder using glob
I get a UnicodeDecodeError in mecab-python3
Get 1000 posts in Python order from all Slack channels and put them together in a txt file
I get a KeyError in pyclustering.xmeans
Get the host name in Python
Get custom emoji registered in slack
Format the Git log and get the committed file name in csv format
Get a Boolean in Flask's request
Replace the directory name and the file name in the directory together with a Linux command.
If you get a Programming Error: (1146, "Table'<table name>' doesn't exist") in Django
How to make a container name a subdomain and make it accessible in Docker
How to get a namespaced view name from a URL (path_info) in Django
A story connecting Slack and google spreadsheets
[Python] [Windows] Take a screen capture in Python
Get a token for conoha in python
Define a division value in Django and easily reflect it on the screen
I want to get the file name, line number, and function name in Python 3.4
A tool to insert the country name and country code in the IP address part
Get iPad maintenance by scraping and notify Slack
Organize python modules and packages in a mess
[Python] Get the files in a folder with Python
When I get a chromedriver error in Selenium
Receives and processes n objects in a list
Get the caller of a function in Python
I wrote a class in Python3 and Java
A memo created in a package and registered in PyPI
Get only the subclass elements in a list
Get a panoramic image in Google Street View
Recursively get website titles and URLs in Scrapy
Get a glimpse of machine learning in Python
Get a row containing a specific element in np.where
Use slackbot as a relay and return from bottle to slack in json format.