-
-
Save quantra-go-algo/236fd949836d857dd844648efde6528d to your computer and use it in GitHub Desktop.
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
# 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