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.65k stars 984 forks source link

403 Error "title": "Client Forbidden", #61

Open Prazav opened 2 years ago

Prazav commented 2 years ago

I have setup app and also connected to the labs still I am getting this error and soluti Screenshot (251) on

andypiper commented 2 years ago

It looks like you have not got keys and tokens from an app on the Developer Portal that is part of a Project. Are you using a standalone app?

andypiper commented 2 years ago

Is this still an issue for you?

lfalcao commented 2 years ago

@andypiper hey, this message returns in this sample (https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Full-Archive-Tweet-Counts/full_archive_tweet_counts.py) probably because of the message:

This endpoint is only available to those users who have been approved for the Academic Research product track. (source)

andypiper commented 2 years ago

Thanks @lfalcao that's reasonable in the case of the Full Archive sample (and I will update the comments for that). @Prazav it is not clear which sample you are trying to run in harsh.py and whether you are using keys and tokens for a v2 project and app. Please clarify!

Prazav commented 2 years ago

Is this still an issue for you?

Sorry For late reply It is working now my direclty using bear tokens