ryota-murakami / twitter-bearer-token-getter
CLI tool of get twitter api bearer token.
Requires
- php: ^5.3.2 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.12
This package is not auto-updated.
Last update: 2020-02-07 17:09:44 UTC
README
CLI tool of twitter API Bearer Token.
In order to acquire a bearer token, you need to send a POST request directly to the endpoint of twitter api.
Official document of bearer token
We have to send some information to the 'Authorization' HTTP Header with credentialization, the process is a little troublesome.
It is a tool to alleviate such trouble and to obtain a bearer token easily.
Preparation
- Consumer Key(API Key)
- Consumer Secret (API Secret)
Installation
composer global require ryota-murakami/twitter-bearer-token-getter
If you have not gone yet, so please do the following.
export PATH="$PATH:$HOME/.composer/vendor/bin"
Run
twitter-bearer-token-getter
After Run,
You will be prompted for the consumer key and consumer secret interactively at the terminal so please enter them according to the console message.
If the above two information are correctly entered, a bearer token will be displayed on the terminal.