retweet(__userId_) - daneden/Twift GitHub Wiki

retweet(_:userId:)

Causes the user ID to Retweet the target Tweet

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

Equivalent to POST /2/users/:user_id/retweets

Parameters

  • tweetId: The ID of the Tweet that you would like the userId to Retweet.
  • userId: The user ID who you are Retweeting 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