You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just adding another status update thingy in tweet(self):
def tweet(self):
'''
Publishes Tweet with attached video
'''
request_data = {
'status': 'I just uploaded a video with the @TwitterAPI.',
'media_ids': self.media_id
}
req = requests.post(url=POST_TWEET_URL, data=request_data, auth=oauth)
print(req.json())
thread_data = {
'status': 'This tweet will be in reply to the video i just uploaded',
'in_reply_to_status_id': req.json()['id'],
'auto_populate_reply_metadata': True
}
req2 = requests.post(url=POST_TWEET_URL, data=thread_data, auth=oauth)
print(req2.json())
Hi
Uploading a video works!
How could i post an attached tweet to the tweet i uploaded a video for to make a thread?
Thanks!
The text was updated successfully, but these errors were encountered: