Skip to content

unretweet(__userId_)

daneden edited this page Apr 3, 2022 · 5 revisions

unretweet(_:userId:)

Causes the user ID to remove the Retweet of a Tweet

public func unretweet(_ tweetId: Tweet.ID, userId: User.ID)

Equivalent to DELETE /2/users/:user_id/retweets/:tweet_id

Parameters

  • tweetId: The ID of the Tweet that you would like the userId to remove the Retweet of.
  • userId: The user ID who you are removing a the Retweet of a Tweet on behalf of. It must match your own user ID or that of an authenticating user.

Returns

A response object containing the result of the request

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally