LoginSignup
0
1

More than 1 year has passed since last update.

Twitter API V2 BearerTokenの取得

Posted at

BearerTokenの取得

アクセスキーとシークレットアクセスキーで照会

  • ターミナルを開く
curl -u "APIキー:APIシークレット" \
  --data 'grant_type=client_credentials' \
  'https://api.twitter.com/oauth2/token'
  • 返ってきたものがこちら
{"token_type":"bearer","access_token":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}
0
1
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
0
1