Skip to content

getLikingUsers(for_fields_expansions_paginationToken_maxResults_)

daneden edited this page Apr 27, 2022 · 2 revisions

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

Allows you to get information about a Tweet’s liking users.

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

Equivalent to GET /2/tweets/:id/liking_users

Parameters

  • tweetId: Tweet ID of the Tweet to request liking 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
  • paginationToken: This parameter is used to move forwards or backwards through 'pages' of results, based on the value of the next_token or previous_token in the response.
  • maxResults: Specifies the number of Tweets to try and retrieve, up to a maximum of 100 per distinct request. By default, 10 results are returned if this parameter is not supplied. The minimum permitted value is 10. It is possible to receive less than the max_results per request throughout the pagination process.

Returns

A response object containing an array of Users that like the target Tweet

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally