twitter oauth1 authenticator cli
The cli may require to have the following dependencies installed:
- Python3
- make
The application may require you to set your twitter app consumer_key and consumer_secret in a config.ini file.
- To do so, create a config.ini using
mv example.config.ini config.ini - Then replace the file
[AUTH]fields with the corresponding values
[AUTH]
consumer_key=<a_consumer_key
consumer_secret=<a_consumer_secret>To run the application execute make run, this command will ask you for a verifier PIN. To get this PIN
1 - Open on your browser the auth url.
2 - Click on Authorize App
3 - then copy and paste the pin on your terminal.
The CLI should spit out the twitter user api key and secret you can use to perform tasks on their behalf.
Example:
venv/bin/python3 main.py
auth url: https://api.twitter.com/oauth/authorize?oauth_token=<token>
Verifier:3553107
api_key: <USER_API_KEY>
api_secret: <USER_API_SECRET>
Note: please make sure the OAuth 1.0a is turned on for your application

