getUsersBy(usernames_fields_expansions_) - daneden/Twift GitHub Wiki
Returns a variety of information about one or more users specified by the requested usernames (handles).
public func getUsersBy(usernames: [String],
fields: Set<User.Field> = [],
expansions: [User.Expansions] = []
)
Equivalent to GET /2/users/by
.
- usernames: A list of usernames (handles) to look up. 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
A Twitter API response object containing an array of User
structs and any pinned tweets in the includes
property