quoteTweets(for_fields_expansions_paginationToken_maxResults_) - daneden/Twift GitHub Wiki
quoteTweets(for:fields:expansions:paginationToken:maxResults:)
Returns Quote Tweets for a Tweet specified by the requested Tweet ID.
public func quoteTweets(for tweetId: Tweet.ID,
fields: Set<Tweet.Field> = [],
expansions: [Tweet.Expansions] = [],
paginationToken: String? = nil,
maxResults: Int = 10
)
Equivalent to GET /2/tweets/:id/quote_tweets
Parameters
- tweetId: Unique identifier of the Tweet to request.
- fields: Any additional fields to include on returned objects
- expansions: Objects and their corresponding fields that should be expanded in the
includes
property - paginationToken: When iterating over pages of results, you can pass in the
nextToken
from the previously-returned value to get the next page of results - maxResults: The maximum number of results to fetch.
Returns
A Twitter API response object containing an array of Tweet
structs, requested expansions, and pagination data