getListTweets(__fields_expansions_paginationToken_maxResults_) - daneden/Twift GitHub Wiki
getListTweets(_:fields:expansions:paginationToken:maxResults:)
Returns a list of Tweets from the specified List.
public func getListTweets(_ listId: List.ID,
fields: Set<Tweet.Field> = [],
expansions: [Tweet.Expansions] = [],
paginationToken: String? = nil,
maxResults: Int = 100
)
Equivalent to GET /2/lists/:list_id/tweets
Parameters
- listId: The ID of the List whose Tweets you would like to retrieve.
- 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 response object containing an array of Tweets, included expansions, and meta data for pagination