Android, iOSのアプリで使用しているTwitterのAPIがついに使えなくなった

仕事でメンテナンスしているアプリのTwitter連携の機能が突然使えなくなったので、調べました。

世間で使えなくなったと言われているよりタイムラグがあったのと、Android, iOSで使えなくなった日がそれぞれ違く、数日ラグがありました。

多分、Android, iOSで使ってるConsumer Keyがそれぞれ違うからだと思われます。

動作確認にはtwurlが一番簡単そうだなと思って、まずはインストールしました。

Twurlを使用する | Docs | Twitter Developer Platform

そして上の記事通りauthorizeします。

そして、該当のapiを実行。

$ twurl /1.1/users/show.json  
{"errors":[{"message":"You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product","code":453}]}

https://twittercommunity.com/t/yesterday-everything-was-fine-now-you-currently-have-access-to-a-subset-of-twitter-api-v2-endpoints-and-limited-v1-1-endpoints-e-g-media-post-oauth-only/196198

同じエラーに出会した人もいるようです。

v2を使えるようにすればいいんですが、アプリが2つ(Android, iOS?)あると、有料だそうなので、まだどうするかの結論が出ていないです。