Skip to content

retweets(for_fields_expansions_)

daneden edited this page Jan 20, 2022 · 2 revisions

retweets(for:fields:expansions:)

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]
  )

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