Is it possible to use my twitter API registered account on account X to tweet from another account Y, which is also mine?
Question posted in Twitter API
The official Twitter API documentation can be found here.
The official Twitter API documentation can be found here.
2
Answers
Yes, you’d simply have to authenticate as account Y using OAuth 1.0a.
See https://developer.twitter.com/en/docs/basics/authentication/overview and https://developer.twitter.com/en/docs/basics/authentication/oauth-1-0a for more information.
If you’re using Tweepy, see https://tweepy.readthedocs.io/en/latest/auth_tutorial.html.
It seems like Twitter made it intentionally hard to do this. Let me explain how I to do it, based on how I did it,
tw-oob-oauth
from the file name../tw-oob-oauth --key ${your_consumer_key} --secret ${your_consumer_secret}
your_consumer_key
means your API key, andyour_consumer_secret
means your API secret (those are basically at the top of your copied keys or you can find them in the keys and tokens section of your app in the developer portal).Access Token
andToken Secret
Hope it saves some hours of your valuable time, Cheers!