23
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

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

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
23
Help us understand the problem. What are the problem?