tweetinvi icon indicating copy to clipboard operation
tweetinvi copied to clipboard

How to check if authenticated user is authorized to retweet?

Open Scobiform opened this issue 3 years ago • 1 comments

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

Scobiform avatar Oct 02 '21 13:10 Scobiform

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.

linvi avatar Nov 12 '21 01:11 linvi