Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created September 6, 2022 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/236fd949836d857dd844648efde6528d to your computer and use it in GitHub Desktop.
Save quantra-go-algo/236fd949836d857dd844648efde6528d to your computer and use it in GitHub Desktop.
# using get_users with multiple ids
ids = ["869660137", "21577803", "86813650", "44196397"]
# Fetch specific user fields
users = client.get_users(ids=ids, user_fields=[
'name', 'username', 'description'])
for user in users.data:
print(
f"The user name for user id {user.id} is {user.username} and the name is {user.name}.")
print(f"'{user.description}'\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment