Twitter apiへ接続ができない。

조회 수: 8 (최근 30일)
K.S.
K.S. 2022년 2월 9일
댓글: K.S. 2022년 2월 12일
現在MATLAB 2021bのDatafeed toolbox にあるtwitter関数を利用してapiにアクセスしようと試みています。
onsumerKey='x';%sorezore developper アカウントで入手した文字列を入力
ConsumerSecret='xx';
AccessToken='xxx';
AccessTokenSecret='xxxx';
c=twitter(ConsumerKey,ConsumerSecret,AccessToken,AccessTokenSecret)
結果として以下が出力
c.MetaData.errors.messageは以下
You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve
アクセス権限をElevatedにする必要があるとのことなので、権限を以下のように変更。
上記にして再度各種キーとトークンを生成しても
Forbidden
の状況は変わりませんでした。
どのように設定を行えばよろしいでしょうか?

채택된 답변

Hernia Baby
Hernia Baby 2022년 2월 9일
편집: Hernia Baby 2022년 2월 9일
TwitterのAPI利用にはTwitterに対して申請が必要です。
検索したリンクを以下に貼りますので、よろしければご参考願います。
  댓글 수: 2
K.S.
K.S. 2022년 2월 11일

ありがとうございます! 現時点ではまだお示しの権限変更を行ったあとの接続に関しては試せておりませんが、試した後に再度報告いたします。

K.S.
K.S. 2022년 2월 12일
無事以下のようにアクセスが可能になりました。非常に助かりました。ありがとうございます。

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!