User - daneden/Twift GitHub Wiki
The user object contains Twitter user account metadata describing the referenced user.
public struct User: Codable, Identifiable
Codable
, Expandable
, Fielded
, Identifiable
public typealias ID = String
Additional fields that can be requested for User objects
public typealias Field = PartialKeyPath<User>
The unique identifier of this user.
public let id: ID
The name of the user, as they’ve defined it on their profile. Not necessarily a person’s name. Typically capped at 50 characters, but subject to change.
public let name: String
The Twitter screen name, handle, or alias that this user identifies themselves with. Usernames are unique but subject to change. Typically a maximum of 15 characters long, but some historical accounts may exist with longer names.
public let username: String
The UTC datetime that the user account was created on Twitter.
public let createdAt: Date?
Indicates if this user has chosen to protect their Tweets (in other words, if this user's Tweets are private).
public let protected: Bool?
Contains withholding details for withheld content, if applicable.
public let withheld: WithheldInformation?
The location specified in the user's profile, if the user provided one. As this is a freeform value, it may not indicate a valid location, but it may be fuzzily evaluated when performing searches with location queries.
public let location: String?
Unique identifier of this user's pinned Tweet.
public let pinnedTweetId: Tweet.ID?
The URL specified in the user's profile, if present.
public let url: String?
The text of this user's profile description (also known as bio), if the user provided one.
public let description: String?
Indicates if this user is a verified Twitter User.
public let verified: Bool?
Contains details about text that has a special meaning in the user's description.
public let entities: Entities?
The URL to the profile image for this user, as shown on the user's profile.
public let profileImageUrl: URL?
A URL to larger version of the user's profile image
public var profileImageUrlLarger: URL?
A URL to the original, unmodified version of the user's profile image. This image may be very large.
public var profileImageUrlOriginal: URL?
Contains details about activity for this user.
public let publicMetrics: UserProfileMetrics?