Skip to content

retweets(for_fields_expansions_paginationToken_maxResults_)

daneden edited this page Apr 27, 2022 · 2 revisions

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

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally