# Replace Tweet ID
id = 1441054496931541004
-# 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
+# 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_liking_users(id, user_fields=["profile_image_url"])
# Print the username and the user's profile image url
# Replace Tweet ID
id = 1441054496931541004
-# 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
+# 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_retweeters(id, user_fields=["profile_image_url"])
# Print the username and the user's profile image url
# Replace user ID
id = 2244994945
-# 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
+# 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_followers(id, user_fields=["profile_image_url"])
# Print the username and the user's profile image url
# Replace Tweet IDs
ids = ["1409935014725177344", "1409931481552543749", "1441054496931541004"]
-# By default the Tweet ID and Tweet text are returned. If you want additional fields, use the appropriate
-# fields and expansions
+# By default the Tweet ID and Tweet text are returned. If you want additional
+# Tweet fields, specify those in tweet_fields
tweets = client.get_tweets(ids, tweet_fields=["created_at"])
# Print the Tweet text and the time the Tweet was created
# Replace User IDs
ids = ['2244994945']
-# 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
+# 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"])
# Print the username and the user's profile image url