ItemContentUnion

May 7, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typenameTypeName
has_moderated_repliesbool[optional]
highlightsHighlight[optional]
item_typeContentItemType
promoted_metadataDict[str, object][optional]
social_contextSocialContextUnion[optional]
tweet_display_typestr
tweet_resultsItemResult
cursor_typeCursorType
display_treatmentDisplayTreatment[optional]
entry_typeContentEntryType[optional]
stop_on_empty_responsebool[optional]
valuestr
user_display_typestr
user_resultsUserResults
tombstone_display_typestr[optional]
tombstone_infoTombstoneInfo[optional]
imagesList[TrendImage][optional]
is_ai_trendbool[optional]
namestr
social_contextSocialContextUnion[optional]
thumbnail_imageThumbnailImage[optional]
trend_metadataTrendMetadata
trend_urlSocialContextLandingUrl
idstr
notification_iconstr
notification_urlSocialContextLandingUrl
rich_messageRichMessage
templateNotificationTemplate
timestamp_msstr

Example

from twitter_openapi_python_generated.models.item_content_union import ItemContentUnion

# TODO update the JSON string below
json = "{}"
# create an instance of ItemContentUnion from a JSON string
item_content_union_instance = ItemContentUnion.from_json(json)
# print the JSON string representation of the object
print(ItemContentUnion.to_json())

# convert the object into a dict
item_content_union_dict = item_content_union_instance.to_dict()
# create an instance of ItemContentUnion from a dict
item_content_union_from_dict = ItemContentUnion.from_dict(item_content_union_dict)

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