While making a new Twitter bot (@LesGossesBot, 🇫🇷 une dinguerie), I thought the bot account needed to be a developer account to run applications. Spoiler: it doesn't!
In this Gist I'll show you how easily you can run applications from your developer account on any other account you own, using twurl
!
It's not so hard to follow the documentation, but I was maybe too idiot and struggled with it at first.
When using the Twitter API, you must provide consumer_key
, consumer_secret
, access_token
, access_token_secret
to authenticate. The consumer keys belong to the application. They are the identity of you Twitter App, nothing else. Though, the access tokens belong to the user. They are what authorizes your application to tweet from a user account.