Documentation
¶
Overview ¶
Package edit implements editing operations on tweets and tweet metadata.
Index ¶
- type Query
- func Block(userID, blockeeID string) Query
- func Bookmark(userID, tweetID string) Query
- func DeleteTweet(tweetID string) Query
- func Follow(userID, followeeID string) Query
- func Like(userID, tweetID string) Query
- func Mute(userID, muteeID string) Query
- func PinList(userID, listID string) Query
- func Retweet(userID, tweetID string) Query
- func SetRepliesHidden(tweetID string, hidden bool) Query
- func Unblock(userID, blockeeID string) Query
- func Unbookmark(userID, tweetID string) Query
- func Unfollow(userID, followeeID string) Query
- func Unlike(userID, tweetID string) Query
- func Unmute(userID, muteeID string) Query
- func UnpinLists(userID, listID string) Query
- func Unretweet(userID, tweetID string) Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
A Query is a query to modify the contents or properties of tweets.
func Block ¶
Block constructs a query for one user ID to block another user ID.
API: POST 2/users/:id/blocking
func Bookmark ¶
Bookmark constructs a query for the given user ID to bookmark the given tweet ID.
API: 2/users/:id/bookmarks
func DeleteTweet ¶
DeleteTweet constructs a query to delete the given tweet ID.
API: DELETE 2/tweets/:tid
func Follow ¶
Follow constructs a query for one user ID to follow another user ID.
API: POST 2/users/:id/following
func Like ¶
Like constructs a query for the given user ID to like the given tweet ID.
API: POST 2/users/:id/likes
func Mute ¶
Mute constructs a query for one user ID to mute another user ID.
API: POST 2/users/:id/muting
func PinList ¶
PinList constructs a query for one user ID to pin a list ID.
API: POST 2/users/:id/pinned_lists
func Retweet ¶
Retweet constructs a query for the given user ID to retweet the given tweet ID.
API: POST 2/users/:id/retweets
func SetRepliesHidden ¶
SetRepliesHidden constructs a query to set whether replies to the given tweet ID should (hidden == true) or should not (hidden == false) be hidden.
API: PUT 2/tweets/:id/hidden
func Unblock ¶
Unblock constructs a query for one user ID to un-block another user ID.
API: DELETE 2/users/:id/blocking/:other
func Unbookmark ¶
Unbookmark constructs a query for the given user ID to un-like the given tweet ID.
API: DELETE 2/users/:id/bookmarks/:tid
func Unfollow ¶
Unfollow constructs a query for one user ID to un-follow another user ID.
API: DELETE 2/users/:id/following/:other
func Unlike ¶
Unlike constructs a query for the given user ID to un-like the given tweet ID.
API: DELETE 2/users/:id/likes/:tid
func Unmute ¶
Unmute constructs a query for one user ID to un-mute another user ID.
API: DELETE 2/users/:id/muting/:other
func UnpinLists ¶
UnpinList constructs a query for one user ID to un-pin a list ID.
API: DELETE 2/users/:id/pinned_lists/:lid