xdevplatform / Twitter-API-v2-sample-code

Sample code for the Twitter API v2 endpoints
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api
Apache License 2.0
2.61k stars 967 forks source link

you must use keys and tokens from a Twitter developer App that is attached to a Project #144

Open zhangyuanxue opened 7 months ago

zhangyuanxue commented 7 months ago

Describe the bug I am a pro account user, and the Bearer Token I requested has been attached to a Project,when i request the api https://api.twitter.com/2/users/:id/following , i get the follow error:

When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal. iss

i find the change logs as follow, but i neet the follow api, i want to known if there any solution? image