Update examples/API_v2/lookup_users_using_user_ids.py
authorSuhem Parack <sparack@gmail.com>
Tue, 1 Mar 2022 22:57:29 +0000 (14:57 -0800)
committerGitHub <noreply@github.com>
Tue, 1 Mar 2022 22:57:29 +0000 (14:57 -0800)
Co-authored-by: Harmon <Harmon758@gmail.com>
examples/API_v2/lookup_users_using_user_ids.py

index aa22613c712ca1e2e8350a2551344b6d033fd623..78e50a57c5ba6e445220d6a32d219128e8f1f0ed 100644 (file)
@@ -13,7 +13,7 @@ ids = [2244994945, 6253282]
 # By default the user ID, name and username are returned. user_fields can be 
 # used to specify the additional user data that you want returned for each user
 # e.g. profile_image_url
-users = client.get_users(ids, user_fields=["profile_image_url"])
+users = client.get_users(ids=ids, user_fields=["profile_image_url"])
 
 # Print the username and the user's profile image url
 for user in users.data: