Skip to content

Latest commit

 

History

History
112 lines (99 loc) · 3.39 KB

File metadata and controls

112 lines (99 loc) · 3.39 KB

UserUnion

Properties

Name Type
typename TypeName
affiliatesHighlightedLabel { [key: string]: any; }
avatar UserAvatar
businessAccount { [key: string]: any; }
core UserCore
creatorSubscriptionsCount number
dmPermissions UserDmPermissions
hasGraduatedAccess boolean
hasHiddenLikesOnProfile boolean
hasHiddenSubscriptionsOnProfile boolean
hasNftAvatar boolean
highlightsInfo UserHighlightsInfo
id string
isBlueVerified boolean
isProfileTranslatable boolean
legacy UserLegacy
legacyExtendedProfile UserLegacyExtendedProfile
location UserLocation
mediaPermissions UserMediaPermissions
parodyCommentaryFanLabel string
premiumGiftingEligible boolean
privacy UserPrivacy
professional UserProfessional
profileBio ProfileBio
profileDescriptionLanguage string
profileImageShape string
profileSortEnabled boolean
relationshipPerspectives UserRelationshipPerspectives
restId string
superFollowEligible boolean
superFollowedBy boolean
superFollowing boolean
superFollowsUserProfile UserProfile
tipjarSettings UserTipJarSettings
userSeedTweetCount number
verification UserVerification
verificationInfo UserVerificationInfo
verifiedUserProfiles UserProfile
message string
reason string

Example

import type { UserUnion } from 'twitter-openapi-typescript-generated'

// TODO: Update the object below with actual values
const example = {
  "typename": null,
  "affiliatesHighlightedLabel": null,
  "avatar": null,
  "businessAccount": null,
  "core": null,
  "creatorSubscriptionsCount": null,
  "dmPermissions": null,
  "hasGraduatedAccess": null,
  "hasHiddenLikesOnProfile": null,
  "hasHiddenSubscriptionsOnProfile": null,
  "hasNftAvatar": null,
  "highlightsInfo": null,
  "id": null,
  "isBlueVerified": null,
  "isProfileTranslatable": null,
  "legacy": null,
  "legacyExtendedProfile": null,
  "location": null,
  "mediaPermissions": null,
  "parodyCommentaryFanLabel": null,
  "premiumGiftingEligible": null,
  "privacy": null,
  "professional": null,
  "profileBio": null,
  "profileDescriptionLanguage": null,
  "profileImageShape": null,
  "profileSortEnabled": null,
  "relationshipPerspectives": null,
  "restId": null,
  "superFollowEligible": null,
  "superFollowedBy": null,
  "superFollowing": null,
  "superFollowsUserProfile": null,
  "tipjarSettings": null,
  "userSeedTweetCount": null,
  "verification": null,
  "verificationInfo": null,
  "verifiedUserProfiles": null,
  "message": null,
  "reason": null,
} satisfies UserUnion

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as UserUnion
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]