LoginSignup
23
23

More than 5 years have passed since last update.

とにかく簡単にTwitterのOAuth認証トークンを取得

Posted at

Consumer Key
Consumer Secret
Token
Secret
を取得するのが狙い

$ gem install oauth get-twitter-oauth-token

アプリケーションの登録
https://dev.twitter.com/apps

Consumer KeyConsumer Secret をメモる
以下のように入力&Access hereで出てきたURLにアクセスして表示された数字をPINに入力

$ get-twitter-oauth-token
Consumer Key: hugehugehugehugehugehuge
Consumer Secret: homuhomuhomuhomuhomu
Couldn't get a file descriptor referring to the console
Access here: http://api.twitter.com/oauth/authorize?oauth_token=nyanchuu
and...
PIN: 1234567
Token: 123456-kurasunominnanihanaisyodayo
Secret: watashinosaikounotomodachi
23
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
23