getTweets(__fields_expansions_) - daneden/Twift GitHub Wiki
getTweets(_:fields:expansions:)
Returns a variety of information about the Tweet specified by the requested ID or list of IDs.
public func getTweets(_ tweetIds: [Tweet.ID],
fields: Set<Tweet.Field> = [],
expansions: [Tweet.Expansions] = []
)
Parameters
- tweetIds: A comma separated list of Tweet IDs. Up to 100 are allowed in a single request.
- 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 the requested Tweets and additional data objects.