retweets(for_fields_expansions_paginationToken_maxResults_) - daneden/Twift GitHub Wiki

retweets(for:fields:expansions:paginationToken:maxResults:)

Allows you to get information about who has Retweeted a Tweet.

public func retweets(for tweetId: Tweet.ID,
                       fields: Set<User.Field> = [],
                       expansions: [User.Expansions] = [],
                       paginationToken: String? = nil,
                       maxResults: Int = 10
  )

Equivalent to GET /2/tweets/:tweet_id/retweeted_by

Parameters

  • tweetId: Tweet ID of the Tweet to request Retweeting users of.
  • fields: Any additional fields to include on returned objects
  • expansions: Objects and their corresponding fields that should be expanded in the includes property

Returns

A response object containing an array of users who retweeted the target Tweet, and any associated expansions

⚠️ **GitHub.com Fallback** ⚠️