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.77k stars 1.01k forks source link

delete_tweet.py returns 403 in free tier #141

Open pat-ladon opened 1 year ago

pat-ladon commented 1 year ago

Hi @JessicaGarson,

Describe the bug While create_tweet.py worked, delete_tweet.py didn't with the OAuth1. The following exception is raised: Exception: Request returned an error: 403 {"title":"Forbidden","status":403,"detail":"Your client app is not configured with the appropriate oauth1 app permissions for this endpoint.","type":"https://api.twitter.com/2/problems/oauth1-permissions"}

To Reproduce Steps to reproduce the behavior: Execute delete_tweet.py with OAuth1 in Free Tier.

Expected behavior The tweet should be deleted in Free tier as the delete endpoint is listed under my Products in the free tier.

Additional context Thanks for providing these sample files in different languages!

yiyiyi0817 commented 7 months ago

Hi, I have also encountered this problem, it has been a few months since you posted, have you solved this problem? @pat-ladon