tweetinvi
tweetinvi copied to clipboard
How to check if authenticated user is authorized to retweet?
I am getting a couple of times the "not authorized" exception. How can I check if the authenticated user is authorized before PublishRetweet?
{"Reason : Unauthorized\r\nDetails : You have been blocked from retweeting this user's tweets at their request. (136)\r\nCode : 401\r\nDate : 02.10.2021 16:58:09 +02:00\r\nURL : https://api.twitter.com/1.1/statuses/retweet/xxxxxxxxxxxxxxxxx.json?tweet_mode=extended\r\nTwitter documentation description : Unauthorized - Authentication credentials were missing or incorrect.\r\n"}
best regards
Hello. I am not aware of any Twitter API endpoint allowing a user to check if he will be blocked before publishing a tweet. A user can see who he has blocked but to my knowledge there is no way to check who has blocked him.
I would suggest requesting this on twittercommunity.com
or simply handling this exception.