TweetDuck
TweetDuck copied to clipboard
Add Pin / Unpin tweet context-menu items
Add the ability to Pin / Unpin a particular tweet, to the current tweet context menu item.
Twitter mentioned adding pinned tweets to the API back in 2014
While nothing seems to be currently documented, the Twitter web client appears to be using API endpoints to implement their Pin / Unpin features.
Inspecting the features, it looks like the following is available:
Pin:
- XHR POST to https://api.twitter.com/1.1/account/pin_tweet.json, with Request Headers:
- content-type: application/x-www-form-urlencoded
- tweet_mode=extended&id=tweet-id
- Response payload: {"pinned_tweets":[pinned-tweet-id]}
Unpin:
- XHR POST to https://api.twitter.com/1.1/account/unpin_tweet.json, with Request Headers:
- content-type: application/x-www-form-urlencoded
- tweet_mode=extended&id=tweet-id
- Response payload: {"pinned_tweets":[]}
See Also:
- https://github.com/friendica/friendica/issues/4077
- emojidex/Twidere-Android-emojidex