getTweet(__fields_expansions_) - daneden/Twift GitHub Wiki
getTweet(_:fields:expansions:)
Returns a variety of information about a single Tweet specified by the requested ID.
public func getTweet(_ tweetId: Tweet.ID,
fields: Set<Tweet.Field> = [],
expansions: [Tweet.Expansions] = []
)
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
Returns
A response object containing the requested Tweet and additional data objects.