Post a tweet using Twitter API


This is a companion discussion topic for the original entry at http://iq.opengenus.org/tweet-using-twitter-api/
1 Like

I don’t think the second version of this code - using requests - will work. You’ve generated a Bearer-token, and this has no user associated with it, so a Tweet cannot be posted as the API will not know which account to use.

1 Like

Thanks for bringing this to our notice :slightly_smiling_face:

Our initial idea was that as we are using the client key and secret key to generate the access token associated with the Bearer Token, it should link the user correctly. We must have something.

Our author (@s6656) will review and fix it and get back soon :+1: