getUserBy(username_fields_expansions_) - daneden/Twift GitHub Wiki
Returns a variety of information about a single user specified by the requested username.
public func getUserBy(username: String,
fields: Set<User.Field> = [],
expansions: [User.Expansions] = []
)
Equivalent to GET /2/users/by/username/:username
.
- username: The screen name of the user to lookup.
- 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 the User and any pinned tweets