# request them using the tweet_fields parameter
tweets = client.get_liked_tweets(id, tweet_fields=["created_at"])
-# Print the Tweet text and the time the Tweet was created
+# Print the Tweet id and the time the Tweet was created
for tweet in tweets.data:
print(tweet.id)
print(tweet.created_at)
# By default the Tweet ID and Tweet text will be returned.
tweets = client.get_users_mentions(id)
-# Print the Tweet text
+# Print the Tweet id
for tweet in tweets.data:
print(tweet.id)
\ No newline at end of file
# By default the Tweet ID and Tweet text will be returned.
tweets = client.get_users_tweets(id)
-# Print the Tweet text
+# Print the Tweet id
for tweet in tweets.data:
print(tweet.id)
\ No newline at end of file
# Tweet fields, specify those in tweet_fields
tweets = client.get_tweets(ids=ids, tweet_fields=["created_at"])
-# Print the Tweet text and the time the Tweet was created
+# Print the Tweet id and the time the Tweet was created
for tweet in tweets.data:
print(tweet.id)
print(tweet.created_at)