Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

laststance/twitter-bearer-token-getter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bearer Token Getter

Build Status Latest Stable Version Total Downloads License

CLI tool of twitter API Bearer Token.

demo

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

  1. Consumer Key(API Key)
  2. 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.