From ec5a90f16491cc9902ec0afa63f5f4bfd5836be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 12 Mar 2025 03:17:24 +0900 Subject: [PATCH 1/4] update 0.0.36 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter_openapi_python/pyproject.toml | 2 +- twitter_openapi_python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index 638c192..2dd059c 100644 --- a/twitter_openapi_python/pyproject.toml +++ b/twitter_openapi_python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "twitter_openapi_python" -version = "0.0.35" +version = "0.0.36" description = "Twitter OpenAPI" authors = ["fa0311 "] license = "proprietary" # or "AGPL-3.0-only" diff --git a/twitter_openapi_python/setup.py b/twitter_openapi_python/setup.py index 267333c..43f9ade 100644 --- a/twitter_openapi_python/setup.py +++ b/twitter_openapi_python/setup.py @@ -5,7 +5,7 @@ from setuptools import find_packages, setup NAME = "twitter_openapi_python" -VERSION = "0.0.35" +VERSION = "0.0.36" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "twitter_openapi_python_generated == 0.0.31", From d74217f9876d32450a2ccea8da223b0d294a0953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 7 May 2025 22:20:16 +0900 Subject: [PATCH 2/4] update generated 0.0.32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .../.openapi-generator/FILES | 90 +- twitter_openapi_python_generated/README.md | 36 +- .../docs/AboutCommunityResult.md | 30 + .../docs/AboutCommunityResults.md | 29 + .../docs/AboutCommunityTweetData.md | 29 + .../docs/AnalysisResults.md | 29 + .../docs/BirdwatchPivot.md | 1 + .../docs/CommunityAboutTimelineResponse.md | 30 + .../docs/CommunityMediaTimelineResponse.md | 30 + .../docs/CommunityTweetsTimelineResponse.md | 30 + .../docs/ContentItemType.md | 4 + .../docs/ContentUnion.md | 2 +- .../docs/GrokImageAnnotation.md | 30 + .../docs/GrokShareAttachmentItem.md | 1 + .../docs/HomeTimelineResponseData.md | 2 +- .../docs/InstructionType.md | 4 + .../docs/InstructionUnion.md | 1 + .../docs/ItemContentUnion.md | 10 +- .../docs/ListTweetsTimeline.md | 29 - .../docs/ListTweetsTimelineData.md | 2 +- .../docs/ListTweetsTimelineList.md | 2 +- .../docs/MediaCommunityResult.md | 30 + .../docs/MediaCommunityResults.md | 29 + .../docs/MediaCommunityTweetData.md | 29 + .../docs/MediaResult.md | 1 + .../docs/NotificationTemplate.md | 31 + .../docs/NotificationsResult.md | 31 + .../docs/NotificationsTimelineData.md | 29 + .../docs/NotificationsTimelineResponse.md | 30 + .../docs/NotificationsUserResults.md | 29 + .../docs/NotificationsViewerV2.md | 29 + .../docs/PostApi.md | 4 +- .../docs/PostCreateBookmarkRequest.md | 2 + .../docs/PostCreateRetweetRequest.md | 2 + .../docs/PostCreateTweetRequest.md | 4 +- .../docs/PostCreateTweetRequestFeatures.md | 11 +- .../docs/PostDeleteBookmarkRequest.md | 2 + .../docs/PostDeleteRetweetRequest.md | 2 + .../docs/PostDeleteTweetRequest.md | 2 + .../docs/PostFavoriteTweetRequest.md | 2 + .../docs/PostUnfavoriteTweetRequest.md | 2 + .../docs/RankedCommunityResult.md | 30 + .../docs/RankedCommunityResults.md | 29 + .../docs/RankedCommunityTweetData.md | 29 + .../docs/RichMessage.md | 30 + .../docs/SearchTimelineData.md | 2 +- .../docs/SocialContextUnion.md | 1 + .../docs/TimelineClearEntriesUnreadState.md | 29 + .../docs/TimelineGeneralContext.md | 1 + ...neMarkEntriesUnreadGreaterThanSortIndex.md | 30 + .../docs/TimelineNotification.md | 36 + .../docs/{TimelineV2.md => TimelineResult.md} | 17 +- .../docs/TimelineTimelineModule.md | 2 +- .../docs/TimelineTrend.md | 6 +- .../docs/TweetApi.md | 1040 +++++++++++- .../docs/TweetFavoritersResponseData.md | 2 +- .../docs/TweetRetweetersResponseData.md | 2 +- .../docs/TypeName.md | 4 + .../docs/UserApi.md | 12 +- .../docs/UserListApi.md | 40 +- .../docs/UserTweetsResult.md | 30 - .../docs/UserTweetsResultV1.md | 30 + .../docs/UserTweetsResultV2.md | 30 + .../docs/UserTweetsUser.md | 2 +- .../docs/UsersApi.md | 8 +- .../pyproject.toml | 2 +- twitter_openapi_python_generated/setup.py | 2 +- .../test/test_about_community_result.py | 69 + .../test/test_about_community_results.py | 71 + .../test/test_about_community_tweet_data.py | 73 + .../test/test_analysis_results.py | 1003 ++++++++++++ .../test/test_birdwatch_pivot.py | 1 + .../test_community_about_timeline_response.py | 102 ++ .../test_community_media_timeline_response.py | 102 ++ ...test_community_tweets_timeline_response.py | 102 ++ .../test/test_content_union.py | 4 - .../test/test_create_tweet.py | 524 +++--- .../test/test_create_tweet_response.py | 524 +++--- .../test/test_create_tweet_response_data.py | 262 +-- .../test/test_create_tweet_response_result.py | 524 +++--- .../test/test_entities.py | 3 + .../test/test_extended_entities.py | 6 + .../test/test_grok_image_annotation.py | 55 + .../test/test_grok_share_attachment.py | 870 ++++++++++ .../test/test_grok_share_attachment_item.py | 435 +++++ .../test/test_home_timeline_response_data.py | 7 + .../test/test_instruction_union.py | 3 +- .../test/test_item_content_union.py | 58 +- ...st_list_latest_tweets_timeline_response.py | 6 +- .../test/test_list_tweets_timeline_data.py | 12 +- .../test/test_list_tweets_timeline_list.py | 6 +- .../test/test_media.py | 3 + .../test/test_media_community_result.py | 69 + .../test/test_media_community_results.py | 71 + .../test/test_media_community_tweet_data.py | 73 + .../test/test_media_extended.py | 3 + .../test/test_media_result.py | 3 + .../test/test_media_results.py | 6 + .../test/test_note_tweet.py | 6 + .../test/test_note_tweet_result.py | 6 + .../test/test_note_tweet_result_data.py | 6 + .../test/test_notification_template.py | 58 + .../test/test_notifications_result.py | 71 + .../test/test_notifications_timeline_data.py | 77 + .../test_notifications_timeline_response.py | 106 ++ .../test/test_notifications_user_results.py | 73 + .../test/test_notifications_viewer_v2.py | 75 + .../test/test_post_create_bookmark_request.py | 4 + .../test/test_post_create_retweet_request.py | 4 + .../test/test_post_create_tweet_request.py | 30 +- ...test_post_create_tweet_request_features.py | 22 +- .../test/test_post_delete_bookmark_request.py | 4 + .../test/test_post_delete_retweet_request.py | 4 + .../test/test_post_delete_tweet_request.py | 4 + .../test/test_post_favorite_tweet_request.py | 4 + .../test_post_unfavorite_tweet_request.py | 4 + .../test/test_ranked_community_result.py | 69 + .../test/test_ranked_community_results.py | 71 + .../test/test_ranked_community_tweet_data.py | 73 + .../test/test_rich_message.py | 53 + .../test/test_search_timeline_data.py | 8 + .../test/test_social_context_union.py | 3 + ...est_timeline_clear_entries_unread_state.py | 53 + .../test/test_timeline_general_context.py | 3 + ..._entries_unread_greater_than_sort_index.py | 54 + .../test/test_timeline_notification.py | 103 ++ ...timeline_v2.py => test_timeline_result.py} | 23 +- .../test/test_timeline_timeline_module.py | 4 - .../test/test_timeline_trend.py | 9 - .../test/test_tweet.py | 434 +++++ .../test/test_tweet_api.py | 24 + .../test/test_tweet_favoriters_response.py | 6 +- .../test_tweet_favoriters_response_data.py | 3 +- .../test/test_tweet_legacy.py | 9 + .../test/test_tweet_retweeters_response.py | 6 +- .../test_tweet_retweeters_response_data.py | 3 +- .../test/test_tweet_union.py | 442 +++++ .../test_tweet_with_visibility_results.py | 524 +++--- .../test/test_user_tweets_data.py | 11 +- .../test/test_user_tweets_response.py | 22 +- ...eline.py => test_user_tweets_result_v1.py} | 34 +- ...esult.py => test_user_tweets_result_v2.py} | 28 +- .../test/test_user_tweets_user.py | 22 +- .../tools/openapi-generator-config.yaml | 2 +- .../twitter-openapi | 2 +- .../__init__.py | 32 +- .../api/tweet_api.py | 1440 ++++++++++++++++- .../api_client.py | 2 +- .../configuration.py | 2 +- .../models/__init__.py | 30 +- .../models/about_community_result.py | 95 ++ ...timeline.py => about_community_results.py} | 24 +- .../models/about_community_tweet_data.py | 92 ++ .../models/analysis_results.py | 94 ++ .../models/birdwatch_pivot.py | 4 +- .../community_about_timeline_response.py | 102 ++ .../community_media_timeline_response.py | 102 ++ .../community_tweets_timeline_response.py | 102 ++ .../models/content_item_type.py | 2 + .../models/grok_image_annotation.py | 90 ++ .../models/grok_share_attachment.py | 4 +- .../models/grok_share_attachment_item.py | 12 +- .../models/home_timeline_response_data.py | 4 +- .../models/instruction_type.py | 2 + .../models/instruction_union.py | 54 +- .../models/item_content_union.py | 35 +- .../models/list_tweets_timeline_data.py | 4 +- .../models/list_tweets_timeline_list.py | 6 +- .../models/media_community_result.py | 95 ++ .../models/media_community_results.py | 92 ++ .../models/media_community_tweet_data.py | 92 ++ .../models/media_result.py | 10 +- .../models/module_item.py | 4 +- .../models/notification_template.py | 93 ++ .../models/notifications_result.py | 105 ++ .../models/notifications_timeline_data.py | 92 ++ .../models/notifications_timeline_response.py | 102 ++ .../models/notifications_user_results.py | 92 ++ .../models/notifications_viewer_v2.py | 92 ++ .../models/post_create_bookmark_request.py | 6 +- .../models/post_create_retweet_request.py | 6 +- .../models/post_create_tweet_request.py | 8 +- .../post_create_tweet_request_features.py | 24 +- .../models/post_delete_bookmark_request.py | 6 +- .../models/post_delete_retweet_request.py | 6 +- .../models/post_delete_tweet_request.py | 6 +- .../models/post_favorite_tweet_request.py | 6 +- .../models/post_unfavorite_tweet_request.py | 6 +- .../models/ranked_community_result.py | 95 ++ .../models/ranked_community_results.py | 92 ++ .../models/ranked_community_tweet_data.py | 92 ++ .../models/rich_message.py | 90 ++ .../models/search_timeline_data.py | 4 +- .../models/timeline_add_entry.py | 4 +- .../timeline_clear_entries_unread_state.py | 89 + .../models/timeline_general_context.py | 8 +- ..._entries_unread_greater_than_sort_index.py | 102 ++ .../models/timeline_notification.py | 116 ++ .../{timeline_v2.py => timeline_result.py} | 14 +- .../models/timeline_timeline_module.py | 2 +- .../models/timeline_trend.py | 6 +- .../models/timeline_user.py | 4 +- .../models/tweet.py | 2 +- .../models/tweet_favoriters_response_data.py | 6 +- .../models/tweet_retweeters_response_data.py | 6 +- .../models/type_name.py | 2 + .../models/user.py | 4 +- .../models/user_tweets_result_v1.py | 95 ++ ...ets_result.py => user_tweets_result_v2.py} | 14 +- .../models/user_tweets_user.py | 6 +- 210 files changed, 12530 insertions(+), 1474 deletions(-) create mode 100644 twitter_openapi_python_generated/docs/AboutCommunityResult.md create mode 100644 twitter_openapi_python_generated/docs/AboutCommunityResults.md create mode 100644 twitter_openapi_python_generated/docs/AboutCommunityTweetData.md create mode 100644 twitter_openapi_python_generated/docs/AnalysisResults.md create mode 100644 twitter_openapi_python_generated/docs/CommunityAboutTimelineResponse.md create mode 100644 twitter_openapi_python_generated/docs/CommunityMediaTimelineResponse.md create mode 100644 twitter_openapi_python_generated/docs/CommunityTweetsTimelineResponse.md create mode 100644 twitter_openapi_python_generated/docs/GrokImageAnnotation.md delete mode 100644 twitter_openapi_python_generated/docs/ListTweetsTimeline.md create mode 100644 twitter_openapi_python_generated/docs/MediaCommunityResult.md create mode 100644 twitter_openapi_python_generated/docs/MediaCommunityResults.md create mode 100644 twitter_openapi_python_generated/docs/MediaCommunityTweetData.md create mode 100644 twitter_openapi_python_generated/docs/NotificationTemplate.md create mode 100644 twitter_openapi_python_generated/docs/NotificationsResult.md create mode 100644 twitter_openapi_python_generated/docs/NotificationsTimelineData.md create mode 100644 twitter_openapi_python_generated/docs/NotificationsTimelineResponse.md create mode 100644 twitter_openapi_python_generated/docs/NotificationsUserResults.md create mode 100644 twitter_openapi_python_generated/docs/NotificationsViewerV2.md create mode 100644 twitter_openapi_python_generated/docs/RankedCommunityResult.md create mode 100644 twitter_openapi_python_generated/docs/RankedCommunityResults.md create mode 100644 twitter_openapi_python_generated/docs/RankedCommunityTweetData.md create mode 100644 twitter_openapi_python_generated/docs/RichMessage.md create mode 100644 twitter_openapi_python_generated/docs/TimelineClearEntriesUnreadState.md create mode 100644 twitter_openapi_python_generated/docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md create mode 100644 twitter_openapi_python_generated/docs/TimelineNotification.md rename twitter_openapi_python_generated/docs/{TimelineV2.md => TimelineResult.md} (51%) delete mode 100644 twitter_openapi_python_generated/docs/UserTweetsResult.md create mode 100644 twitter_openapi_python_generated/docs/UserTweetsResultV1.md create mode 100644 twitter_openapi_python_generated/docs/UserTweetsResultV2.md create mode 100644 twitter_openapi_python_generated/test/test_about_community_result.py create mode 100644 twitter_openapi_python_generated/test/test_about_community_results.py create mode 100644 twitter_openapi_python_generated/test/test_about_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/test/test_analysis_results.py create mode 100644 twitter_openapi_python_generated/test/test_community_about_timeline_response.py create mode 100644 twitter_openapi_python_generated/test/test_community_media_timeline_response.py create mode 100644 twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py create mode 100644 twitter_openapi_python_generated/test/test_grok_image_annotation.py create mode 100644 twitter_openapi_python_generated/test/test_media_community_result.py create mode 100644 twitter_openapi_python_generated/test/test_media_community_results.py create mode 100644 twitter_openapi_python_generated/test/test_media_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/test/test_notification_template.py create mode 100644 twitter_openapi_python_generated/test/test_notifications_result.py create mode 100644 twitter_openapi_python_generated/test/test_notifications_timeline_data.py create mode 100644 twitter_openapi_python_generated/test/test_notifications_timeline_response.py create mode 100644 twitter_openapi_python_generated/test/test_notifications_user_results.py create mode 100644 twitter_openapi_python_generated/test/test_notifications_viewer_v2.py create mode 100644 twitter_openapi_python_generated/test/test_ranked_community_result.py create mode 100644 twitter_openapi_python_generated/test/test_ranked_community_results.py create mode 100644 twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/test/test_rich_message.py create mode 100644 twitter_openapi_python_generated/test/test_timeline_clear_entries_unread_state.py create mode 100644 twitter_openapi_python_generated/test/test_timeline_mark_entries_unread_greater_than_sort_index.py create mode 100644 twitter_openapi_python_generated/test/test_timeline_notification.py rename twitter_openapi_python_generated/test/{test_timeline_v2.py => test_timeline_result.py} (67%) rename twitter_openapi_python_generated/test/{test_list_tweets_timeline.py => test_user_tweets_result_v1.py} (51%) rename twitter_openapi_python_generated/test/{test_user_tweets_result.py => test_user_tweets_result_v2.py} (75%) create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_result.py rename twitter_openapi_python_generated/twitter_openapi_python_generated/models/{list_tweets_timeline.py => about_community_results.py} (76%) create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/analysis_results.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_about_timeline_response.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_media_timeline_response.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_tweets_timeline_response.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_image_annotation.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_result.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_results.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_template.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_result.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_data.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_response.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_user_results.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_viewer_v2.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_result.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_results.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_tweet_data.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_notification.py rename twitter_openapi_python_generated/twitter_openapi_python_generated/models/{timeline_v2.py => timeline_result.py} (87%) create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v1.py rename twitter_openapi_python_generated/twitter_openapi_python_generated/models/{user_tweets_result.py => user_tweets_result_v2.py} (85%) diff --git a/twitter_openapi_python_generated/.openapi-generator/FILES b/twitter_openapi_python_generated/.openapi-generator/FILES index f295771..7e012b6 100644 --- a/twitter_openapi_python_generated/.openapi-generator/FILES +++ b/twitter_openapi_python_generated/.openapi-generator/FILES @@ -3,10 +3,14 @@ .gitlab-ci.yml .travis.yml README.md +docs/AboutCommunityResult.md +docs/AboutCommunityResults.md +docs/AboutCommunityTweetData.md docs/AdditionalMediaInfo.md docs/AdditionalMediaInfoCallToActions.md docs/AdditionalMediaInfoCallToActionsUrl.md docs/AllowDownloadStatus.md +docs/AnalysisResults.md docs/Article.md docs/ArticleCoverMedia.md docs/ArticleCoverMediaColorInfo.md @@ -32,6 +36,7 @@ docs/Callback.md docs/ClientEventInfo.md docs/CommunitiesActions.md docs/Community.md +docs/CommunityAboutTimelineResponse.md docs/CommunityActions.md docs/CommunityData.md docs/CommunityDeleteActionResult.md @@ -41,9 +46,11 @@ docs/CommunityJoinActionResultUnion.md docs/CommunityJoinActionUnavailable.md docs/CommunityJoinRequestsResult.md docs/CommunityLeaveActionResult.md +docs/CommunityMediaTimelineResponse.md docs/CommunityPinActionResult.md docs/CommunityRelationship.md docs/CommunityRule.md +docs/CommunityTweetsTimelineResponse.md docs/CommunityUnpinActionResult.md docs/CommunityUrls.md docs/CommunityUrlsPermalink.md @@ -89,6 +96,7 @@ docs/FollowResponseData.md docs/FollowResponseResult.md docs/FollowResponseUser.md docs/FollowTimeline.md +docs/GrokImageAnnotation.md docs/GrokShareAttachment.md docs/GrokShareAttachmentItem.md docs/Highlight.md @@ -100,11 +108,13 @@ docs/ItemContentUnion.md docs/ItemResult.md docs/LimitedActionResultsData.md docs/ListLatestTweetsTimelineResponse.md -docs/ListTweetsTimeline.md docs/ListTweetsTimelineData.md docs/ListTweetsTimelineList.md docs/Location.md docs/Media.md +docs/MediaCommunityResult.md +docs/MediaCommunityResults.md +docs/MediaCommunityTweetData.md docs/MediaExtended.md docs/MediaOriginalInfo.md docs/MediaOriginalInfoFocusRect.md @@ -126,6 +136,12 @@ docs/NoteTweetResultMedia.md docs/NoteTweetResultMediaInlineMedia.md docs/NoteTweetResultRichText.md docs/NoteTweetResultRichTextTag.md +docs/NotificationTemplate.md +docs/NotificationsResult.md +docs/NotificationsTimelineData.md +docs/NotificationsTimelineResponse.md +docs/NotificationsUserResults.md +docs/NotificationsViewerV2.md docs/OneFactorLoginEligibility.md docs/OtherApi.md docs/OtherObjectAll.md @@ -152,8 +168,12 @@ docs/ProfileResponse.md docs/ProfileResponseData.md docs/QuotedRefResult.md docs/QuotedStatusPermalink.md +docs/RankedCommunityResult.md +docs/RankedCommunityResults.md +docs/RankedCommunityTweetData.md docs/Retweet.md docs/RetweetLegacy.md +docs/RichMessage.md docs/SearchByRawQuery.md docs/SearchTimeline.md docs/SearchTimelineData.md @@ -177,16 +197,20 @@ docs/TimelineAddEntries.md docs/TimelineAddEntry.md docs/TimelineAddToModule.md docs/TimelineClearCache.md +docs/TimelineClearEntriesUnreadState.md docs/TimelineCommunity.md docs/TimelineCoverBehavior.md docs/TimelineCoverBehaviorUrl.md docs/TimelineGeneralContext.md docs/TimelineHalfCover.md +docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md docs/TimelineMessagePrompt.md +docs/TimelineNotification.md docs/TimelinePinEntry.md docs/TimelinePrompt.md docs/TimelineReplaceEntry.md docs/TimelineResponse.md +docs/TimelineResult.md docs/TimelineShowAlert.md docs/TimelineShowAlertRichText.md docs/TimelineShowCover.md @@ -199,7 +223,6 @@ docs/TimelineTopicContext.md docs/TimelineTrend.md docs/TimelineTweet.md docs/TimelineUser.md -docs/TimelineV2.md docs/Timestamp.md docs/TombstoneEntity.md docs/TombstoneInfo.md @@ -283,7 +306,8 @@ docs/UserResults.md docs/UserTipJarSettings.md docs/UserTweetsData.md docs/UserTweetsResponse.md -docs/UserTweetsResult.md +docs/UserTweetsResultV1.md +docs/UserTweetsResultV2.md docs/UserTweetsUser.md docs/UserUnavailable.md docs/UserUnion.md @@ -306,10 +330,14 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_about_community_result.py +test/test_about_community_results.py +test/test_about_community_tweet_data.py test/test_additional_media_info.py test/test_additional_media_info_call_to_actions.py test/test_additional_media_info_call_to_actions_url.py test/test_allow_download_status.py +test/test_analysis_results.py test/test_article.py test/test_article_cover_media.py test/test_article_cover_media_color_info.py @@ -335,6 +363,7 @@ test/test_callback.py test/test_client_event_info.py test/test_communities_actions.py test/test_community.py +test/test_community_about_timeline_response.py test/test_community_actions.py test/test_community_data.py test/test_community_delete_action_result.py @@ -344,9 +373,11 @@ test/test_community_join_action_result_union.py test/test_community_join_action_unavailable.py test/test_community_join_requests_result.py test/test_community_leave_action_result.py +test/test_community_media_timeline_response.py test/test_community_pin_action_result.py test/test_community_relationship.py test/test_community_rule.py +test/test_community_tweets_timeline_response.py test/test_community_unpin_action_result.py test/test_community_urls.py test/test_community_urls_permalink.py @@ -392,6 +423,7 @@ test/test_follow_response_data.py test/test_follow_response_result.py test/test_follow_response_user.py test/test_follow_timeline.py +test/test_grok_image_annotation.py test/test_grok_share_attachment.py test/test_grok_share_attachment_item.py test/test_highlight.py @@ -403,11 +435,13 @@ test/test_item_content_union.py test/test_item_result.py test/test_limited_action_results_data.py test/test_list_latest_tweets_timeline_response.py -test/test_list_tweets_timeline.py test/test_list_tweets_timeline_data.py test/test_list_tweets_timeline_list.py test/test_location.py test/test_media.py +test/test_media_community_result.py +test/test_media_community_results.py +test/test_media_community_tweet_data.py test/test_media_extended.py test/test_media_original_info.py test/test_media_original_info_focus_rect.py @@ -429,6 +463,12 @@ test/test_note_tweet_result_media.py test/test_note_tweet_result_media_inline_media.py test/test_note_tweet_result_rich_text.py test/test_note_tweet_result_rich_text_tag.py +test/test_notification_template.py +test/test_notifications_result.py +test/test_notifications_timeline_data.py +test/test_notifications_timeline_response.py +test/test_notifications_user_results.py +test/test_notifications_viewer_v2.py test/test_one_factor_login_eligibility.py test/test_other_api.py test/test_other_object_all.py @@ -455,8 +495,12 @@ test/test_profile_response.py test/test_profile_response_data.py test/test_quoted_ref_result.py test/test_quoted_status_permalink.py +test/test_ranked_community_result.py +test/test_ranked_community_results.py +test/test_ranked_community_tweet_data.py test/test_retweet.py test/test_retweet_legacy.py +test/test_rich_message.py test/test_search_by_raw_query.py test/test_search_timeline.py test/test_search_timeline_data.py @@ -480,16 +524,20 @@ test/test_timeline_add_entries.py test/test_timeline_add_entry.py test/test_timeline_add_to_module.py test/test_timeline_clear_cache.py +test/test_timeline_clear_entries_unread_state.py test/test_timeline_community.py test/test_timeline_cover_behavior.py test/test_timeline_cover_behavior_url.py test/test_timeline_general_context.py test/test_timeline_half_cover.py +test/test_timeline_mark_entries_unread_greater_than_sort_index.py test/test_timeline_message_prompt.py +test/test_timeline_notification.py test/test_timeline_pin_entry.py test/test_timeline_prompt.py test/test_timeline_replace_entry.py test/test_timeline_response.py +test/test_timeline_result.py test/test_timeline_show_alert.py test/test_timeline_show_alert_rich_text.py test/test_timeline_show_cover.py @@ -502,7 +550,6 @@ test/test_timeline_topic_context.py test/test_timeline_trend.py test/test_timeline_tweet.py test/test_timeline_user.py -test/test_timeline_v2.py test/test_timestamp.py test/test_tombstone_entity.py test/test_tombstone_info.py @@ -586,7 +633,8 @@ test/test_user_results.py test/test_user_tip_jar_settings.py test/test_user_tweets_data.py test/test_user_tweets_response.py -test/test_user_tweets_result.py +test/test_user_tweets_result_v1.py +test/test_user_tweets_result_v2.py test/test_user_tweets_user.py test/test_user_unavailable.py test/test_user_union.py @@ -620,10 +668,14 @@ twitter_openapi_python_generated/api_response.py twitter_openapi_python_generated/configuration.py twitter_openapi_python_generated/exceptions.py twitter_openapi_python_generated/models/__init__.py +twitter_openapi_python_generated/models/about_community_result.py +twitter_openapi_python_generated/models/about_community_results.py +twitter_openapi_python_generated/models/about_community_tweet_data.py twitter_openapi_python_generated/models/additional_media_info.py twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py twitter_openapi_python_generated/models/additional_media_info_call_to_actions_url.py twitter_openapi_python_generated/models/allow_download_status.py +twitter_openapi_python_generated/models/analysis_results.py twitter_openapi_python_generated/models/article.py twitter_openapi_python_generated/models/article_cover_media.py twitter_openapi_python_generated/models/article_cover_media_color_info.py @@ -649,6 +701,7 @@ twitter_openapi_python_generated/models/callback.py twitter_openapi_python_generated/models/client_event_info.py twitter_openapi_python_generated/models/communities_actions.py twitter_openapi_python_generated/models/community.py +twitter_openapi_python_generated/models/community_about_timeline_response.py twitter_openapi_python_generated/models/community_actions.py twitter_openapi_python_generated/models/community_data.py twitter_openapi_python_generated/models/community_delete_action_result.py @@ -658,9 +711,11 @@ twitter_openapi_python_generated/models/community_join_action_result_union.py twitter_openapi_python_generated/models/community_join_action_unavailable.py twitter_openapi_python_generated/models/community_join_requests_result.py twitter_openapi_python_generated/models/community_leave_action_result.py +twitter_openapi_python_generated/models/community_media_timeline_response.py twitter_openapi_python_generated/models/community_pin_action_result.py twitter_openapi_python_generated/models/community_relationship.py twitter_openapi_python_generated/models/community_rule.py +twitter_openapi_python_generated/models/community_tweets_timeline_response.py twitter_openapi_python_generated/models/community_unpin_action_result.py twitter_openapi_python_generated/models/community_urls.py twitter_openapi_python_generated/models/community_urls_permalink.py @@ -705,6 +760,7 @@ twitter_openapi_python_generated/models/follow_response_data.py twitter_openapi_python_generated/models/follow_response_result.py twitter_openapi_python_generated/models/follow_response_user.py twitter_openapi_python_generated/models/follow_timeline.py +twitter_openapi_python_generated/models/grok_image_annotation.py twitter_openapi_python_generated/models/grok_share_attachment.py twitter_openapi_python_generated/models/grok_share_attachment_item.py twitter_openapi_python_generated/models/highlight.py @@ -716,11 +772,13 @@ twitter_openapi_python_generated/models/item_content_union.py twitter_openapi_python_generated/models/item_result.py twitter_openapi_python_generated/models/limited_action_results_data.py twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py -twitter_openapi_python_generated/models/list_tweets_timeline.py twitter_openapi_python_generated/models/list_tweets_timeline_data.py twitter_openapi_python_generated/models/list_tweets_timeline_list.py twitter_openapi_python_generated/models/location.py twitter_openapi_python_generated/models/media.py +twitter_openapi_python_generated/models/media_community_result.py +twitter_openapi_python_generated/models/media_community_results.py +twitter_openapi_python_generated/models/media_community_tweet_data.py twitter_openapi_python_generated/models/media_extended.py twitter_openapi_python_generated/models/media_original_info.py twitter_openapi_python_generated/models/media_original_info_focus_rect.py @@ -742,6 +800,12 @@ twitter_openapi_python_generated/models/note_tweet_result_media.py twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py twitter_openapi_python_generated/models/note_tweet_result_rich_text.py twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py +twitter_openapi_python_generated/models/notification_template.py +twitter_openapi_python_generated/models/notifications_result.py +twitter_openapi_python_generated/models/notifications_timeline_data.py +twitter_openapi_python_generated/models/notifications_timeline_response.py +twitter_openapi_python_generated/models/notifications_user_results.py +twitter_openapi_python_generated/models/notifications_viewer_v2.py twitter_openapi_python_generated/models/one_factor_login_eligibility.py twitter_openapi_python_generated/models/other_object_all.py twitter_openapi_python_generated/models/post_create_bookmark_request.py @@ -766,8 +830,12 @@ twitter_openapi_python_generated/models/profile_response.py twitter_openapi_python_generated/models/profile_response_data.py twitter_openapi_python_generated/models/quoted_ref_result.py twitter_openapi_python_generated/models/quoted_status_permalink.py +twitter_openapi_python_generated/models/ranked_community_result.py +twitter_openapi_python_generated/models/ranked_community_results.py +twitter_openapi_python_generated/models/ranked_community_tweet_data.py twitter_openapi_python_generated/models/retweet.py twitter_openapi_python_generated/models/retweet_legacy.py +twitter_openapi_python_generated/models/rich_message.py twitter_openapi_python_generated/models/search_by_raw_query.py twitter_openapi_python_generated/models/search_timeline.py twitter_openapi_python_generated/models/search_timeline_data.py @@ -791,16 +859,20 @@ twitter_openapi_python_generated/models/timeline_add_entries.py twitter_openapi_python_generated/models/timeline_add_entry.py twitter_openapi_python_generated/models/timeline_add_to_module.py twitter_openapi_python_generated/models/timeline_clear_cache.py +twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py twitter_openapi_python_generated/models/timeline_community.py twitter_openapi_python_generated/models/timeline_cover_behavior.py twitter_openapi_python_generated/models/timeline_cover_behavior_url.py twitter_openapi_python_generated/models/timeline_general_context.py twitter_openapi_python_generated/models/timeline_half_cover.py +twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py twitter_openapi_python_generated/models/timeline_message_prompt.py +twitter_openapi_python_generated/models/timeline_notification.py twitter_openapi_python_generated/models/timeline_pin_entry.py twitter_openapi_python_generated/models/timeline_prompt.py twitter_openapi_python_generated/models/timeline_replace_entry.py twitter_openapi_python_generated/models/timeline_response.py +twitter_openapi_python_generated/models/timeline_result.py twitter_openapi_python_generated/models/timeline_show_alert.py twitter_openapi_python_generated/models/timeline_show_alert_rich_text.py twitter_openapi_python_generated/models/timeline_show_cover.py @@ -813,7 +885,6 @@ twitter_openapi_python_generated/models/timeline_topic_context.py twitter_openapi_python_generated/models/timeline_trend.py twitter_openapi_python_generated/models/timeline_tweet.py twitter_openapi_python_generated/models/timeline_user.py -twitter_openapi_python_generated/models/timeline_v2.py twitter_openapi_python_generated/models/timestamp.py twitter_openapi_python_generated/models/tombstone_entity.py twitter_openapi_python_generated/models/tombstone_info.py @@ -894,7 +965,8 @@ twitter_openapi_python_generated/models/user_results.py twitter_openapi_python_generated/models/user_tip_jar_settings.py twitter_openapi_python_generated/models/user_tweets_data.py twitter_openapi_python_generated/models/user_tweets_response.py -twitter_openapi_python_generated/models/user_tweets_result.py +twitter_openapi_python_generated/models/user_tweets_result_v1.py +twitter_openapi_python_generated/models/user_tweets_result_v2.py twitter_openapi_python_generated/models/user_tweets_user.py twitter_openapi_python_generated/models/user_unavailable.py twitter_openapi_python_generated/models/user_union.py diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md index 62713ff..3dfacf0 100644 --- a/twitter_openapi_python_generated/README.md +++ b/twitter_openapi_python_generated/README.md @@ -4,7 +4,7 @@ Twitter OpenAPI(Swagger) specification This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.1 -- Package version: 0.0.31 +- Package version: 0.0.32 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -239,10 +239,14 @@ Class | Method | HTTP request | Description *PostApi* | [**post_favorite_tweet**](docs/PostApi.md#post_favorite_tweet) | **POST** /graphql/{pathQueryId}/FavoriteTweet | *PostApi* | [**post_unfavorite_tweet**](docs/PostApi.md#post_unfavorite_tweet) | **POST** /graphql/{pathQueryId}/UnfavoriteTweet | *TweetApi* | [**get_bookmarks**](docs/TweetApi.md#get_bookmarks) | **GET** /graphql/{pathQueryId}/Bookmarks | +*TweetApi* | [**get_community_about_timeline**](docs/TweetApi.md#get_community_about_timeline) | **GET** /graphql/{pathQueryId}/CommunityAboutTimeline | +*TweetApi* | [**get_community_media_timeline**](docs/TweetApi.md#get_community_media_timeline) | **GET** /graphql/{pathQueryId}/CommunityMediaTimeline | +*TweetApi* | [**get_community_tweets_timeline**](docs/TweetApi.md#get_community_tweets_timeline) | **GET** /graphql/{pathQueryId}/CommunityTweetsTimeline | *TweetApi* | [**get_home_latest_timeline**](docs/TweetApi.md#get_home_latest_timeline) | **GET** /graphql/{pathQueryId}/HomeLatestTimeline | *TweetApi* | [**get_home_timeline**](docs/TweetApi.md#get_home_timeline) | **GET** /graphql/{pathQueryId}/HomeTimeline | *TweetApi* | [**get_likes**](docs/TweetApi.md#get_likes) | **GET** /graphql/{pathQueryId}/Likes | *TweetApi* | [**get_list_latest_tweets_timeline**](docs/TweetApi.md#get_list_latest_tweets_timeline) | **GET** /graphql/{pathQueryId}/ListLatestTweetsTimeline | +*TweetApi* | [**get_notifications_timeline**](docs/TweetApi.md#get_notifications_timeline) | **GET** /graphql/{pathQueryId}/NotificationsTimeline | *TweetApi* | [**get_search_timeline**](docs/TweetApi.md#get_search_timeline) | **GET** /graphql/{pathQueryId}/SearchTimeline | *TweetApi* | [**get_tweet_detail**](docs/TweetApi.md#get_tweet_detail) | **GET** /graphql/{pathQueryId}/TweetDetail | *TweetApi* | [**get_user_highlights_tweets**](docs/TweetApi.md#get_user_highlights_tweets) | **GET** /graphql/{pathQueryId}/UserHighlightsTweets | @@ -266,10 +270,14 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AboutCommunityResult](docs/AboutCommunityResult.md) + - [AboutCommunityResults](docs/AboutCommunityResults.md) + - [AboutCommunityTweetData](docs/AboutCommunityTweetData.md) - [AdditionalMediaInfo](docs/AdditionalMediaInfo.md) - [AdditionalMediaInfoCallToActions](docs/AdditionalMediaInfoCallToActions.md) - [AdditionalMediaInfoCallToActionsUrl](docs/AdditionalMediaInfoCallToActionsUrl.md) - [AllowDownloadStatus](docs/AllowDownloadStatus.md) + - [AnalysisResults](docs/AnalysisResults.md) - [Article](docs/Article.md) - [ArticleCoverMedia](docs/ArticleCoverMedia.md) - [ArticleCoverMediaColorInfo](docs/ArticleCoverMediaColorInfo.md) @@ -295,6 +303,7 @@ Class | Method | HTTP request | Description - [ClientEventInfo](docs/ClientEventInfo.md) - [CommunitiesActions](docs/CommunitiesActions.md) - [Community](docs/Community.md) + - [CommunityAboutTimelineResponse](docs/CommunityAboutTimelineResponse.md) - [CommunityActions](docs/CommunityActions.md) - [CommunityData](docs/CommunityData.md) - [CommunityDeleteActionResult](docs/CommunityDeleteActionResult.md) @@ -304,9 +313,11 @@ Class | Method | HTTP request | Description - [CommunityJoinActionUnavailable](docs/CommunityJoinActionUnavailable.md) - [CommunityJoinRequestsResult](docs/CommunityJoinRequestsResult.md) - [CommunityLeaveActionResult](docs/CommunityLeaveActionResult.md) + - [CommunityMediaTimelineResponse](docs/CommunityMediaTimelineResponse.md) - [CommunityPinActionResult](docs/CommunityPinActionResult.md) - [CommunityRelationship](docs/CommunityRelationship.md) - [CommunityRule](docs/CommunityRule.md) + - [CommunityTweetsTimelineResponse](docs/CommunityTweetsTimelineResponse.md) - [CommunityUnpinActionResult](docs/CommunityUnpinActionResult.md) - [CommunityUrls](docs/CommunityUrls.md) - [CommunityUrlsPermalink](docs/CommunityUrlsPermalink.md) @@ -351,6 +362,7 @@ Class | Method | HTTP request | Description - [FollowResponseResult](docs/FollowResponseResult.md) - [FollowResponseUser](docs/FollowResponseUser.md) - [FollowTimeline](docs/FollowTimeline.md) + - [GrokImageAnnotation](docs/GrokImageAnnotation.md) - [GrokShareAttachment](docs/GrokShareAttachment.md) - [GrokShareAttachmentItem](docs/GrokShareAttachmentItem.md) - [Highlight](docs/Highlight.md) @@ -362,11 +374,13 @@ Class | Method | HTTP request | Description - [ItemResult](docs/ItemResult.md) - [LimitedActionResultsData](docs/LimitedActionResultsData.md) - [ListLatestTweetsTimelineResponse](docs/ListLatestTweetsTimelineResponse.md) - - [ListTweetsTimeline](docs/ListTweetsTimeline.md) - [ListTweetsTimelineData](docs/ListTweetsTimelineData.md) - [ListTweetsTimelineList](docs/ListTweetsTimelineList.md) - [Location](docs/Location.md) - [Media](docs/Media.md) + - [MediaCommunityResult](docs/MediaCommunityResult.md) + - [MediaCommunityResults](docs/MediaCommunityResults.md) + - [MediaCommunityTweetData](docs/MediaCommunityTweetData.md) - [MediaExtended](docs/MediaExtended.md) - [MediaOriginalInfo](docs/MediaOriginalInfo.md) - [MediaOriginalInfoFocusRect](docs/MediaOriginalInfoFocusRect.md) @@ -388,6 +402,12 @@ Class | Method | HTTP request | Description - [NoteTweetResultMediaInlineMedia](docs/NoteTweetResultMediaInlineMedia.md) - [NoteTweetResultRichText](docs/NoteTweetResultRichText.md) - [NoteTweetResultRichTextTag](docs/NoteTweetResultRichTextTag.md) + - [NotificationTemplate](docs/NotificationTemplate.md) + - [NotificationsResult](docs/NotificationsResult.md) + - [NotificationsTimelineData](docs/NotificationsTimelineData.md) + - [NotificationsTimelineResponse](docs/NotificationsTimelineResponse.md) + - [NotificationsUserResults](docs/NotificationsUserResults.md) + - [NotificationsViewerV2](docs/NotificationsViewerV2.md) - [OneFactorLoginEligibility](docs/OneFactorLoginEligibility.md) - [OtherObjectAll](docs/OtherObjectAll.md) - [PostCreateBookmarkRequest](docs/PostCreateBookmarkRequest.md) @@ -412,8 +432,12 @@ Class | Method | HTTP request | Description - [ProfileResponseData](docs/ProfileResponseData.md) - [QuotedRefResult](docs/QuotedRefResult.md) - [QuotedStatusPermalink](docs/QuotedStatusPermalink.md) + - [RankedCommunityResult](docs/RankedCommunityResult.md) + - [RankedCommunityResults](docs/RankedCommunityResults.md) + - [RankedCommunityTweetData](docs/RankedCommunityTweetData.md) - [Retweet](docs/Retweet.md) - [RetweetLegacy](docs/RetweetLegacy.md) + - [RichMessage](docs/RichMessage.md) - [SearchByRawQuery](docs/SearchByRawQuery.md) - [SearchTimeline](docs/SearchTimeline.md) - [SearchTimelineData](docs/SearchTimelineData.md) @@ -437,16 +461,20 @@ Class | Method | HTTP request | Description - [TimelineAddEntry](docs/TimelineAddEntry.md) - [TimelineAddToModule](docs/TimelineAddToModule.md) - [TimelineClearCache](docs/TimelineClearCache.md) + - [TimelineClearEntriesUnreadState](docs/TimelineClearEntriesUnreadState.md) - [TimelineCommunity](docs/TimelineCommunity.md) - [TimelineCoverBehavior](docs/TimelineCoverBehavior.md) - [TimelineCoverBehaviorUrl](docs/TimelineCoverBehaviorUrl.md) - [TimelineGeneralContext](docs/TimelineGeneralContext.md) - [TimelineHalfCover](docs/TimelineHalfCover.md) + - [TimelineMarkEntriesUnreadGreaterThanSortIndex](docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md) - [TimelineMessagePrompt](docs/TimelineMessagePrompt.md) + - [TimelineNotification](docs/TimelineNotification.md) - [TimelinePinEntry](docs/TimelinePinEntry.md) - [TimelinePrompt](docs/TimelinePrompt.md) - [TimelineReplaceEntry](docs/TimelineReplaceEntry.md) - [TimelineResponse](docs/TimelineResponse.md) + - [TimelineResult](docs/TimelineResult.md) - [TimelineShowAlert](docs/TimelineShowAlert.md) - [TimelineShowAlertRichText](docs/TimelineShowAlertRichText.md) - [TimelineShowCover](docs/TimelineShowCover.md) @@ -459,7 +487,6 @@ Class | Method | HTTP request | Description - [TimelineTrend](docs/TimelineTrend.md) - [TimelineTweet](docs/TimelineTweet.md) - [TimelineUser](docs/TimelineUser.md) - - [TimelineV2](docs/TimelineV2.md) - [Timestamp](docs/Timestamp.md) - [TombstoneEntity](docs/TombstoneEntity.md) - [TombstoneInfo](docs/TombstoneInfo.md) @@ -540,7 +567,8 @@ Class | Method | HTTP request | Description - [UserTipJarSettings](docs/UserTipJarSettings.md) - [UserTweetsData](docs/UserTweetsData.md) - [UserTweetsResponse](docs/UserTweetsResponse.md) - - [UserTweetsResult](docs/UserTweetsResult.md) + - [UserTweetsResultV1](docs/UserTweetsResultV1.md) + - [UserTweetsResultV2](docs/UserTweetsResultV2.md) - [UserTweetsUser](docs/UserTweetsUser.md) - [UserUnavailable](docs/UserUnavailable.md) - [UserUnion](docs/UserUnion.md) diff --git a/twitter_openapi_python_generated/docs/AboutCommunityResult.md b/twitter_openapi_python_generated/docs/AboutCommunityResult.md new file mode 100644 index 0000000..644bcbb --- /dev/null +++ b/twitter_openapi_python_generated/docs/AboutCommunityResult.md @@ -0,0 +1,30 @@ +# AboutCommunityResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**about_timeline** | [**TimelineResult**](TimelineResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.about_community_result import AboutCommunityResult + +# TODO update the JSON string below +json = "{}" +# create an instance of AboutCommunityResult from a JSON string +about_community_result_instance = AboutCommunityResult.from_json(json) +# print the JSON string representation of the object +print(AboutCommunityResult.to_json()) + +# convert the object into a dict +about_community_result_dict = about_community_result_instance.to_dict() +# create an instance of AboutCommunityResult from a dict +about_community_result_from_dict = AboutCommunityResult.from_dict(about_community_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/AboutCommunityResults.md b/twitter_openapi_python_generated/docs/AboutCommunityResults.md new file mode 100644 index 0000000..30397e1 --- /dev/null +++ b/twitter_openapi_python_generated/docs/AboutCommunityResults.md @@ -0,0 +1,29 @@ +# AboutCommunityResults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**AboutCommunityResult**](AboutCommunityResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.about_community_results import AboutCommunityResults + +# TODO update the JSON string below +json = "{}" +# create an instance of AboutCommunityResults from a JSON string +about_community_results_instance = AboutCommunityResults.from_json(json) +# print the JSON string representation of the object +print(AboutCommunityResults.to_json()) + +# convert the object into a dict +about_community_results_dict = about_community_results_instance.to_dict() +# create an instance of AboutCommunityResults from a dict +about_community_results_from_dict = AboutCommunityResults.from_dict(about_community_results_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/AboutCommunityTweetData.md b/twitter_openapi_python_generated/docs/AboutCommunityTweetData.md new file mode 100644 index 0000000..a19156b --- /dev/null +++ b/twitter_openapi_python_generated/docs/AboutCommunityTweetData.md @@ -0,0 +1,29 @@ +# AboutCommunityTweetData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**community_results** | [**AboutCommunityResults**](AboutCommunityResults.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.about_community_tweet_data import AboutCommunityTweetData + +# TODO update the JSON string below +json = "{}" +# create an instance of AboutCommunityTweetData from a JSON string +about_community_tweet_data_instance = AboutCommunityTweetData.from_json(json) +# print the JSON string representation of the object +print(AboutCommunityTweetData.to_json()) + +# convert the object into a dict +about_community_tweet_data_dict = about_community_tweet_data_instance.to_dict() +# create an instance of AboutCommunityTweetData from a dict +about_community_tweet_data_from_dict = AboutCommunityTweetData.from_dict(about_community_tweet_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/AnalysisResults.md b/twitter_openapi_python_generated/docs/AnalysisResults.md new file mode 100644 index 0000000..03a652f --- /dev/null +++ b/twitter_openapi_python_generated/docs/AnalysisResults.md @@ -0,0 +1,29 @@ +# AnalysisResults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**Tweet**](Tweet.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.analysis_results import AnalysisResults + +# TODO update the JSON string below +json = "{}" +# create an instance of AnalysisResults from a JSON string +analysis_results_instance = AnalysisResults.from_json(json) +# print the JSON string representation of the object +print(AnalysisResults.to_json()) + +# convert the object into a dict +analysis_results_dict = analysis_results_instance.to_dict() +# create an instance of AnalysisResults from a dict +analysis_results_from_dict = AnalysisResults.from_dict(analysis_results_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/BirdwatchPivot.md b/twitter_openapi_python_generated/docs/BirdwatchPivot.md index c972c53..ad99304 100644 --- a/twitter_openapi_python_generated/docs/BirdwatchPivot.md +++ b/twitter_openapi_python_generated/docs/BirdwatchPivot.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **shorttitle** | **str** | | [optional] **subtitle** | [**BirdwatchPivotSubtitle**](BirdwatchPivotSubtitle.md) | | [optional] **title** | **str** | | +**title_detail** | **str** | | [optional] **visual_style** | **str** | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/CommunityAboutTimelineResponse.md b/twitter_openapi_python_generated/docs/CommunityAboutTimelineResponse.md new file mode 100644 index 0000000..d7320a6 --- /dev/null +++ b/twitter_openapi_python_generated/docs/CommunityAboutTimelineResponse.md @@ -0,0 +1,30 @@ +# CommunityAboutTimelineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AboutCommunityTweetData**](AboutCommunityTweetData.md) | | +**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CommunityAboutTimelineResponse from a JSON string +community_about_timeline_response_instance = CommunityAboutTimelineResponse.from_json(json) +# print the JSON string representation of the object +print(CommunityAboutTimelineResponse.to_json()) + +# convert the object into a dict +community_about_timeline_response_dict = community_about_timeline_response_instance.to_dict() +# create an instance of CommunityAboutTimelineResponse from a dict +community_about_timeline_response_from_dict = CommunityAboutTimelineResponse.from_dict(community_about_timeline_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/CommunityMediaTimelineResponse.md b/twitter_openapi_python_generated/docs/CommunityMediaTimelineResponse.md new file mode 100644 index 0000000..6c6bf9d --- /dev/null +++ b/twitter_openapi_python_generated/docs/CommunityMediaTimelineResponse.md @@ -0,0 +1,30 @@ +# CommunityMediaTimelineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**MediaCommunityTweetData**](MediaCommunityTweetData.md) | | +**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CommunityMediaTimelineResponse from a JSON string +community_media_timeline_response_instance = CommunityMediaTimelineResponse.from_json(json) +# print the JSON string representation of the object +print(CommunityMediaTimelineResponse.to_json()) + +# convert the object into a dict +community_media_timeline_response_dict = community_media_timeline_response_instance.to_dict() +# create an instance of CommunityMediaTimelineResponse from a dict +community_media_timeline_response_from_dict = CommunityMediaTimelineResponse.from_dict(community_media_timeline_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/CommunityTweetsTimelineResponse.md b/twitter_openapi_python_generated/docs/CommunityTweetsTimelineResponse.md new file mode 100644 index 0000000..547ebb5 --- /dev/null +++ b/twitter_openapi_python_generated/docs/CommunityTweetsTimelineResponse.md @@ -0,0 +1,30 @@ +# CommunityTweetsTimelineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RankedCommunityTweetData**](RankedCommunityTweetData.md) | | +**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CommunityTweetsTimelineResponse from a JSON string +community_tweets_timeline_response_instance = CommunityTweetsTimelineResponse.from_json(json) +# print the JSON string representation of the object +print(CommunityTweetsTimelineResponse.to_json()) + +# convert the object into a dict +community_tweets_timeline_response_dict = community_tweets_timeline_response_instance.to_dict() +# create an instance of CommunityTweetsTimelineResponse from a dict +community_tweets_timeline_response_from_dict = CommunityTweetsTimelineResponse.from_dict(community_tweets_timeline_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/ContentItemType.md b/twitter_openapi_python_generated/docs/ContentItemType.md index e50aa60..7a4463e 100644 --- a/twitter_openapi_python_generated/docs/ContentItemType.md +++ b/twitter_openapi_python_generated/docs/ContentItemType.md @@ -17,6 +17,10 @@ * `TIMELINETOMBSTONE` (value: `'TimelineTombstone'`) +* `TIMELINETREND` (value: `'TimelineTrend'`) + +* `TIMELINENOTIFICATION` (value: `'TimelineNotification'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/twitter_openapi_python_generated/docs/ContentUnion.md b/twitter_openapi_python_generated/docs/ContentUnion.md index e06b7ed..6627bae 100644 --- a/twitter_openapi_python_generated/docs/ContentUnion.md +++ b/twitter_openapi_python_generated/docs/ContentUnion.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **typename** | [**TypeName**](TypeName.md) | | -**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | +**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | [optional] **entry_type** | [**ContentEntryType**](ContentEntryType.md) | | **feedback_info** | [**FeedbackInfo**](FeedbackInfo.md) | | [optional] **item_content** | [**ItemContentUnion**](ItemContentUnion.md) | | diff --git a/twitter_openapi_python_generated/docs/GrokImageAnnotation.md b/twitter_openapi_python_generated/docs/GrokImageAnnotation.md new file mode 100644 index 0000000..1c82469 --- /dev/null +++ b/twitter_openapi_python_generated/docs/GrokImageAnnotation.md @@ -0,0 +1,30 @@ +# GrokImageAnnotation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prompt** | **str** | | +**upsampled_prompt** | **str** | | + +## Example + +```python +from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation + +# TODO update the JSON string below +json = "{}" +# create an instance of GrokImageAnnotation from a JSON string +grok_image_annotation_instance = GrokImageAnnotation.from_json(json) +# print the JSON string representation of the object +print(GrokImageAnnotation.to_json()) + +# convert the object into a dict +grok_image_annotation_dict = grok_image_annotation_instance.to_dict() +# create an instance of GrokImageAnnotation from a dict +grok_image_annotation_from_dict = GrokImageAnnotation.from_dict(grok_image_annotation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/GrokShareAttachmentItem.md b/twitter_openapi_python_generated/docs/GrokShareAttachmentItem.md index 8676b10..edc2f05 100644 --- a/twitter_openapi_python_generated/docs/GrokShareAttachmentItem.md +++ b/twitter_openapi_python_generated/docs/GrokShareAttachmentItem.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**analysis_post_id_results** | [**AnalysisResults**](AnalysisResults.md) | | [optional] **media_urls** | **List[str]** | | **message** | **str** | | diff --git a/twitter_openapi_python_generated/docs/HomeTimelineResponseData.md b/twitter_openapi_python_generated/docs/HomeTimelineResponseData.md index f02c962..dbfdd76 100644 --- a/twitter_openapi_python_generated/docs/HomeTimelineResponseData.md +++ b/twitter_openapi_python_generated/docs/HomeTimelineResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**home** | [**HomeTimelineHome**](HomeTimelineHome.md) | | [optional] +**home** | [**HomeTimelineHome**](HomeTimelineHome.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/InstructionType.md b/twitter_openapi_python_generated/docs/InstructionType.md index 5d4f222..fc081e5 100644 --- a/twitter_openapi_python_generated/docs/InstructionType.md +++ b/twitter_openapi_python_generated/docs/InstructionType.md @@ -19,6 +19,10 @@ * `TIMELINESHOWCOVER` (value: `'TimelineShowCover'`) +* `TIMELINECLEARENTRIESUNREADSTATE` (value: `'TimelineClearEntriesUnreadState'`) + +* `TIMELINEMARKENTRIESUNREADGREATERTHANSORTINDEX` (value: `'TimelineMarkEntriesUnreadGreaterThanSortIndex'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/twitter_openapi_python_generated/docs/InstructionUnion.md b/twitter_openapi_python_generated/docs/InstructionUnion.md index 9c3399e..553a611 100644 --- a/twitter_openapi_python_generated/docs/InstructionUnion.md +++ b/twitter_openapi_python_generated/docs/InstructionUnion.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **direction** | **str** | | **client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | **cover** | [**TimelineHalfCover**](TimelineHalfCover.md) | | +**sort_index** | **str** | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/ItemContentUnion.md b/twitter_openapi_python_generated/docs/ItemContentUnion.md index bb34553..5542b83 100644 --- a/twitter_openapi_python_generated/docs/ItemContentUnion.md +++ b/twitter_openapi_python_generated/docs/ItemContentUnion.md @@ -22,13 +22,19 @@ Name | Type | Description | Notes **user_results** | [**UserResults**](UserResults.md) | | **tombstone_display_type** | **str** | | [optional] **tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional] -**images** | [**List[TrendImage]**](TrendImage.md) | | +**images** | [**List[TrendImage]**](TrendImage.md) | | [optional] **is_ai_trend** | **bool** | | [optional] **name** | **str** | | **social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional] -**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | +**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | [optional] **trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | | **trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | +**id** | **str** | | +**notification_icon** | **str** | | +**notification_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | +**rich_message** | [**RichMessage**](RichMessage.md) | | +**template** | [**NotificationTemplate**](NotificationTemplate.md) | | +**timestamp_ms** | **str** | | ## Example diff --git a/twitter_openapi_python_generated/docs/ListTweetsTimeline.md b/twitter_openapi_python_generated/docs/ListTweetsTimeline.md deleted file mode 100644 index 41ffdb0..0000000 --- a/twitter_openapi_python_generated/docs/ListTweetsTimeline.md +++ /dev/null @@ -1,29 +0,0 @@ -# ListTweetsTimeline - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeline** | [**Timeline**](Timeline.md) | | [optional] - -## Example - -```python -from twitter_openapi_python_generated.models.list_tweets_timeline import ListTweetsTimeline - -# TODO update the JSON string below -json = "{}" -# create an instance of ListTweetsTimeline from a JSON string -list_tweets_timeline_instance = ListTweetsTimeline.from_json(json) -# print the JSON string representation of the object -print(ListTweetsTimeline.to_json()) - -# convert the object into a dict -list_tweets_timeline_dict = list_tweets_timeline_instance.to_dict() -# create an instance of ListTweetsTimeline from a dict -list_tweets_timeline_from_dict = ListTweetsTimeline.from_dict(list_tweets_timeline_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/twitter_openapi_python_generated/docs/ListTweetsTimelineData.md b/twitter_openapi_python_generated/docs/ListTweetsTimelineData.md index 65730ea..2a04416 100644 --- a/twitter_openapi_python_generated/docs/ListTweetsTimelineData.md +++ b/twitter_openapi_python_generated/docs/ListTweetsTimelineData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**ListTweetsTimelineList**](ListTweetsTimelineList.md) | | [optional] +**list** | [**ListTweetsTimelineList**](ListTweetsTimelineList.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/ListTweetsTimelineList.md b/twitter_openapi_python_generated/docs/ListTweetsTimelineList.md index 75f358a..46d6184 100644 --- a/twitter_openapi_python_generated/docs/ListTweetsTimelineList.md +++ b/twitter_openapi_python_generated/docs/ListTweetsTimelineList.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tweets_timeline** | [**ListTweetsTimeline**](ListTweetsTimeline.md) | | +**tweets_timeline** | [**TimelineResult**](TimelineResult.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/MediaCommunityResult.md b/twitter_openapi_python_generated/docs/MediaCommunityResult.md new file mode 100644 index 0000000..d4681fb --- /dev/null +++ b/twitter_openapi_python_generated/docs/MediaCommunityResult.md @@ -0,0 +1,30 @@ +# MediaCommunityResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**community_media_timeline** | [**TimelineResult**](TimelineResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.media_community_result import MediaCommunityResult + +# TODO update the JSON string below +json = "{}" +# create an instance of MediaCommunityResult from a JSON string +media_community_result_instance = MediaCommunityResult.from_json(json) +# print the JSON string representation of the object +print(MediaCommunityResult.to_json()) + +# convert the object into a dict +media_community_result_dict = media_community_result_instance.to_dict() +# create an instance of MediaCommunityResult from a dict +media_community_result_from_dict = MediaCommunityResult.from_dict(media_community_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/MediaCommunityResults.md b/twitter_openapi_python_generated/docs/MediaCommunityResults.md new file mode 100644 index 0000000..bb4c272 --- /dev/null +++ b/twitter_openapi_python_generated/docs/MediaCommunityResults.md @@ -0,0 +1,29 @@ +# MediaCommunityResults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**MediaCommunityResult**](MediaCommunityResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.media_community_results import MediaCommunityResults + +# TODO update the JSON string below +json = "{}" +# create an instance of MediaCommunityResults from a JSON string +media_community_results_instance = MediaCommunityResults.from_json(json) +# print the JSON string representation of the object +print(MediaCommunityResults.to_json()) + +# convert the object into a dict +media_community_results_dict = media_community_results_instance.to_dict() +# create an instance of MediaCommunityResults from a dict +media_community_results_from_dict = MediaCommunityResults.from_dict(media_community_results_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/MediaCommunityTweetData.md b/twitter_openapi_python_generated/docs/MediaCommunityTweetData.md new file mode 100644 index 0000000..b3a6553 --- /dev/null +++ b/twitter_openapi_python_generated/docs/MediaCommunityTweetData.md @@ -0,0 +1,29 @@ +# MediaCommunityTweetData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**community_results** | [**MediaCommunityResults**](MediaCommunityResults.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.media_community_tweet_data import MediaCommunityTweetData + +# TODO update the JSON string below +json = "{}" +# create an instance of MediaCommunityTweetData from a JSON string +media_community_tweet_data_instance = MediaCommunityTweetData.from_json(json) +# print the JSON string representation of the object +print(MediaCommunityTweetData.to_json()) + +# convert the object into a dict +media_community_tweet_data_dict = media_community_tweet_data_instance.to_dict() +# create an instance of MediaCommunityTweetData from a dict +media_community_tweet_data_from_dict = MediaCommunityTweetData.from_dict(media_community_tweet_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/MediaResult.md b/twitter_openapi_python_generated/docs/MediaResult.md index c6921dd..cbbd7f5 100644 --- a/twitter_openapi_python_generated/docs/MediaResult.md +++ b/twitter_openapi_python_generated/docs/MediaResult.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**grok_image_annotation** | [**GrokImageAnnotation**](GrokImageAnnotation.md) | | [optional] **media_key** | **str** | | ## Example diff --git a/twitter_openapi_python_generated/docs/NotificationTemplate.md b/twitter_openapi_python_generated/docs/NotificationTemplate.md new file mode 100644 index 0000000..9e61448 --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationTemplate.md @@ -0,0 +1,31 @@ +# NotificationTemplate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | [optional] +**from_users** | **List[object]** | | [optional] +**target_objects** | **List[object]** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.notification_template import NotificationTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationTemplate from a JSON string +notification_template_instance = NotificationTemplate.from_json(json) +# print the JSON string representation of the object +print(NotificationTemplate.to_json()) + +# convert the object into a dict +notification_template_dict = notification_template_instance.to_dict() +# create an instance of NotificationTemplate from a dict +notification_template_from_dict = NotificationTemplate.from_dict(notification_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/NotificationsResult.md b/twitter_openapi_python_generated/docs/NotificationsResult.md new file mode 100644 index 0000000..4c659bb --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationsResult.md @@ -0,0 +1,31 @@ +# NotificationsResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**notification_timeline** | [**TimelineResult**](TimelineResult.md) | | +**rest_id** | **str** | | + +## Example + +```python +from twitter_openapi_python_generated.models.notifications_result import NotificationsResult + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationsResult from a JSON string +notifications_result_instance = NotificationsResult.from_json(json) +# print the JSON string representation of the object +print(NotificationsResult.to_json()) + +# convert the object into a dict +notifications_result_dict = notifications_result_instance.to_dict() +# create an instance of NotificationsResult from a dict +notifications_result_from_dict = NotificationsResult.from_dict(notifications_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/NotificationsTimelineData.md b/twitter_openapi_python_generated/docs/NotificationsTimelineData.md new file mode 100644 index 0000000..61dddbd --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationsTimelineData.md @@ -0,0 +1,29 @@ +# NotificationsTimelineData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**viewer_v2** | [**NotificationsViewerV2**](NotificationsViewerV2.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationsTimelineData from a JSON string +notifications_timeline_data_instance = NotificationsTimelineData.from_json(json) +# print the JSON string representation of the object +print(NotificationsTimelineData.to_json()) + +# convert the object into a dict +notifications_timeline_data_dict = notifications_timeline_data_instance.to_dict() +# create an instance of NotificationsTimelineData from a dict +notifications_timeline_data_from_dict = NotificationsTimelineData.from_dict(notifications_timeline_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/NotificationsTimelineResponse.md b/twitter_openapi_python_generated/docs/NotificationsTimelineResponse.md new file mode 100644 index 0000000..36a0cd3 --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationsTimelineResponse.md @@ -0,0 +1,30 @@ +# NotificationsTimelineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**NotificationsTimelineData**](NotificationsTimelineData.md) | | +**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationsTimelineResponse from a JSON string +notifications_timeline_response_instance = NotificationsTimelineResponse.from_json(json) +# print the JSON string representation of the object +print(NotificationsTimelineResponse.to_json()) + +# convert the object into a dict +notifications_timeline_response_dict = notifications_timeline_response_instance.to_dict() +# create an instance of NotificationsTimelineResponse from a dict +notifications_timeline_response_from_dict = NotificationsTimelineResponse.from_dict(notifications_timeline_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/NotificationsUserResults.md b/twitter_openapi_python_generated/docs/NotificationsUserResults.md new file mode 100644 index 0000000..c472af6 --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationsUserResults.md @@ -0,0 +1,29 @@ +# NotificationsUserResults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**NotificationsResult**](NotificationsResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationsUserResults from a JSON string +notifications_user_results_instance = NotificationsUserResults.from_json(json) +# print the JSON string representation of the object +print(NotificationsUserResults.to_json()) + +# convert the object into a dict +notifications_user_results_dict = notifications_user_results_instance.to_dict() +# create an instance of NotificationsUserResults from a dict +notifications_user_results_from_dict = NotificationsUserResults.from_dict(notifications_user_results_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/NotificationsViewerV2.md b/twitter_openapi_python_generated/docs/NotificationsViewerV2.md new file mode 100644 index 0000000..1cb23b8 --- /dev/null +++ b/twitter_openapi_python_generated/docs/NotificationsViewerV2.md @@ -0,0 +1,29 @@ +# NotificationsViewerV2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_results** | [**NotificationsUserResults**](NotificationsUserResults.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 + +# TODO update the JSON string below +json = "{}" +# create an instance of NotificationsViewerV2 from a JSON string +notifications_viewer_v2_instance = NotificationsViewerV2.from_json(json) +# print the JSON string representation of the object +print(NotificationsViewerV2.to_json()) + +# convert the object into a dict +notifications_viewer_v2_dict = notifications_viewer_v2_instance.to_dict() +# create an instance of NotificationsViewerV2 from a dict +notifications_viewer_v2_from_dict = NotificationsViewerV2.from_dict(notifications_viewer_v2_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/PostApi.md b/twitter_openapi_python_generated/docs/PostApi.md index 7fa242b..166c0e1 100644 --- a/twitter_openapi_python_generated/docs/PostApi.md +++ b/twitter_openapi_python_generated/docs/PostApi.md @@ -668,7 +668,7 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.PostApi(api_client) - path_query_id = 'xT36w0XM3A8jDynpkram2A' # str | (default to 'xT36w0XM3A8jDynpkram2A') + path_query_id = 'IID9x6WsdMnTlXnzXGq8ng' # str | (default to 'IID9x6WsdMnTlXnzXGq8ng') post_create_tweet_request = twitter_openapi_python_generated.PostCreateTweetRequest() # PostCreateTweetRequest | body try: @@ -686,7 +686,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'xT36w0XM3A8jDynpkram2A'] + **path_query_id** | **str**| | [default to 'IID9x6WsdMnTlXnzXGq8ng'] **post_create_tweet_request** | [**PostCreateTweetRequest**](PostCreateTweetRequest.md)| body | ### Return type diff --git a/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md b/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md index 3e4a0bd..751f550 100644 --- a/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark'] **query_id** | **str** | | [default to 'aoDbu3RHznuiSkQ9aNM67Q'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md b/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md index 0f39d2d..200b51a 100644 --- a/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet'] **query_id** | **str** | | [default to 'ojPdsZsimiJrUGLR1sjUtA'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md b/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md index a427df3..28375ca 100644 --- a/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet'] **features** | [**PostCreateTweetRequestFeatures**](PostCreateTweetRequestFeatures.md) | | -**query_id** | **str** | | [default to 'xT36w0XM3A8jDynpkram2A'] +**query_id** | **str** | | [default to 'IID9x6WsdMnTlXnzXGq8ng'] **variables** | [**PostCreateTweetRequestVariables**](PostCreateTweetRequestVariables.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/PostCreateTweetRequestFeatures.md b/twitter_openapi_python_generated/docs/PostCreateTweetRequestFeatures.md index a658190..cd16fb1 100644 --- a/twitter_openapi_python_generated/docs/PostCreateTweetRequestFeatures.md +++ b/twitter_openapi_python_generated/docs/PostCreateTweetRequestFeatures.md @@ -14,14 +14,21 @@ Name | Type | Description | Notes **longform_notetweets_consumption_enabled** | **bool** | | [default to True] **longform_notetweets_inline_media_enabled** | **bool** | | [default to True] **longform_notetweets_rich_text_read_enabled** | **bool** | | [default to True] +**premium_content_api_read_enabled** | **bool** | | [default to False] +**profile_label_improvements_pcf_label_in_post_enabled** | **bool** | | [default to True] **responsive_web_edit_tweet_api_enabled** | **bool** | | [default to True] **responsive_web_enhance_cards_enabled** | **bool** | | [default to False] -**responsive_web_graphql_exclude_directive_enabled** | **bool** | | [default to True] **responsive_web_graphql_skip_user_profile_image_extensions_enabled** | **bool** | | [default to False] **responsive_web_graphql_timeline_navigation_enabled** | **bool** | | [default to True] +**responsive_web_grok_analysis_button_from_backend** | **bool** | | [default to False] +**responsive_web_grok_analyze_button_fetch_trends_enabled** | **bool** | | [default to False] +**responsive_web_grok_analyze_post_followups_enabled** | **bool** | | [default to True] +**responsive_web_grok_image_annotation_enabled** | **bool** | | [default to True] +**responsive_web_grok_share_attachment_enabled** | **bool** | | [default to True] +**responsive_web_grok_show_grok_translated_post** | **bool** | | [default to False] +**responsive_web_jetfuel_frame** | **bool** | | [default to False] **responsive_web_twitter_article_tweet_consumption_enabled** | **bool** | | [default to True] **rweb_tipjar_consumption_enabled** | **bool** | | [default to True] -**rweb_video_timestamps_enabled** | **bool** | | [default to True] **standardized_nudges_misinfo** | **bool** | | [default to True] **tweet_awards_web_tipping_enabled** | **bool** | | [default to False] **tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled** | **bool** | | [default to True] diff --git a/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md b/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md index f042438..15b44a8 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark'] **query_id** | **str** | | [default to 'Wlmlj2-xzyS1GN3a6cj-mQ'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md b/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md index fca7521..ed0d07a 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet'] **query_id** | **str** | | [default to 'iQtK4dl5hBmXewYZuEOKVw'] **variables** | [**PostDeleteRetweetRequestVariables**](PostDeleteRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md b/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md index 5e9c370..3c58b5d 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet'] **query_id** | **str** | | [default to 'VaenaVgh5q5ih7kvyVjgtg'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md b/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md index 8d18ade..bc27265 100644 --- a/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet'] **query_id** | **str** | | [default to 'lI07N6Otwv1PhnEgXILM7A'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md b/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md index 44e0d0e..e36a862 100644 --- a/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**method** | **str** | | [default to 'POST'] +**path** | **str** | | [default to '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet'] **query_id** | **str** | | [default to 'ZYKSe-w7KEslx3JhSIk5LA'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/RankedCommunityResult.md b/twitter_openapi_python_generated/docs/RankedCommunityResult.md new file mode 100644 index 0000000..3ba71b7 --- /dev/null +++ b/twitter_openapi_python_generated/docs/RankedCommunityResult.md @@ -0,0 +1,30 @@ +# RankedCommunityResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**ranked_community_timeline** | [**TimelineResult**](TimelineResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult + +# TODO update the JSON string below +json = "{}" +# create an instance of RankedCommunityResult from a JSON string +ranked_community_result_instance = RankedCommunityResult.from_json(json) +# print the JSON string representation of the object +print(RankedCommunityResult.to_json()) + +# convert the object into a dict +ranked_community_result_dict = ranked_community_result_instance.to_dict() +# create an instance of RankedCommunityResult from a dict +ranked_community_result_from_dict = RankedCommunityResult.from_dict(ranked_community_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/RankedCommunityResults.md b/twitter_openapi_python_generated/docs/RankedCommunityResults.md new file mode 100644 index 0000000..0e05092 --- /dev/null +++ b/twitter_openapi_python_generated/docs/RankedCommunityResults.md @@ -0,0 +1,29 @@ +# RankedCommunityResults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**RankedCommunityResult**](RankedCommunityResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.ranked_community_results import RankedCommunityResults + +# TODO update the JSON string below +json = "{}" +# create an instance of RankedCommunityResults from a JSON string +ranked_community_results_instance = RankedCommunityResults.from_json(json) +# print the JSON string representation of the object +print(RankedCommunityResults.to_json()) + +# convert the object into a dict +ranked_community_results_dict = ranked_community_results_instance.to_dict() +# create an instance of RankedCommunityResults from a dict +ranked_community_results_from_dict = RankedCommunityResults.from_dict(ranked_community_results_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/RankedCommunityTweetData.md b/twitter_openapi_python_generated/docs/RankedCommunityTweetData.md new file mode 100644 index 0000000..094918f --- /dev/null +++ b/twitter_openapi_python_generated/docs/RankedCommunityTweetData.md @@ -0,0 +1,29 @@ +# RankedCommunityTweetData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**community_results** | [**RankedCommunityResults**](RankedCommunityResults.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.ranked_community_tweet_data import RankedCommunityTweetData + +# TODO update the JSON string below +json = "{}" +# create an instance of RankedCommunityTweetData from a JSON string +ranked_community_tweet_data_instance = RankedCommunityTweetData.from_json(json) +# print the JSON string representation of the object +print(RankedCommunityTweetData.to_json()) + +# convert the object into a dict +ranked_community_tweet_data_dict = ranked_community_tweet_data_instance.to_dict() +# create an instance of RankedCommunityTweetData from a dict +ranked_community_tweet_data_from_dict = RankedCommunityTweetData.from_dict(ranked_community_tweet_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/RichMessage.md b/twitter_openapi_python_generated/docs/RichMessage.md new file mode 100644 index 0000000..a3836bd --- /dev/null +++ b/twitter_openapi_python_generated/docs/RichMessage.md @@ -0,0 +1,30 @@ +# RichMessage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rtl** | **bool** | | [optional] +**text** | **str** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.rich_message import RichMessage + +# TODO update the JSON string below +json = "{}" +# create an instance of RichMessage from a JSON string +rich_message_instance = RichMessage.from_json(json) +# print the JSON string representation of the object +print(RichMessage.to_json()) + +# convert the object into a dict +rich_message_dict = rich_message_instance.to_dict() +# create an instance of RichMessage from a dict +rich_message_from_dict = RichMessage.from_dict(rich_message_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/SearchTimelineData.md b/twitter_openapi_python_generated/docs/SearchTimelineData.md index b234b71..1bcbdb5 100644 --- a/twitter_openapi_python_generated/docs/SearchTimelineData.md +++ b/twitter_openapi_python_generated/docs/SearchTimelineData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**search_by_raw_query** | [**SearchByRawQuery**](SearchByRawQuery.md) | | [optional] +**search_by_raw_query** | [**SearchByRawQuery**](SearchByRawQuery.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/SocialContextUnion.md b/twitter_openapi_python_generated/docs/SocialContextUnion.md index 6ea3669..2aa0931 100644 --- a/twitter_openapi_python_generated/docs/SocialContextUnion.md +++ b/twitter_openapi_python_generated/docs/SocialContextUnion.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context_image_urls** | **List[str]** | | [optional] **context_type** | **str** | | [optional] **landing_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | [optional] **text** | **str** | | [optional] diff --git a/twitter_openapi_python_generated/docs/TimelineClearEntriesUnreadState.md b/twitter_openapi_python_generated/docs/TimelineClearEntriesUnreadState.md new file mode 100644 index 0000000..757ac0c --- /dev/null +++ b/twitter_openapi_python_generated/docs/TimelineClearEntriesUnreadState.md @@ -0,0 +1,29 @@ +# TimelineClearEntriesUnreadState + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**InstructionType**](InstructionType.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.timeline_clear_entries_unread_state import TimelineClearEntriesUnreadState + +# TODO update the JSON string below +json = "{}" +# create an instance of TimelineClearEntriesUnreadState from a JSON string +timeline_clear_entries_unread_state_instance = TimelineClearEntriesUnreadState.from_json(json) +# print the JSON string representation of the object +print(TimelineClearEntriesUnreadState.to_json()) + +# convert the object into a dict +timeline_clear_entries_unread_state_dict = timeline_clear_entries_unread_state_instance.to_dict() +# create an instance of TimelineClearEntriesUnreadState from a dict +timeline_clear_entries_unread_state_from_dict = TimelineClearEntriesUnreadState.from_dict(timeline_clear_entries_unread_state_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/TimelineGeneralContext.md b/twitter_openapi_python_generated/docs/TimelineGeneralContext.md index e3b22c3..833d1af 100644 --- a/twitter_openapi_python_generated/docs/TimelineGeneralContext.md +++ b/twitter_openapi_python_generated/docs/TimelineGeneralContext.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context_image_urls** | **List[str]** | | [optional] **context_type** | **str** | | [optional] **landing_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | [optional] **text** | **str** | | [optional] diff --git a/twitter_openapi_python_generated/docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md b/twitter_openapi_python_generated/docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md new file mode 100644 index 0000000..95ac6dc --- /dev/null +++ b/twitter_openapi_python_generated/docs/TimelineMarkEntriesUnreadGreaterThanSortIndex.md @@ -0,0 +1,30 @@ +# TimelineMarkEntriesUnreadGreaterThanSortIndex + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sort_index** | **str** | | [optional] +**type** | [**InstructionType**](InstructionType.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.timeline_mark_entries_unread_greater_than_sort_index import TimelineMarkEntriesUnreadGreaterThanSortIndex + +# TODO update the JSON string below +json = "{}" +# create an instance of TimelineMarkEntriesUnreadGreaterThanSortIndex from a JSON string +timeline_mark_entries_unread_greater_than_sort_index_instance = TimelineMarkEntriesUnreadGreaterThanSortIndex.from_json(json) +# print the JSON string representation of the object +print(TimelineMarkEntriesUnreadGreaterThanSortIndex.to_json()) + +# convert the object into a dict +timeline_mark_entries_unread_greater_than_sort_index_dict = timeline_mark_entries_unread_greater_than_sort_index_instance.to_dict() +# create an instance of TimelineMarkEntriesUnreadGreaterThanSortIndex from a dict +timeline_mark_entries_unread_greater_than_sort_index_from_dict = TimelineMarkEntriesUnreadGreaterThanSortIndex.from_dict(timeline_mark_entries_unread_greater_than_sort_index_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/TimelineNotification.md b/twitter_openapi_python_generated/docs/TimelineNotification.md new file mode 100644 index 0000000..18814f2 --- /dev/null +++ b/twitter_openapi_python_generated/docs/TimelineNotification.md @@ -0,0 +1,36 @@ +# TimelineNotification + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**id** | **str** | | +**item_type** | [**ContentItemType**](ContentItemType.md) | | +**notification_icon** | **str** | | +**notification_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | +**rich_message** | [**RichMessage**](RichMessage.md) | | +**template** | [**NotificationTemplate**](NotificationTemplate.md) | | +**timestamp_ms** | **str** | | + +## Example + +```python +from twitter_openapi_python_generated.models.timeline_notification import TimelineNotification + +# TODO update the JSON string below +json = "{}" +# create an instance of TimelineNotification from a JSON string +timeline_notification_instance = TimelineNotification.from_json(json) +# print the JSON string representation of the object +print(TimelineNotification.to_json()) + +# convert the object into a dict +timeline_notification_dict = timeline_notification_instance.to_dict() +# create an instance of TimelineNotification from a dict +timeline_notification_from_dict = TimelineNotification.from_dict(timeline_notification_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/TimelineV2.md b/twitter_openapi_python_generated/docs/TimelineResult.md similarity index 51% rename from twitter_openapi_python_generated/docs/TimelineV2.md rename to twitter_openapi_python_generated/docs/TimelineResult.md index c910541..c9aeb5b 100644 --- a/twitter_openapi_python_generated/docs/TimelineV2.md +++ b/twitter_openapi_python_generated/docs/TimelineResult.md @@ -1,28 +1,29 @@ -# TimelineV2 +# TimelineResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] **timeline** | [**Timeline**](Timeline.md) | | [optional] ## Example ```python -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 +from twitter_openapi_python_generated.models.timeline_result import TimelineResult # TODO update the JSON string below json = "{}" -# create an instance of TimelineV2 from a JSON string -timeline_v2_instance = TimelineV2.from_json(json) +# create an instance of TimelineResult from a JSON string +timeline_result_instance = TimelineResult.from_json(json) # print the JSON string representation of the object -print(TimelineV2.to_json()) +print(TimelineResult.to_json()) # convert the object into a dict -timeline_v2_dict = timeline_v2_instance.to_dict() -# create an instance of TimelineV2 from a dict -timeline_v2_from_dict = TimelineV2.from_dict(timeline_v2_dict) +timeline_result_dict = timeline_result_instance.to_dict() +# create an instance of TimelineResult from a dict +timeline_result_from_dict = TimelineResult.from_dict(timeline_result_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/twitter_openapi_python_generated/docs/TimelineTimelineModule.md b/twitter_openapi_python_generated/docs/TimelineTimelineModule.md index 7a2913d..69c8ccd 100644 --- a/twitter_openapi_python_generated/docs/TimelineTimelineModule.md +++ b/twitter_openapi_python_generated/docs/TimelineTimelineModule.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **typename** | [**TypeName**](TypeName.md) | | -**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | +**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | [optional] **display_type** | [**DisplayType**](DisplayType.md) | | **entry_type** | [**ContentEntryType**](ContentEntryType.md) | | **feedback_info** | [**FeedbackInfo**](FeedbackInfo.md) | | [optional] diff --git a/twitter_openapi_python_generated/docs/TimelineTrend.md b/twitter_openapi_python_generated/docs/TimelineTrend.md index 805c968..ce7b656 100644 --- a/twitter_openapi_python_generated/docs/TimelineTrend.md +++ b/twitter_openapi_python_generated/docs/TimelineTrend.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **typename** | [**TypeName**](TypeName.md) | | -**images** | [**List[TrendImage]**](TrendImage.md) | | +**images** | [**List[TrendImage]**](TrendImage.md) | | [optional] **is_ai_trend** | **bool** | | [optional] -**item_type** | [**ContentItemType**](ContentItemType.md) | | +**item_type** | [**ContentItemType**](ContentItemType.md) | | [optional] **name** | **str** | | **social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional] -**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | +**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | [optional] **trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | | **trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | diff --git a/twitter_openapi_python_generated/docs/TweetApi.md b/twitter_openapi_python_generated/docs/TweetApi.md index 6ece101..aabdf74 100644 --- a/twitter_openapi_python_generated/docs/TweetApi.md +++ b/twitter_openapi_python_generated/docs/TweetApi.md @@ -5,10 +5,14 @@ All URIs are relative to *https://x.com/i/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_bookmarks**](TweetApi.md#get_bookmarks) | **GET** /graphql/{pathQueryId}/Bookmarks | +[**get_community_about_timeline**](TweetApi.md#get_community_about_timeline) | **GET** /graphql/{pathQueryId}/CommunityAboutTimeline | +[**get_community_media_timeline**](TweetApi.md#get_community_media_timeline) | **GET** /graphql/{pathQueryId}/CommunityMediaTimeline | +[**get_community_tweets_timeline**](TweetApi.md#get_community_tweets_timeline) | **GET** /graphql/{pathQueryId}/CommunityTweetsTimeline | [**get_home_latest_timeline**](TweetApi.md#get_home_latest_timeline) | **GET** /graphql/{pathQueryId}/HomeLatestTimeline | [**get_home_timeline**](TweetApi.md#get_home_timeline) | **GET** /graphql/{pathQueryId}/HomeTimeline | [**get_likes**](TweetApi.md#get_likes) | **GET** /graphql/{pathQueryId}/Likes | [**get_list_latest_tweets_timeline**](TweetApi.md#get_list_latest_tweets_timeline) | **GET** /graphql/{pathQueryId}/ListLatestTweetsTimeline | +[**get_notifications_timeline**](TweetApi.md#get_notifications_timeline) | **GET** /graphql/{pathQueryId}/NotificationsTimeline | [**get_search_timeline**](TweetApi.md#get_search_timeline) | **GET** /graphql/{pathQueryId}/SearchTimeline | [**get_tweet_detail**](TweetApi.md#get_tweet_detail) | **GET** /graphql/{pathQueryId}/TweetDetail | [**get_user_highlights_tweets**](TweetApi.md#get_user_highlights_tweets) | **GET** /graphql/{pathQueryId}/UserHighlightsTweets | @@ -206,9 +210,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = '1vFR5f4iSCQZLzjdSsNYwA' # str | (default to '1vFR5f4iSCQZLzjdSsNYwA') + path_query_id = '2neUNDqrrFzbLui8yallcQ' # str | (default to '2neUNDqrrFzbLui8yallcQ') variables = '{"count": 20, "includePromotedContent": true}' # str | (default to '{"count": 20, "includePromotedContent": true}') - features = '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_bookmarks(path_query_id, variables, features) @@ -225,9 +229,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to '1vFR5f4iSCQZLzjdSsNYwA'] + **path_query_id** | **str**| | [default to '2neUNDqrrFzbLui8yallcQ'] **variables** | **str**| | [default to '{"count": 20, "includePromotedContent": true}'] - **features** | **str**| | [default to '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -250,6 +254,705 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_community_about_timeline** +> CommunityAboutTimelineResponse get_community_about_timeline(path_query_id, variables, features) + +get about of community + +### Example + +* Api Key Authentication (Accept): +* Api Key Authentication (ClientLanguage): +* Api Key Authentication (Priority): +* Api Key Authentication (Referer): +* Api Key Authentication (SecFetchDest): +* Api Key Authentication (SecChUaPlatform): +* Api Key Authentication (SecFetchMode): +* Api Key Authentication (CsrfToken): +* Api Key Authentication (ClientUuid): +* Bearer Authentication (BearerAuth): +* Api Key Authentication (GuestToken): +* Api Key Authentication (SecChUa): +* Api Key Authentication (CookieGt0): +* Api Key Authentication (ClientTransactionId): +* Api Key Authentication (ActiveUser): +* Api Key Authentication (CookieCt0): +* Api Key Authentication (UserAgent): +* Api Key Authentication (AcceptLanguage): +* Api Key Authentication (SecFetchSite): +* Api Key Authentication (AuthType): +* Api Key Authentication (CookieAuthToken): +* Api Key Authentication (SecChUaMobile): +* Api Key Authentication (AcceptEncoding): + +```python +import twitter_openapi_python_generated +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse +from twitter_openapi_python_generated.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://x.com/i/api +# See configuration.py for a list of all supported configuration parameters. +configuration = twitter_openapi_python_generated.Configuration( + host = "https://x.com/i/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Accept +configuration.api_key['Accept'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Accept'] = 'Bearer' + +# Configure API key authorization: ClientLanguage +configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' + +# Configure API key authorization: Priority +configuration.api_key['Priority'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Priority'] = 'Bearer' + +# Configure API key authorization: Referer +configuration.api_key['Referer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Referer'] = 'Bearer' + +# Configure API key authorization: SecFetchDest +configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' + +# Configure API key authorization: SecChUaPlatform +configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' + +# Configure API key authorization: SecFetchMode +configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' + +# Configure API key authorization: CsrfToken +configuration.api_key['CsrfToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CsrfToken'] = 'Bearer' + +# Configure API key authorization: ClientUuid +configuration.api_key['ClientUuid'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientUuid'] = 'Bearer' + +# Configure Bearer authorization: BearerAuth +configuration = twitter_openapi_python_generated.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: GuestToken +configuration.api_key['GuestToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['GuestToken'] = 'Bearer' + +# Configure API key authorization: SecChUa +configuration.api_key['SecChUa'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUa'] = 'Bearer' + +# Configure API key authorization: CookieGt0 +configuration.api_key['CookieGt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieGt0'] = 'Bearer' + +# Configure API key authorization: ClientTransactionId +configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' + +# Configure API key authorization: ActiveUser +configuration.api_key['ActiveUser'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ActiveUser'] = 'Bearer' + +# Configure API key authorization: CookieCt0 +configuration.api_key['CookieCt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieCt0'] = 'Bearer' + +# Configure API key authorization: UserAgent +configuration.api_key['UserAgent'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['UserAgent'] = 'Bearer' + +# Configure API key authorization: AcceptLanguage +configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' + +# Configure API key authorization: SecFetchSite +configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' + +# Configure API key authorization: AuthType +configuration.api_key['AuthType'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AuthType'] = 'Bearer' + +# Configure API key authorization: CookieAuthToken +configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' + +# Configure API key authorization: SecChUaMobile +configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' + +# Configure API key authorization: AcceptEncoding +configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' + +# Enter a context with an instance of the API client +with twitter_openapi_python_generated.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = twitter_openapi_python_generated.TweetApi(api_client) + path_query_id = 'hSZPW3bFfaXkhJRBnZpLMA' # str | (default to 'hSZPW3bFfaXkhJRBnZpLMA') + variables = '{"communityId": "1489422448332197888", "withCommunity": true}' # str | (default to '{"communityId": "1489422448332197888", "withCommunity": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + + try: + api_response = api_instance.get_community_about_timeline(path_query_id, variables, features) + print("The response of TweetApi->get_community_about_timeline:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TweetApi->get_community_about_timeline: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path_query_id** | **str**| | [default to 'hSZPW3bFfaXkhJRBnZpLMA'] + **variables** | **str**| | [default to '{"communityId": "1489422448332197888", "withCommunity": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + +### Return type + +[**CommunityAboutTimelineResponse**](CommunityAboutTimelineResponse.md) + +### Authorization + +[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_community_media_timeline** +> CommunityMediaTimelineResponse get_community_media_timeline(path_query_id, variables, features) + +get media list of community + +### Example + +* Api Key Authentication (Accept): +* Api Key Authentication (ClientLanguage): +* Api Key Authentication (Priority): +* Api Key Authentication (Referer): +* Api Key Authentication (SecFetchDest): +* Api Key Authentication (SecChUaPlatform): +* Api Key Authentication (SecFetchMode): +* Api Key Authentication (CsrfToken): +* Api Key Authentication (ClientUuid): +* Bearer Authentication (BearerAuth): +* Api Key Authentication (GuestToken): +* Api Key Authentication (SecChUa): +* Api Key Authentication (CookieGt0): +* Api Key Authentication (ClientTransactionId): +* Api Key Authentication (ActiveUser): +* Api Key Authentication (CookieCt0): +* Api Key Authentication (UserAgent): +* Api Key Authentication (AcceptLanguage): +* Api Key Authentication (SecFetchSite): +* Api Key Authentication (AuthType): +* Api Key Authentication (CookieAuthToken): +* Api Key Authentication (SecChUaMobile): +* Api Key Authentication (AcceptEncoding): + +```python +import twitter_openapi_python_generated +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse +from twitter_openapi_python_generated.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://x.com/i/api +# See configuration.py for a list of all supported configuration parameters. +configuration = twitter_openapi_python_generated.Configuration( + host = "https://x.com/i/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Accept +configuration.api_key['Accept'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Accept'] = 'Bearer' + +# Configure API key authorization: ClientLanguage +configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' + +# Configure API key authorization: Priority +configuration.api_key['Priority'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Priority'] = 'Bearer' + +# Configure API key authorization: Referer +configuration.api_key['Referer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Referer'] = 'Bearer' + +# Configure API key authorization: SecFetchDest +configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' + +# Configure API key authorization: SecChUaPlatform +configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' + +# Configure API key authorization: SecFetchMode +configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' + +# Configure API key authorization: CsrfToken +configuration.api_key['CsrfToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CsrfToken'] = 'Bearer' + +# Configure API key authorization: ClientUuid +configuration.api_key['ClientUuid'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientUuid'] = 'Bearer' + +# Configure Bearer authorization: BearerAuth +configuration = twitter_openapi_python_generated.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: GuestToken +configuration.api_key['GuestToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['GuestToken'] = 'Bearer' + +# Configure API key authorization: SecChUa +configuration.api_key['SecChUa'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUa'] = 'Bearer' + +# Configure API key authorization: CookieGt0 +configuration.api_key['CookieGt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieGt0'] = 'Bearer' + +# Configure API key authorization: ClientTransactionId +configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' + +# Configure API key authorization: ActiveUser +configuration.api_key['ActiveUser'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ActiveUser'] = 'Bearer' + +# Configure API key authorization: CookieCt0 +configuration.api_key['CookieCt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieCt0'] = 'Bearer' + +# Configure API key authorization: UserAgent +configuration.api_key['UserAgent'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['UserAgent'] = 'Bearer' + +# Configure API key authorization: AcceptLanguage +configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' + +# Configure API key authorization: SecFetchSite +configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' + +# Configure API key authorization: AuthType +configuration.api_key['AuthType'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AuthType'] = 'Bearer' + +# Configure API key authorization: CookieAuthToken +configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' + +# Configure API key authorization: SecChUaMobile +configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' + +# Configure API key authorization: AcceptEncoding +configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' + +# Enter a context with an instance of the API client +with twitter_openapi_python_generated.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = twitter_openapi_python_generated.TweetApi(api_client) + path_query_id = 'eJqXEMJZ0w89TEGgPwEatw' # str | (default to 'eJqXEMJZ0w89TEGgPwEatw') + variables = '{"communityId": "1489422448332197888", "count": 20, "withCommunity": true}' # str | (default to '{"communityId": "1489422448332197888", "count": 20, "withCommunity": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + + try: + api_response = api_instance.get_community_media_timeline(path_query_id, variables, features) + print("The response of TweetApi->get_community_media_timeline:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TweetApi->get_community_media_timeline: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path_query_id** | **str**| | [default to 'eJqXEMJZ0w89TEGgPwEatw'] + **variables** | **str**| | [default to '{"communityId": "1489422448332197888", "count": 20, "withCommunity": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + +### Return type + +[**CommunityMediaTimelineResponse**](CommunityMediaTimelineResponse.md) + +### Authorization + +[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_community_tweets_timeline** +> CommunityTweetsTimelineResponse get_community_tweets_timeline(path_query_id, variables, features) + +get tweet list of community. rankingMode:[Recency, Relevance] + +### Example + +* Api Key Authentication (Accept): +* Api Key Authentication (ClientLanguage): +* Api Key Authentication (Priority): +* Api Key Authentication (Referer): +* Api Key Authentication (SecFetchDest): +* Api Key Authentication (SecChUaPlatform): +* Api Key Authentication (SecFetchMode): +* Api Key Authentication (CsrfToken): +* Api Key Authentication (ClientUuid): +* Bearer Authentication (BearerAuth): +* Api Key Authentication (GuestToken): +* Api Key Authentication (SecChUa): +* Api Key Authentication (CookieGt0): +* Api Key Authentication (ClientTransactionId): +* Api Key Authentication (ActiveUser): +* Api Key Authentication (CookieCt0): +* Api Key Authentication (UserAgent): +* Api Key Authentication (AcceptLanguage): +* Api Key Authentication (SecFetchSite): +* Api Key Authentication (AuthType): +* Api Key Authentication (CookieAuthToken): +* Api Key Authentication (SecChUaMobile): +* Api Key Authentication (AcceptEncoding): + +```python +import twitter_openapi_python_generated +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse +from twitter_openapi_python_generated.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://x.com/i/api +# See configuration.py for a list of all supported configuration parameters. +configuration = twitter_openapi_python_generated.Configuration( + host = "https://x.com/i/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Accept +configuration.api_key['Accept'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Accept'] = 'Bearer' + +# Configure API key authorization: ClientLanguage +configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' + +# Configure API key authorization: Priority +configuration.api_key['Priority'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Priority'] = 'Bearer' + +# Configure API key authorization: Referer +configuration.api_key['Referer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Referer'] = 'Bearer' + +# Configure API key authorization: SecFetchDest +configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' + +# Configure API key authorization: SecChUaPlatform +configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' + +# Configure API key authorization: SecFetchMode +configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' + +# Configure API key authorization: CsrfToken +configuration.api_key['CsrfToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CsrfToken'] = 'Bearer' + +# Configure API key authorization: ClientUuid +configuration.api_key['ClientUuid'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientUuid'] = 'Bearer' + +# Configure Bearer authorization: BearerAuth +configuration = twitter_openapi_python_generated.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: GuestToken +configuration.api_key['GuestToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['GuestToken'] = 'Bearer' + +# Configure API key authorization: SecChUa +configuration.api_key['SecChUa'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUa'] = 'Bearer' + +# Configure API key authorization: CookieGt0 +configuration.api_key['CookieGt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieGt0'] = 'Bearer' + +# Configure API key authorization: ClientTransactionId +configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' + +# Configure API key authorization: ActiveUser +configuration.api_key['ActiveUser'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ActiveUser'] = 'Bearer' + +# Configure API key authorization: CookieCt0 +configuration.api_key['CookieCt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieCt0'] = 'Bearer' + +# Configure API key authorization: UserAgent +configuration.api_key['UserAgent'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['UserAgent'] = 'Bearer' + +# Configure API key authorization: AcceptLanguage +configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' + +# Configure API key authorization: SecFetchSite +configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' + +# Configure API key authorization: AuthType +configuration.api_key['AuthType'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AuthType'] = 'Bearer' + +# Configure API key authorization: CookieAuthToken +configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' + +# Configure API key authorization: SecChUaMobile +configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' + +# Configure API key authorization: AcceptEncoding +configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' + +# Enter a context with an instance of the API client +with twitter_openapi_python_generated.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = twitter_openapi_python_generated.TweetApi(api_client) + path_query_id = 'rp4YNcEs-BXdkm1DA4PMhw' # str | (default to 'rp4YNcEs-BXdkm1DA4PMhw') + variables = '{"communityId": "1489422448332197888", "count": 20, "displayLocation": "Community", "rankingMode": "Relevance", "withCommunity": true}' # str | (default to '{"communityId": "1489422448332197888", "count": 20, "displayLocation": "Community", "rankingMode": "Relevance", "withCommunity": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + + try: + api_response = api_instance.get_community_tweets_timeline(path_query_id, variables, features) + print("The response of TweetApi->get_community_tweets_timeline:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TweetApi->get_community_tweets_timeline: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path_query_id** | **str**| | [default to 'rp4YNcEs-BXdkm1DA4PMhw'] + **variables** | **str**| | [default to '{"communityId": "1489422448332197888", "count": 20, "displayLocation": "Community", "rankingMode": "Relevance", "withCommunity": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + +### Return type + +[**CommunityTweetsTimelineResponse**](CommunityTweetsTimelineResponse.md) + +### Authorization + +[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_home_latest_timeline** > TimelineResponse get_home_latest_timeline(path_query_id, variables, features) @@ -439,9 +1142,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'zpTeOZL0zWoexBZqhdgFyg' # str | (default to 'zpTeOZL0zWoexBZqhdgFyg') + path_query_id = 'BKB7oi212Fi7kQtCBGE4zA' # str | (default to 'BKB7oi212Fi7kQtCBGE4zA') variables = '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"]}' # str | (default to '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"]}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_home_latest_timeline(path_query_id, variables, features) @@ -458,9 +1161,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'zpTeOZL0zWoexBZqhdgFyg'] + **path_query_id** | **str**| | [default to 'BKB7oi212Fi7kQtCBGE4zA'] **variables** | **str**| | [default to '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"]}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -672,9 +1375,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = '_Tz2dT1if3L4eegYOyCtsA' # str | (default to '_Tz2dT1if3L4eegYOyCtsA') + path_query_id = 'c-CzHF1LboFilMpsx4ZCrQ' # str | (default to 'c-CzHF1LboFilMpsx4ZCrQ') variables = '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"], "withCommunity": true}' # str | (default to '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"], "withCommunity": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_home_timeline(path_query_id, variables, features) @@ -691,9 +1394,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to '_Tz2dT1if3L4eegYOyCtsA'] + **path_query_id** | **str**| | [default to 'c-CzHF1LboFilMpsx4ZCrQ'] **variables** | **str**| | [default to '{"count": 20, "includePromotedContent": true, "latestControlAvailable": true, "requestContext": "launch", "seenTweetIds": ["1349129669258448897"], "withCommunity": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -905,9 +1608,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'Jb0jbeTT4W5Bcuo7IpFa4Q' # str | (default to 'Jb0jbeTT4W5Bcuo7IpFa4Q') - variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + path_query_id = 'lIDpu_NWL7_VhimGGt0o6A' # str | (default to 'lIDpu_NWL7_VhimGGt0o6A') + variables = '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}' # str | (default to '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -925,9 +1628,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'Jb0jbeTT4W5Bcuo7IpFa4Q'] - **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **path_query_id** | **str**| | [default to 'lIDpu_NWL7_VhimGGt0o6A'] + **variables** | **str**| | [default to '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -1140,9 +1843,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'H_dAKg97dSn3FOMfrNS8nw' # str | (default to 'H_dAKg97dSn3FOMfrNS8nw') + path_query_id = 'RlZzktZY_9wJynoepm8ZsA' # str | (default to 'RlZzktZY_9wJynoepm8ZsA') variables = '{"listId": "1539453138322673664", "count": 20}' # str | (default to '{"listId": "1539453138322673664", "count": 20}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_list_latest_tweets_timeline(path_query_id, variables, features) @@ -1159,9 +1862,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'H_dAKg97dSn3FOMfrNS8nw'] + **path_query_id** | **str**| | [default to 'RlZzktZY_9wJynoepm8ZsA'] **variables** | **str**| | [default to '{"listId": "1539453138322673664", "count": 20}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -1184,6 +1887,239 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_notifications_timeline** +> NotificationsTimelineResponse get_notifications_timeline(path_query_id, variables, features) + +get notification list. timeline_type:[All, Verified, Mentions] + +### Example + +* Api Key Authentication (Accept): +* Api Key Authentication (ClientLanguage): +* Api Key Authentication (Priority): +* Api Key Authentication (Referer): +* Api Key Authentication (SecFetchDest): +* Api Key Authentication (SecChUaPlatform): +* Api Key Authentication (SecFetchMode): +* Api Key Authentication (CsrfToken): +* Api Key Authentication (ClientUuid): +* Bearer Authentication (BearerAuth): +* Api Key Authentication (GuestToken): +* Api Key Authentication (SecChUa): +* Api Key Authentication (CookieGt0): +* Api Key Authentication (ClientTransactionId): +* Api Key Authentication (ActiveUser): +* Api Key Authentication (CookieCt0): +* Api Key Authentication (UserAgent): +* Api Key Authentication (AcceptLanguage): +* Api Key Authentication (SecFetchSite): +* Api Key Authentication (AuthType): +* Api Key Authentication (CookieAuthToken): +* Api Key Authentication (SecChUaMobile): +* Api Key Authentication (AcceptEncoding): + +```python +import twitter_openapi_python_generated +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse +from twitter_openapi_python_generated.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://x.com/i/api +# See configuration.py for a list of all supported configuration parameters. +configuration = twitter_openapi_python_generated.Configuration( + host = "https://x.com/i/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Accept +configuration.api_key['Accept'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Accept'] = 'Bearer' + +# Configure API key authorization: ClientLanguage +configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' + +# Configure API key authorization: Priority +configuration.api_key['Priority'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Priority'] = 'Bearer' + +# Configure API key authorization: Referer +configuration.api_key['Referer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Referer'] = 'Bearer' + +# Configure API key authorization: SecFetchDest +configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' + +# Configure API key authorization: SecChUaPlatform +configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' + +# Configure API key authorization: SecFetchMode +configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' + +# Configure API key authorization: CsrfToken +configuration.api_key['CsrfToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CsrfToken'] = 'Bearer' + +# Configure API key authorization: ClientUuid +configuration.api_key['ClientUuid'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientUuid'] = 'Bearer' + +# Configure Bearer authorization: BearerAuth +configuration = twitter_openapi_python_generated.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: GuestToken +configuration.api_key['GuestToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['GuestToken'] = 'Bearer' + +# Configure API key authorization: SecChUa +configuration.api_key['SecChUa'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUa'] = 'Bearer' + +# Configure API key authorization: CookieGt0 +configuration.api_key['CookieGt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieGt0'] = 'Bearer' + +# Configure API key authorization: ClientTransactionId +configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' + +# Configure API key authorization: ActiveUser +configuration.api_key['ActiveUser'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ActiveUser'] = 'Bearer' + +# Configure API key authorization: CookieCt0 +configuration.api_key['CookieCt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieCt0'] = 'Bearer' + +# Configure API key authorization: UserAgent +configuration.api_key['UserAgent'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['UserAgent'] = 'Bearer' + +# Configure API key authorization: AcceptLanguage +configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' + +# Configure API key authorization: SecFetchSite +configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' + +# Configure API key authorization: AuthType +configuration.api_key['AuthType'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AuthType'] = 'Bearer' + +# Configure API key authorization: CookieAuthToken +configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' + +# Configure API key authorization: SecChUaMobile +configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' + +# Configure API key authorization: AcceptEncoding +configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' + +# Enter a context with an instance of the API client +with twitter_openapi_python_generated.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = twitter_openapi_python_generated.TweetApi(api_client) + path_query_id = 'GquVPn-SKYxKLgLsRPpJ6g' # str | (default to 'GquVPn-SKYxKLgLsRPpJ6g') + variables = '{"timeline_type": "All", "count": 20}' # str | (default to '{"timeline_type": "All", "count": 20}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + + try: + api_response = api_instance.get_notifications_timeline(path_query_id, variables, features) + print("The response of TweetApi->get_notifications_timeline:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TweetApi->get_notifications_timeline: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path_query_id** | **str**| | [default to 'GquVPn-SKYxKLgLsRPpJ6g'] + **variables** | **str**| | [default to '{"timeline_type": "All", "count": 20}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + +### Return type + +[**NotificationsTimelineResponse**](NotificationsTimelineResponse.md) + +### Authorization + +[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_search_timeline** > SearchTimelineResponse get_search_timeline(path_query_id, variables, features) @@ -1373,9 +2309,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'U3QTLwGF8sZCHDuWIMSAmg' # str | (default to 'U3QTLwGF8sZCHDuWIMSAmg') + path_query_id = 'VhUd6vHVmLBcw0uX-6jMLA' # str | (default to 'VhUd6vHVmLBcw0uX-6jMLA') variables = '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query", "product": "Top"}' # str | (default to '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query", "product": "Top"}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_search_timeline(path_query_id, variables, features) @@ -1392,9 +2328,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'U3QTLwGF8sZCHDuWIMSAmg'] + **path_query_id** | **str**| | [default to 'VhUd6vHVmLBcw0uX-6jMLA'] **variables** | **str**| | [default to '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query", "product": "Top"}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -1606,9 +2542,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'Ez6kRPyXbqNlhBwcNMpU-Q' # str | (default to 'Ez6kRPyXbqNlhBwcNMpU-Q') + path_query_id = 'xd_EMdYvB9hfZsZ6Idri0w' # str | (default to 'xd_EMdYvB9hfZsZ6Idri0w') variables = '{"focalTweetId": "1349129669258448897", "referrer": "home", "with_rux_injections": false, "rankingMode": "Relevance", "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields": true, "withBirdwatchNotes": true, "withVoice": true}' # str | (default to '{"focalTweetId": "1349129669258448897", "referrer": "home", "with_rux_injections": false, "rankingMode": "Relevance", "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields": true, "withBirdwatchNotes": true, "withVoice": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}' # str | (default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}') try: @@ -1626,9 +2562,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'Ez6kRPyXbqNlhBwcNMpU-Q'] + **path_query_id** | **str**| | [default to 'xd_EMdYvB9hfZsZ6Idri0w'] **variables** | **str**| | [default to '{"focalTweetId": "1349129669258448897", "referrer": "home", "with_rux_injections": false, "rankingMode": "Relevance", "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields": true, "withBirdwatchNotes": true, "withVoice": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}'] ### Return type @@ -1841,9 +2777,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'Gr44938uGq9Wj2iA9R8N5g' # str | (default to 'Gr44938uGq9Wj2iA9R8N5g') + path_query_id = '70Yf8aSyhGOXaKRLJdVA2A' # str | (default to '70Yf8aSyhGOXaKRLJdVA2A') variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withVoice": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withVoice": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": false, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": false, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -1861,9 +2797,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'Gr44938uGq9Wj2iA9R8N5g'] + **path_query_id** | **str**| | [default to '70Yf8aSyhGOXaKRLJdVA2A'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withVoice": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": false, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2076,9 +3012,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'ophTtKkfXcUKnXlxh9fU5w' # str | (default to 'ophTtKkfXcUKnXlxh9fU5w') - variables = '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + path_query_id = '1H9ibIdchWO0_vz3wJLDTA' # str | (default to '1H9ibIdchWO0_vz3wJLDTA') + variables = '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2096,9 +3032,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'ophTtKkfXcUKnXlxh9fU5w'] - **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **path_query_id** | **str**| | [default to '1H9ibIdchWO0_vz3wJLDTA'] + **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2311,9 +3247,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'Y9WM4Id6UcGFE8Z-hbnixw' # str | (default to 'Y9WM4Id6UcGFE8Z-hbnixw') - variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + path_query_id = 'q6xj5bs0hapm9309hexA_g' # str | (default to 'q6xj5bs0hapm9309hexA_g') + variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2331,9 +3267,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'Y9WM4Id6UcGFE8Z-hbnixw'] - **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **path_query_id** | **str**| | [default to 'q6xj5bs0hapm9309hexA_g'] + **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2546,9 +3482,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.TweetApi(api_client) - path_query_id = 'pZXwh96YGRqmBbbxu7Vk2Q' # str | (default to 'pZXwh96YGRqmBbbxu7Vk2Q') - variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + path_query_id = '6hvhmQQ9zPIR8RZWHFAm4w' # str | (default to '6hvhmQQ9zPIR8RZWHFAm4w') + variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2566,9 +3502,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'pZXwh96YGRqmBbbxu7Vk2Q'] - **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **path_query_id** | **str**| | [default to '6hvhmQQ9zPIR8RZWHFAm4w'] + **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/TweetFavoritersResponseData.md b/twitter_openapi_python_generated/docs/TweetFavoritersResponseData.md index 6eb1810..732b2da 100644 --- a/twitter_openapi_python_generated/docs/TweetFavoritersResponseData.md +++ b/twitter_openapi_python_generated/docs/TweetFavoritersResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**favoriters_timeline** | [**TimelineV2**](TimelineV2.md) | | [optional] +**favoriters_timeline** | [**TimelineResult**](TimelineResult.md) | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/TweetRetweetersResponseData.md b/twitter_openapi_python_generated/docs/TweetRetweetersResponseData.md index 5883ec0..83d0ddb 100644 --- a/twitter_openapi_python_generated/docs/TweetRetweetersResponseData.md +++ b/twitter_openapi_python_generated/docs/TweetRetweetersResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retweeters_timeline** | [**TimelineV2**](TimelineV2.md) | | [optional] +**retweeters_timeline** | [**TimelineResult**](TimelineResult.md) | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/TypeName.md b/twitter_openapi_python_generated/docs/TypeName.md index db833ff..9798f21 100644 --- a/twitter_openapi_python_generated/docs/TypeName.md +++ b/twitter_openapi_python_generated/docs/TypeName.md @@ -29,6 +29,10 @@ * `TIMELINETREND` (value: `'TimelineTrend'`) +* `TIMELINENOTIFICATION` (value: `'TimelineNotification'`) + +* `TIMELINENOTIFICATIONAGGREGATEUSERACTIONS` (value: `'TimelineNotificationAggregateUserActions'`) + * `TWEETUNAVAILABLE` (value: `'TweetUnavailable'`) * `TWEETPREVIEWDISPLAY` (value: `'TweetPreviewDisplay'`) diff --git a/twitter_openapi_python_generated/docs/UserApi.md b/twitter_openapi_python_generated/docs/UserApi.md index 9a13335..b6bd4df 100644 --- a/twitter_openapi_python_generated/docs/UserApi.md +++ b/twitter_openapi_python_generated/docs/UserApi.md @@ -430,10 +430,10 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserApi(api_client) - path_query_id = '32pL5BWe9WKeSK1MoPvFQQ' # str | (default to '32pL5BWe9WKeSK1MoPvFQQ') + path_query_id = '1VOOyvKkiI3FMmkeDNxM9A' # str | (default to '1VOOyvKkiI3FMmkeDNxM9A') variables = '{"screen_name": "elonmusk"}' # str | (default to '{"screen_name": "elonmusk"}') - features = '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}') - field_toggles = '{"withAuxiliaryUserLabels": false}' # str | (default to '{"withAuxiliaryUserLabels": false}') + features = '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}') + field_toggles = '{"withAuxiliaryUserLabels": true}' # str | (default to '{"withAuxiliaryUserLabels": true}') try: api_response = api_instance.get_user_by_screen_name(path_query_id, variables, features, field_toggles) @@ -450,10 +450,10 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to '32pL5BWe9WKeSK1MoPvFQQ'] + **path_query_id** | **str**| | [default to '1VOOyvKkiI3FMmkeDNxM9A'] **variables** | **str**| | [default to '{"screen_name": "elonmusk"}'] - **features** | **str**| | [default to '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}'] - **field_toggles** | **str**| | [default to '{"withAuxiliaryUserLabels": false}'] + **features** | **str**| | [default to '{"hidden_profile_subscriptions_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "subscriptions_verification_info_is_identity_verified_enabled": true, "subscriptions_verification_info_verified_since_enabled": true, "highlights_tweets_tab_ui_enabled": true, "responsive_web_twitter_article_notes_tab_enabled": true, "subscriptions_feature_can_gift_premium": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}'] + **field_toggles** | **str**| | [default to '{"withAuxiliaryUserLabels": true}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UserListApi.md b/twitter_openapi_python_generated/docs/UserListApi.md index ef3d64b..0b0f353 100644 --- a/twitter_openapi_python_generated/docs/UserListApi.md +++ b/twitter_openapi_python_generated/docs/UserListApi.md @@ -200,9 +200,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserListApi(api_client) - path_query_id = 'aLZ5wrqDYuDm9c_xNl667w' # str | (default to 'aLZ5wrqDYuDm9c_xNl667w') + path_query_id = 'G27_CXbgIP3G9Fod_2RMUA' # str | (default to 'G27_CXbgIP3G9Fod_2RMUA') variables = '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}' # str | (default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_favoriters(path_query_id, variables, features) @@ -219,9 +219,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'aLZ5wrqDYuDm9c_xNl667w'] + **path_query_id** | **str**| | [default to 'G27_CXbgIP3G9Fod_2RMUA'] **variables** | **str**| | [default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -433,9 +433,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserListApi(api_client) - path_query_id = 'OGScL-RC4DFMsRGOCjPR6g' # str | (default to 'OGScL-RC4DFMsRGOCjPR6g') + path_query_id = 'IOh4aS6UdGWGJUYTqliQ7Q' # str | (default to 'IOh4aS6UdGWGJUYTqliQ7Q') variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_followers(path_query_id, variables, features) @@ -452,9 +452,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'OGScL-RC4DFMsRGOCjPR6g'] + **path_query_id** | **str**| | [default to 'IOh4aS6UdGWGJUYTqliQ7Q'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -666,9 +666,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserListApi(api_client) - path_query_id = 'FP4v9Lj24ZDF1KgV9aM8LA' # str | (default to 'FP4v9Lj24ZDF1KgV9aM8LA') + path_query_id = 'pNK460VRQKGuLfDcesjNEQ' # str | (default to 'pNK460VRQKGuLfDcesjNEQ') variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_followers_you_know(path_query_id, variables, features) @@ -685,9 +685,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'FP4v9Lj24ZDF1KgV9aM8LA'] + **path_query_id** | **str**| | [default to 'pNK460VRQKGuLfDcesjNEQ'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -899,9 +899,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserListApi(api_client) - path_query_id = 'o5eNLkJb03ayTQa97Cpp7w' # str | (default to 'o5eNLkJb03ayTQa97Cpp7w') + path_query_id = 'zx6e-TLzRkeDO_a7p4b3JQ' # str | (default to 'zx6e-TLzRkeDO_a7p4b3JQ') variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_following(path_query_id, variables, features) @@ -918,9 +918,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'o5eNLkJb03ayTQa97Cpp7w'] + **path_query_id** | **str**| | [default to 'zx6e-TLzRkeDO_a7p4b3JQ'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -1132,9 +1132,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UserListApi(api_client) - path_query_id = 'niCJ2QyTuAgZWv01E7mqJQ' # str | (default to 'niCJ2QyTuAgZWv01E7mqJQ') + path_query_id = 'Mbs-2NiTvy32oHDerWtVhg' # str | (default to 'Mbs-2NiTvy32oHDerWtVhg') variables = '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}' # str | (default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_retweeters(path_query_id, variables, features) @@ -1151,9 +1151,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'niCJ2QyTuAgZWv01E7mqJQ'] + **path_query_id** | **str**| | [default to 'Mbs-2NiTvy32oHDerWtVhg'] **variables** | **str**| | [default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UserTweetsResult.md b/twitter_openapi_python_generated/docs/UserTweetsResult.md deleted file mode 100644 index 416062c..0000000 --- a/twitter_openapi_python_generated/docs/UserTweetsResult.md +++ /dev/null @@ -1,30 +0,0 @@ -# UserTweetsResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**typename** | [**TypeName**](TypeName.md) | | -**timeline_v2** | [**TimelineV2**](TimelineV2.md) | | - -## Example - -```python -from twitter_openapi_python_generated.models.user_tweets_result import UserTweetsResult - -# TODO update the JSON string below -json = "{}" -# create an instance of UserTweetsResult from a JSON string -user_tweets_result_instance = UserTweetsResult.from_json(json) -# print the JSON string representation of the object -print(UserTweetsResult.to_json()) - -# convert the object into a dict -user_tweets_result_dict = user_tweets_result_instance.to_dict() -# create an instance of UserTweetsResult from a dict -user_tweets_result_from_dict = UserTweetsResult.from_dict(user_tweets_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/twitter_openapi_python_generated/docs/UserTweetsResultV1.md b/twitter_openapi_python_generated/docs/UserTweetsResultV1.md new file mode 100644 index 0000000..a1cdc98 --- /dev/null +++ b/twitter_openapi_python_generated/docs/UserTweetsResultV1.md @@ -0,0 +1,30 @@ +# UserTweetsResultV1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**timeline** | [**TimelineResult**](TimelineResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.user_tweets_result_v1 import UserTweetsResultV1 + +# TODO update the JSON string below +json = "{}" +# create an instance of UserTweetsResultV1 from a JSON string +user_tweets_result_v1_instance = UserTweetsResultV1.from_json(json) +# print the JSON string representation of the object +print(UserTweetsResultV1.to_json()) + +# convert the object into a dict +user_tweets_result_v1_dict = user_tweets_result_v1_instance.to_dict() +# create an instance of UserTweetsResultV1 from a dict +user_tweets_result_v1_from_dict = UserTweetsResultV1.from_dict(user_tweets_result_v1_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/UserTweetsResultV2.md b/twitter_openapi_python_generated/docs/UserTweetsResultV2.md new file mode 100644 index 0000000..ae2e3b0 --- /dev/null +++ b/twitter_openapi_python_generated/docs/UserTweetsResultV2.md @@ -0,0 +1,30 @@ +# UserTweetsResultV2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**timeline_v2** | [**TimelineResult**](TimelineResult.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.user_tweets_result_v2 import UserTweetsResultV2 + +# TODO update the JSON string below +json = "{}" +# create an instance of UserTweetsResultV2 from a JSON string +user_tweets_result_v2_instance = UserTweetsResultV2.from_json(json) +# print the JSON string representation of the object +print(UserTweetsResultV2.to_json()) + +# convert the object into a dict +user_tweets_result_v2_dict = user_tweets_result_v2_instance.to_dict() +# create an instance of UserTweetsResultV2 from a dict +user_tweets_result_v2_from_dict = UserTweetsResultV2.from_dict(user_tweets_result_v2_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twitter_openapi_python_generated/docs/UserTweetsUser.md b/twitter_openapi_python_generated/docs/UserTweetsUser.md index 54edc22..13ad4da 100644 --- a/twitter_openapi_python_generated/docs/UserTweetsUser.md +++ b/twitter_openapi_python_generated/docs/UserTweetsUser.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**result** | [**UserTweetsResult**](UserTweetsResult.md) | | +**result** | [**UserTweetsResultV1**](UserTweetsResultV1.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/UsersApi.md b/twitter_openapi_python_generated/docs/UsersApi.md index 1209775..47cd11e 100644 --- a/twitter_openapi_python_generated/docs/UsersApi.md +++ b/twitter_openapi_python_generated/docs/UsersApi.md @@ -196,9 +196,9 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] with twitter_openapi_python_generated.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = twitter_openapi_python_generated.UsersApi(api_client) - path_query_id = 'PyRggX3LQweP9nSF6PHliA' # str | (default to 'PyRggX3LQweP9nSF6PHliA') + path_query_id = 'XArUHrueMW0KQdZUdqidrA' # str | (default to 'XArUHrueMW0KQdZUdqidrA') variables = '{"userIds": ["44196397"]}' # str | (default to '{"userIds": ["44196397"]}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}') try: api_response = api_instance.get_users_by_rest_ids(path_query_id, variables, features) @@ -215,9 +215,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'PyRggX3LQweP9nSF6PHliA'] + **path_query_id** | **str**| | [default to 'XArUHrueMW0KQdZUdqidrA'] **variables** | **str**| | [default to '{"userIds": ["44196397"]}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}'] ### Return type diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml index 7c4a54d..f8e439a 100644 --- a/twitter_openapi_python_generated/pyproject.toml +++ b/twitter_openapi_python_generated/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "twitter_openapi_python_generated" -version = "0.0.31" +version = "0.0.32" description = "Twitter OpenAPI" authors = ["OpenAPI Generator Community "] license = "custom license or AGPL-3.0-or-later" diff --git a/twitter_openapi_python_generated/setup.py b/twitter_openapi_python_generated/setup.py index db8d1b9..51a49fa 100644 --- a/twitter_openapi_python_generated/setup.py +++ b/twitter_openapi_python_generated/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "twitter_openapi_python_generated" -VERSION = "0.0.31" +VERSION = "0.0.32" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/twitter_openapi_python_generated/test/test_about_community_result.py b/twitter_openapi_python_generated/test/test_about_community_result.py new file mode 100644 index 0000000..c2a426f --- /dev/null +++ b/twitter_openapi_python_generated/test/test_about_community_result.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.about_community_result import AboutCommunityResult + +class TestAboutCommunityResult(unittest.TestCase): + """AboutCommunityResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AboutCommunityResult: + """Test AboutCommunityResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AboutCommunityResult` + """ + model = AboutCommunityResult() + if include_optional: + return AboutCommunityResult( + typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ) + ) + else: + return AboutCommunityResult( + typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + ) + """ + + def testAboutCommunityResult(self): + """Test AboutCommunityResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_about_community_results.py b/twitter_openapi_python_generated/test/test_about_community_results.py new file mode 100644 index 0000000..3571194 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_about_community_results.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.about_community_results import AboutCommunityResults + +class TestAboutCommunityResults(unittest.TestCase): + """AboutCommunityResults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AboutCommunityResults: + """Test AboutCommunityResults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AboutCommunityResults` + """ + model = AboutCommunityResults() + if include_optional: + return AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ) + ) + else: + return AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), + ) + """ + + def testAboutCommunityResults(self): + """Test AboutCommunityResults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_about_community_tweet_data.py b/twitter_openapi_python_generated/test/test_about_community_tweet_data.py new file mode 100644 index 0000000..73532ff --- /dev/null +++ b/twitter_openapi_python_generated/test/test_about_community_tweet_data.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.about_community_tweet_data import AboutCommunityTweetData + +class TestAboutCommunityTweetData(unittest.TestCase): + """AboutCommunityTweetData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AboutCommunityTweetData: + """Test AboutCommunityTweetData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AboutCommunityTweetData` + """ + model = AboutCommunityTweetData() + if include_optional: + return AboutCommunityTweetData( + community_results = twitter_openapi_python_generated.models.about_community_results.AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ) + ) + else: + return AboutCommunityTweetData( + community_results = twitter_openapi_python_generated.models.about_community_results.AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), + ) + """ + + def testAboutCommunityTweetData(self): + """Test AboutCommunityTweetData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_analysis_results.py b/twitter_openapi_python_generated/test/test_analysis_results.py new file mode 100644 index 0000000..452d23a --- /dev/null +++ b/twitter_openapi_python_generated/test/test_analysis_results.py @@ -0,0 +1,1003 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.analysis_results import AnalysisResults + +class TestAnalysisResults(unittest.TestCase): + """AnalysisResults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisResults: + """Test AnalysisResults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AnalysisResults` + """ + model = AnalysisResults() + if include_optional: + return AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = , + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = , + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ) + ) + else: + return AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = , + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = , + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), + ) + """ + + def testAnalysisResults(self): + """Test AnalysisResults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_birdwatch_pivot.py b/twitter_openapi_python_generated/test/test_birdwatch_pivot.py index a6e1a5d..1c81e54 100644 --- a/twitter_openapi_python_generated/test/test_birdwatch_pivot.py +++ b/twitter_openapi_python_generated/test/test_birdwatch_pivot.py @@ -70,6 +70,7 @@ def make_instance(self, include_optional) -> BirdwatchPivot: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default' ) else: diff --git a/twitter_openapi_python_generated/test/test_community_about_timeline_response.py b/twitter_openapi_python_generated/test/test_community_about_timeline_response.py new file mode 100644 index 0000000..2e728d4 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_community_about_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse + +class TestCommunityAboutTimelineResponse(unittest.TestCase): + """CommunityAboutTimelineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommunityAboutTimelineResponse: + """Test CommunityAboutTimelineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommunityAboutTimelineResponse` + """ + model = CommunityAboutTimelineResponse() + if include_optional: + return CommunityAboutTimelineResponse( + data = twitter_openapi_python_generated.models.about_community_tweet_data.AboutCommunityTweetData( + community_results = twitter_openapi_python_generated.models.about_community_results.AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + errors = [ + twitter_openapi_python_generated.models.error_response.ErrorResponse( + code = 56, + extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions( + code = 56, + kind = '', + name = '', + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ), + kind = '', + locations = [ + twitter_openapi_python_generated.models.location.Location( + column = 56, + line = 56, ) + ], + message = '', + name = '', + path = [ + null + ], + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ) + ] + ) + else: + return CommunityAboutTimelineResponse( + data = twitter_openapi_python_generated.models.about_community_tweet_data.AboutCommunityTweetData( + community_results = twitter_openapi_python_generated.models.about_community_results.AboutCommunityResults( + result = twitter_openapi_python_generated.models.about_community_result.AboutCommunityResult( + __typename = 'TimelineTweet', + about_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + ) + """ + + def testCommunityAboutTimelineResponse(self): + """Test CommunityAboutTimelineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_community_media_timeline_response.py b/twitter_openapi_python_generated/test/test_community_media_timeline_response.py new file mode 100644 index 0000000..a625849 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_community_media_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse + +class TestCommunityMediaTimelineResponse(unittest.TestCase): + """CommunityMediaTimelineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommunityMediaTimelineResponse: + """Test CommunityMediaTimelineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommunityMediaTimelineResponse` + """ + model = CommunityMediaTimelineResponse() + if include_optional: + return CommunityMediaTimelineResponse( + data = twitter_openapi_python_generated.models.media_community_tweet_data.MediaCommunityTweetData( + community_results = twitter_openapi_python_generated.models.media_community_results.MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + errors = [ + twitter_openapi_python_generated.models.error_response.ErrorResponse( + code = 56, + extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions( + code = 56, + kind = '', + name = '', + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ), + kind = '', + locations = [ + twitter_openapi_python_generated.models.location.Location( + column = 56, + line = 56, ) + ], + message = '', + name = '', + path = [ + null + ], + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ) + ] + ) + else: + return CommunityMediaTimelineResponse( + data = twitter_openapi_python_generated.models.media_community_tweet_data.MediaCommunityTweetData( + community_results = twitter_openapi_python_generated.models.media_community_results.MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + ) + """ + + def testCommunityMediaTimelineResponse(self): + """Test CommunityMediaTimelineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py b/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py new file mode 100644 index 0000000..f12a9e4 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse + +class TestCommunityTweetsTimelineResponse(unittest.TestCase): + """CommunityTweetsTimelineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommunityTweetsTimelineResponse: + """Test CommunityTweetsTimelineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommunityTweetsTimelineResponse` + """ + model = CommunityTweetsTimelineResponse() + if include_optional: + return CommunityTweetsTimelineResponse( + data = twitter_openapi_python_generated.models.ranked_community_tweet_data.RankedCommunityTweetData( + community_results = twitter_openapi_python_generated.models.ranked_community_results.RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + errors = [ + twitter_openapi_python_generated.models.error_response.ErrorResponse( + code = 56, + extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions( + code = 56, + kind = '', + name = '', + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ), + kind = '', + locations = [ + twitter_openapi_python_generated.models.location.Location( + column = 56, + line = 56, ) + ], + message = '', + name = '', + path = [ + null + ], + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ) + ] + ) + else: + return CommunityTweetsTimelineResponse( + data = twitter_openapi_python_generated.models.ranked_community_tweet_data.RankedCommunityTweetData( + community_results = twitter_openapi_python_generated.models.ranked_community_results.RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), ), + ) + """ + + def testCommunityTweetsTimelineResponse(self): + """Test CommunityTweetsTimelineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_content_union.py b/twitter_openapi_python_generated/test/test_content_union.py index aa05848..0ab8617 100644 --- a/twitter_openapi_python_generated/test/test_content_union.py +++ b/twitter_openapi_python_generated/test/test_content_union.py @@ -81,10 +81,6 @@ def make_instance(self, include_optional) -> ContentUnion: else: return ContentUnion( typename = 'TimelineTweet', - client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( - component = '', - details = { }, - element = '', ), entry_type = 'TimelineTimelineItem', item_content = None, display_type = 'Vertical', diff --git a/twitter_openapi_python_generated/test/test_create_tweet.py b/twitter_openapi_python_generated/test/test_create_tweet.py index 172cc11..83c9fbf 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet.py +++ b/twitter_openapi_python_generated/test/test_create_tweet.py @@ -163,6 +163,7 @@ def make_instance(self, include_optional) -> CreateTweet: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -242,6 +243,157 @@ def make_instance(self, include_optional) -> CreateTweet: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -262,90 +414,9 @@ def make_instance(self, include_optional) -> CreateTweet: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -414,33 +485,8 @@ def make_instance(self, include_optional) -> CreateTweet: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -450,7 +496,7 @@ def make_instance(self, include_optional) -> CreateTweet: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( @@ -596,6 +642,7 @@ def make_instance(self, include_optional) -> CreateTweet: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -675,6 +722,157 @@ def make_instance(self, include_optional) -> CreateTweet: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -695,90 +893,9 @@ def make_instance(self, include_optional) -> CreateTweet: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -847,33 +964,8 @@ def make_instance(self, include_optional) -> CreateTweet: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -883,7 +975,7 @@ def make_instance(self, include_optional) -> CreateTweet: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( diff --git a/twitter_openapi_python_generated/test/test_create_tweet_response.py b/twitter_openapi_python_generated/test/test_create_tweet_response.py index 35c4e52..8d165fd 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet_response.py +++ b/twitter_openapi_python_generated/test/test_create_tweet_response.py @@ -166,6 +166,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -245,6 +246,157 @@ def make_instance(self, include_optional) -> CreateTweetResponse: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -265,90 +417,9 @@ def make_instance(self, include_optional) -> CreateTweetResponse: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -417,33 +488,8 @@ def make_instance(self, include_optional) -> CreateTweetResponse: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -453,7 +499,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( @@ -629,6 +675,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -708,6 +755,157 @@ def make_instance(self, include_optional) -> CreateTweetResponse: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -728,90 +926,9 @@ def make_instance(self, include_optional) -> CreateTweetResponse: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -880,33 +997,8 @@ def make_instance(self, include_optional) -> CreateTweetResponse: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -916,7 +1008,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( diff --git a/twitter_openapi_python_generated/test/test_create_tweet_response_data.py b/twitter_openapi_python_generated/test/test_create_tweet_response_data.py index cd81a98..d431aeb 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet_response_data.py +++ b/twitter_openapi_python_generated/test/test_create_tweet_response_data.py @@ -165,6 +165,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -244,6 +245,157 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -264,90 +416,9 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -416,33 +487,8 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -452,7 +498,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( diff --git a/twitter_openapi_python_generated/test/test_create_tweet_response_result.py b/twitter_openapi_python_generated/test/test_create_tweet_response_result.py index fc38352..9a0bcf9 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet_response_result.py +++ b/twitter_openapi_python_generated/test/test_create_tweet_response_result.py @@ -164,6 +164,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -243,6 +244,157 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -263,90 +415,9 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -415,33 +486,8 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -451,7 +497,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( @@ -598,6 +644,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -677,6 +724,157 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -697,90 +895,9 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -849,33 +966,8 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -885,7 +977,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( diff --git a/twitter_openapi_python_generated/test/test_entities.py b/twitter_openapi_python_generated/test/test_entities.py index c5f0804..210a90b 100644 --- a/twitter_openapi_python_generated/test/test_entities.py +++ b/twitter_openapi_python_generated/test/test_entities.py @@ -70,6 +70,9 @@ def make_instance(self, include_optional) -> Entities: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_extended_entities.py b/twitter_openapi_python_generated/test/test_extended_entities.py index 9052ec5..cb04bb1 100644 --- a/twitter_openapi_python_generated/test/test_extended_entities.py +++ b/twitter_openapi_python_generated/test/test_extended_entities.py @@ -69,6 +69,9 @@ def make_instance(self, include_optional) -> ExtendedEntities: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -148,6 +151,9 @@ def make_instance(self, include_optional) -> ExtendedEntities: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_grok_image_annotation.py b/twitter_openapi_python_generated/test/test_grok_image_annotation.py new file mode 100644 index 0000000..9929eb5 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_grok_image_annotation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation + +class TestGrokImageAnnotation(unittest.TestCase): + """GrokImageAnnotation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GrokImageAnnotation: + """Test GrokImageAnnotation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GrokImageAnnotation` + """ + model = GrokImageAnnotation() + if include_optional: + return GrokImageAnnotation( + prompt = '', + upsampled_prompt = '' + ) + else: + return GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', + ) + """ + + def testGrokImageAnnotation(self): + """Test GrokImageAnnotation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_grok_share_attachment.py b/twitter_openapi_python_generated/test/test_grok_share_attachment.py index c703db7..863a91a 100644 --- a/twitter_openapi_python_generated/test/test_grok_share_attachment.py +++ b/twitter_openapi_python_generated/test/test_grok_share_attachment.py @@ -38,6 +38,441 @@ def make_instance(self, include_optional) -> GrokShareAttachment: return GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -48,6 +483,441 @@ def make_instance(self, include_optional) -> GrokShareAttachment: return GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], diff --git a/twitter_openapi_python_generated/test/test_grok_share_attachment_item.py b/twitter_openapi_python_generated/test/test_grok_share_attachment_item.py index efcf8fb..ead6cbe 100644 --- a/twitter_openapi_python_generated/test/test_grok_share_attachment_item.py +++ b/twitter_openapi_python_generated/test/test_grok_share_attachment_item.py @@ -36,6 +36,441 @@ def make_instance(self, include_optional) -> GrokShareAttachmentItem: model = GrokShareAttachmentItem() if include_optional: return GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], diff --git a/twitter_openapi_python_generated/test/test_home_timeline_response_data.py b/twitter_openapi_python_generated/test/test_home_timeline_response_data.py index 3b54400..0565984 100644 --- a/twitter_openapi_python_generated/test/test_home_timeline_response_data.py +++ b/twitter_openapi_python_generated/test/test_home_timeline_response_data.py @@ -46,6 +46,13 @@ def make_instance(self, include_optional) -> HomeTimelineResponseData: ) else: return HomeTimelineResponseData( + home = twitter_openapi_python_generated.models.home_timeline_home.HomeTimelineHome( + home_timeline_urt = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ) """ diff --git a/twitter_openapi_python_generated/test/test_instruction_union.py b/twitter_openapi_python_generated/test/test_instruction_union.py index b0ecbf6..93a556b 100644 --- a/twitter_openapi_python_generated/test/test_instruction_union.py +++ b/twitter_openapi_python_generated/test/test_instruction_union.py @@ -126,7 +126,8 @@ def make_instance(self, include_optional) -> InstructionUnion: to_index = 56, ) ], text = '', ), - type = 'TimelineHalfCover', ) + type = 'TimelineHalfCover', ), + sort_index = '4' ) else: return InstructionUnion( diff --git a/twitter_openapi_python_generated/test/test_item_content_union.py b/twitter_openapi_python_generated/test/test_item_content_union.py index ab8eede..11d6d5f 100644 --- a/twitter_openapi_python_generated/test/test_item_content_union.py +++ b/twitter_openapi_python_generated/test/test_item_content_union.py @@ -106,7 +106,31 @@ def make_instance(self, include_optional) -> ItemContentUnion: key = '', value = '', ) ], - title = '', ), ) + title = '', ), ), + id = '', + notification_icon = '', + notification_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), + rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage( + rtl = True, + text = '', ), + template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate( + __typename = 'TimelineTweet', + from_users = [ + None + ], + target_objects = [ + None + ], ), + timestamp_ms = '' ) else: return ItemContentUnion( @@ -121,15 +145,7 @@ def make_instance(self, include_optional) -> ItemContentUnion: user_display_type = 'User', user_results = twitter_openapi_python_generated.models.user_results.UserResults( result = null, ), - images = [ - twitter_openapi_python_generated.models.trend_image.TrendImage( - url = '', ) - ], name = '', - thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( - original_img_height = 56, - original_img_url = '', - original_img_width = 56, ), trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( url_type = 'DeepLink', @@ -150,6 +166,30 @@ def make_instance(self, include_optional) -> ItemContentUnion: value = '', ) ], title = '', ), ), + id = '', + notification_icon = '', + notification_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), + rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage( + rtl = True, + text = '', ), + template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate( + __typename = 'TimelineTweet', + from_users = [ + None + ], + target_objects = [ + None + ], ), + timestamp_ms = '', ) """ diff --git a/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py b/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py index d2d0401..b311aea 100644 --- a/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py +++ b/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py @@ -38,7 +38,8 @@ def make_instance(self, include_optional) -> ListLatestTweetsTimelineResponse: return ListLatestTweetsTimelineResponse( data = twitter_openapi_python_generated.models.list_tweets_timeline_data.ListTweetsTimelineData( list = twitter_openapi_python_generated.models.list_tweets_timeline_list.ListTweetsTimelineList( - tweets_timeline = twitter_openapi_python_generated.models.list_tweets_timeline.ListTweetsTimeline( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -77,7 +78,8 @@ def make_instance(self, include_optional) -> ListLatestTweetsTimelineResponse: return ListLatestTweetsTimelineResponse( data = twitter_openapi_python_generated.models.list_tweets_timeline_data.ListTweetsTimelineData( list = twitter_openapi_python_generated.models.list_tweets_timeline_list.ListTweetsTimelineList( - tweets_timeline = twitter_openapi_python_generated.models.list_tweets_timeline.ListTweetsTimeline( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py b/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py index 1d5316f..bf2d12a 100644 --- a/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py +++ b/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> ListTweetsTimelineData: if include_optional: return ListTweetsTimelineData( list = twitter_openapi_python_generated.models.list_tweets_timeline_list.ListTweetsTimelineList( - tweets_timeline = twitter_openapi_python_generated.models.list_tweets_timeline.ListTweetsTimeline( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -47,6 +48,15 @@ def make_instance(self, include_optional) -> ListTweetsTimelineData: ) else: return ListTweetsTimelineData( + list = twitter_openapi_python_generated.models.list_tweets_timeline_list.ListTweetsTimelineList( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ) """ diff --git a/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py b/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py index a623d14..a74a729 100644 --- a/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py +++ b/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> ListTweetsTimelineList: model = ListTweetsTimelineList() if include_optional: return ListTweetsTimelineList( - tweets_timeline = twitter_openapi_python_generated.models.list_tweets_timeline.ListTweetsTimeline( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -46,7 +47,8 @@ def make_instance(self, include_optional) -> ListTweetsTimelineList: ) else: return ListTweetsTimelineList( - tweets_timeline = twitter_openapi_python_generated.models.list_tweets_timeline.ListTweetsTimeline( + tweets_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_media.py b/twitter_openapi_python_generated/test/test_media.py index 7fb6dc7..13ec5d2 100644 --- a/twitter_openapi_python_generated/test/test_media.py +++ b/twitter_openapi_python_generated/test/test_media.py @@ -65,6 +65,9 @@ def make_instance(self, include_optional) -> Media: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_media_community_result.py b/twitter_openapi_python_generated/test/test_media_community_result.py new file mode 100644 index 0000000..c7a25f6 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_media_community_result.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.media_community_result import MediaCommunityResult + +class TestMediaCommunityResult(unittest.TestCase): + """MediaCommunityResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MediaCommunityResult: + """Test MediaCommunityResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MediaCommunityResult` + """ + model = MediaCommunityResult() + if include_optional: + return MediaCommunityResult( + typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ) + ) + else: + return MediaCommunityResult( + typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + ) + """ + + def testMediaCommunityResult(self): + """Test MediaCommunityResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_media_community_results.py b/twitter_openapi_python_generated/test/test_media_community_results.py new file mode 100644 index 0000000..c95d989 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_media_community_results.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.media_community_results import MediaCommunityResults + +class TestMediaCommunityResults(unittest.TestCase): + """MediaCommunityResults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MediaCommunityResults: + """Test MediaCommunityResults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MediaCommunityResults` + """ + model = MediaCommunityResults() + if include_optional: + return MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ) + ) + else: + return MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), + ) + """ + + def testMediaCommunityResults(self): + """Test MediaCommunityResults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_media_community_tweet_data.py b/twitter_openapi_python_generated/test/test_media_community_tweet_data.py new file mode 100644 index 0000000..a51c940 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_media_community_tweet_data.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.media_community_tweet_data import MediaCommunityTweetData + +class TestMediaCommunityTweetData(unittest.TestCase): + """MediaCommunityTweetData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MediaCommunityTweetData: + """Test MediaCommunityTweetData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MediaCommunityTweetData` + """ + model = MediaCommunityTweetData() + if include_optional: + return MediaCommunityTweetData( + community_results = twitter_openapi_python_generated.models.media_community_results.MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ) + ) + else: + return MediaCommunityTweetData( + community_results = twitter_openapi_python_generated.models.media_community_results.MediaCommunityResults( + result = twitter_openapi_python_generated.models.media_community_result.MediaCommunityResult( + __typename = 'TimelineTweet', + community_media_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), + ) + """ + + def testMediaCommunityTweetData(self): + """Test MediaCommunityTweetData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_media_extended.py b/twitter_openapi_python_generated/test/test_media_extended.py index 31eff16..1aa7e60 100644 --- a/twitter_openapi_python_generated/test/test_media_extended.py +++ b/twitter_openapi_python_generated/test/test_media_extended.py @@ -67,6 +67,9 @@ def make_instance(self, include_optional) -> MediaExtended: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_media_result.py b/twitter_openapi_python_generated/test/test_media_result.py index ec7cb31..2e57405 100644 --- a/twitter_openapi_python_generated/test/test_media_result.py +++ b/twitter_openapi_python_generated/test/test_media_result.py @@ -36,6 +36,9 @@ def make_instance(self, include_optional) -> MediaResult: model = MediaResult() if include_optional: return MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '' ) else: diff --git a/twitter_openapi_python_generated/test/test_media_results.py b/twitter_openapi_python_generated/test/test_media_results.py index a5a8bc0..3ca5a87 100644 --- a/twitter_openapi_python_generated/test/test_media_results.py +++ b/twitter_openapi_python_generated/test/test_media_results.py @@ -37,11 +37,17 @@ def make_instance(self, include_optional) -> MediaResults: if include_optional: return MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ) ) else: return MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ) """ diff --git a/twitter_openapi_python_generated/test/test_note_tweet.py b/twitter_openapi_python_generated/test/test_note_tweet.py index 2302531..ce5aa17 100644 --- a/twitter_openapi_python_generated/test/test_note_tweet.py +++ b/twitter_openapi_python_generated/test/test_note_tweet.py @@ -73,6 +73,9 @@ def make_instance(self, include_optional) -> NoteTweet: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -194,6 +197,9 @@ def make_instance(self, include_optional) -> NoteTweet: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_note_tweet_result.py b/twitter_openapi_python_generated/test/test_note_tweet_result.py index 772ac6d..eed98af 100644 --- a/twitter_openapi_python_generated/test/test_note_tweet_result.py +++ b/twitter_openapi_python_generated/test/test_note_tweet_result.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> NoteTweetResult: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -190,6 +193,9 @@ def make_instance(self, include_optional) -> NoteTweetResult: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_note_tweet_result_data.py b/twitter_openapi_python_generated/test/test_note_tweet_result_data.py index 9ab6ddc..b383d39 100644 --- a/twitter_openapi_python_generated/test/test_note_tweet_result_data.py +++ b/twitter_openapi_python_generated/test/test_note_tweet_result_data.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> NoteTweetResultData: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -190,6 +193,9 @@ def make_instance(self, include_optional) -> NoteTweetResultData: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_notification_template.py b/twitter_openapi_python_generated/test/test_notification_template.py new file mode 100644 index 0000000..e889095 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notification_template.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notification_template import NotificationTemplate + +class TestNotificationTemplate(unittest.TestCase): + """NotificationTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationTemplate: + """Test NotificationTemplate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationTemplate` + """ + model = NotificationTemplate() + if include_optional: + return NotificationTemplate( + typename = 'TimelineTweet', + from_users = [ + None + ], + target_objects = [ + None + ] + ) + else: + return NotificationTemplate( + ) + """ + + def testNotificationTemplate(self): + """Test NotificationTemplate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_notifications_result.py b/twitter_openapi_python_generated/test/test_notifications_result.py new file mode 100644 index 0000000..1a9f1f8 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notifications_result.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notifications_result import NotificationsResult + +class TestNotificationsResult(unittest.TestCase): + """NotificationsResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationsResult: + """Test NotificationsResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationsResult` + """ + model = NotificationsResult() + if include_optional: + return NotificationsResult( + typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4' + ) + else: + return NotificationsResult( + typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', + ) + """ + + def testNotificationsResult(self): + """Test NotificationsResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_notifications_timeline_data.py b/twitter_openapi_python_generated/test/test_notifications_timeline_data.py new file mode 100644 index 0000000..9932197 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notifications_timeline_data.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData + +class TestNotificationsTimelineData(unittest.TestCase): + """NotificationsTimelineData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationsTimelineData: + """Test NotificationsTimelineData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationsTimelineData` + """ + model = NotificationsTimelineData() + if include_optional: + return NotificationsTimelineData( + viewer_v2 = twitter_openapi_python_generated.models.notifications_viewer_v2.NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ), ) + ) + else: + return NotificationsTimelineData( + viewer_v2 = twitter_openapi_python_generated.models.notifications_viewer_v2.NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ), ), + ) + """ + + def testNotificationsTimelineData(self): + """Test NotificationsTimelineData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_notifications_timeline_response.py b/twitter_openapi_python_generated/test/test_notifications_timeline_response.py new file mode 100644 index 0000000..582d58a --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notifications_timeline_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse + +class TestNotificationsTimelineResponse(unittest.TestCase): + """NotificationsTimelineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationsTimelineResponse: + """Test NotificationsTimelineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationsTimelineResponse` + """ + model = NotificationsTimelineResponse() + if include_optional: + return NotificationsTimelineResponse( + data = twitter_openapi_python_generated.models.notifications_timeline_data.NotificationsTimelineData( + viewer_v2 = twitter_openapi_python_generated.models.notifications_viewer_v2.NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ), ), ), + errors = [ + twitter_openapi_python_generated.models.error_response.ErrorResponse( + code = 56, + extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions( + code = 56, + kind = '', + name = '', + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ), + kind = '', + locations = [ + twitter_openapi_python_generated.models.location.Location( + column = 56, + line = 56, ) + ], + message = '', + name = '', + path = [ + null + ], + retry_after = 56, + source = '', + tracing = twitter_openapi_python_generated.models.tracing.Tracing( + trace_id = 'bf325375e030fccb', ), ) + ] + ) + else: + return NotificationsTimelineResponse( + data = twitter_openapi_python_generated.models.notifications_timeline_data.NotificationsTimelineData( + viewer_v2 = twitter_openapi_python_generated.models.notifications_viewer_v2.NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ), ), ), + ) + """ + + def testNotificationsTimelineResponse(self): + """Test NotificationsTimelineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_notifications_user_results.py b/twitter_openapi_python_generated/test/test_notifications_user_results.py new file mode 100644 index 0000000..823eefd --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notifications_user_results.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults + +class TestNotificationsUserResults(unittest.TestCase): + """NotificationsUserResults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationsUserResults: + """Test NotificationsUserResults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationsUserResults` + """ + model = NotificationsUserResults() + if include_optional: + return NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ) + ) + else: + return NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), + ) + """ + + def testNotificationsUserResults(self): + """Test NotificationsUserResults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py b/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py new file mode 100644 index 0000000..9dbc6b3 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 + +class TestNotificationsViewerV2(unittest.TestCase): + """NotificationsViewerV2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotificationsViewerV2: + """Test NotificationsViewerV2 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NotificationsViewerV2` + """ + model = NotificationsViewerV2() + if include_optional: + return NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ) + ) + else: + return NotificationsViewerV2( + user_results = twitter_openapi_python_generated.models.notifications_user_results.NotificationsUserResults( + result = twitter_openapi_python_generated.models.notifications_result.NotificationsResult( + __typename = 'TimelineTweet', + notification_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + rest_id = '4', ), ), + ) + """ + + def testNotificationsViewerV2(self): + """Test NotificationsViewerV2""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py b/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py index fa6e501..9048122 100644 --- a/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py @@ -36,12 +36,16 @@ def make_instance(self, include_optional) -> PostCreateBookmarkRequest: model = PostCreateBookmarkRequest() if include_optional: return PostCreateBookmarkRequest( + method = 'POST', + path = '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', query_id = 'aoDbu3RHznuiSkQ9aNM67Q', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostCreateBookmarkRequest( + method = 'POST', + path = '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', query_id = 'aoDbu3RHznuiSkQ9aNM67Q', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_create_retweet_request.py b/twitter_openapi_python_generated/test/test_post_create_retweet_request.py index 41f67cc..0a9524c 100644 --- a/twitter_openapi_python_generated/test/test_post_create_retweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_retweet_request.py @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PostCreateRetweetRequest: model = PostCreateRetweetRequest() if include_optional: return PostCreateRetweetRequest( + method = 'POST', + path = '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', query_id = 'ojPdsZsimiJrUGLR1sjUtA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -43,6 +45,8 @@ def make_instance(self, include_optional) -> PostCreateRetweetRequest: ) else: return PostCreateRetweetRequest( + method = 'POST', + path = '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', query_id = 'ojPdsZsimiJrUGLR1sjUtA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_create_tweet_request.py b/twitter_openapi_python_generated/test/test_post_create_tweet_request.py index af85aae..ee9f8e7 100644 --- a/twitter_openapi_python_generated/test/test_post_create_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_tweet_request.py @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: model = PostCreateTweetRequest() if include_optional: return PostCreateTweetRequest( + method = 'POST', + path = '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', features = twitter_openapi_python_generated.models.post_create_tweet_request_features.postCreateTweet_request_features( articles_preview_enabled = True, c9s_tweet_anatomy_moderator_badge_enabled = True, @@ -46,20 +48,27 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: longform_notetweets_consumption_enabled = True, longform_notetweets_inline_media_enabled = True, longform_notetweets_rich_text_read_enabled = True, + premium_content_api_read_enabled = False, + profile_label_improvements_pcf_label_in_post_enabled = True, responsive_web_edit_tweet_api_enabled = True, responsive_web_enhance_cards_enabled = False, - responsive_web_graphql_exclude_directive_enabled = True, responsive_web_graphql_skip_user_profile_image_extensions_enabled = False, responsive_web_graphql_timeline_navigation_enabled = True, + responsive_web_grok_analysis_button_from_backend = False, + responsive_web_grok_analyze_button_fetch_trends_enabled = False, + responsive_web_grok_analyze_post_followups_enabled = True, + responsive_web_grok_image_annotation_enabled = True, + responsive_web_grok_share_attachment_enabled = True, + responsive_web_grok_show_grok_translated_post = False, + responsive_web_jetfuel_frame = False, responsive_web_twitter_article_tweet_consumption_enabled = True, rweb_tipjar_consumption_enabled = True, - rweb_video_timestamps_enabled = True, standardized_nudges_misinfo = True, tweet_awards_web_tipping_enabled = False, tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled = True, verified_phone_label_enabled = False, view_counts_everywhere_api_enabled = True, ), - query_id = 'xT36w0XM3A8jDynpkram2A', + query_id = 'IID9x6WsdMnTlXnzXGq8ng', variables = twitter_openapi_python_generated.models.post_create_tweet_request_variables.postCreateTweet_request_variables( attachment_url = 'https://x.com/elonmusk/status/1349129669258448897', conversation_control = twitter_openapi_python_generated.models.post_create_tweet_request_variables_conversation_control.postCreateTweet_request_variables_conversation_control( @@ -87,6 +96,8 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: ) else: return PostCreateTweetRequest( + method = 'POST', + path = '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', features = twitter_openapi_python_generated.models.post_create_tweet_request_features.postCreateTweet_request_features( articles_preview_enabled = True, c9s_tweet_anatomy_moderator_badge_enabled = True, @@ -97,20 +108,27 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: longform_notetweets_consumption_enabled = True, longform_notetweets_inline_media_enabled = True, longform_notetweets_rich_text_read_enabled = True, + premium_content_api_read_enabled = False, + profile_label_improvements_pcf_label_in_post_enabled = True, responsive_web_edit_tweet_api_enabled = True, responsive_web_enhance_cards_enabled = False, - responsive_web_graphql_exclude_directive_enabled = True, responsive_web_graphql_skip_user_profile_image_extensions_enabled = False, responsive_web_graphql_timeline_navigation_enabled = True, + responsive_web_grok_analysis_button_from_backend = False, + responsive_web_grok_analyze_button_fetch_trends_enabled = False, + responsive_web_grok_analyze_post_followups_enabled = True, + responsive_web_grok_image_annotation_enabled = True, + responsive_web_grok_share_attachment_enabled = True, + responsive_web_grok_show_grok_translated_post = False, + responsive_web_jetfuel_frame = False, responsive_web_twitter_article_tweet_consumption_enabled = True, rweb_tipjar_consumption_enabled = True, - rweb_video_timestamps_enabled = True, standardized_nudges_misinfo = True, tweet_awards_web_tipping_enabled = False, tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled = True, verified_phone_label_enabled = False, view_counts_everywhere_api_enabled = True, ), - query_id = 'xT36w0XM3A8jDynpkram2A', + query_id = 'IID9x6WsdMnTlXnzXGq8ng', variables = twitter_openapi_python_generated.models.post_create_tweet_request_variables.postCreateTweet_request_variables( attachment_url = 'https://x.com/elonmusk/status/1349129669258448897', conversation_control = twitter_openapi_python_generated.models.post_create_tweet_request_variables_conversation_control.postCreateTweet_request_variables_conversation_control( diff --git a/twitter_openapi_python_generated/test/test_post_create_tweet_request_features.py b/twitter_openapi_python_generated/test/test_post_create_tweet_request_features.py index e3e465d..0dddf36 100644 --- a/twitter_openapi_python_generated/test/test_post_create_tweet_request_features.py +++ b/twitter_openapi_python_generated/test/test_post_create_tweet_request_features.py @@ -45,14 +45,21 @@ def make_instance(self, include_optional) -> PostCreateTweetRequestFeatures: longform_notetweets_consumption_enabled = True, longform_notetweets_inline_media_enabled = True, longform_notetweets_rich_text_read_enabled = True, + premium_content_api_read_enabled = False, + profile_label_improvements_pcf_label_in_post_enabled = True, responsive_web_edit_tweet_api_enabled = True, responsive_web_enhance_cards_enabled = False, - responsive_web_graphql_exclude_directive_enabled = True, responsive_web_graphql_skip_user_profile_image_extensions_enabled = False, responsive_web_graphql_timeline_navigation_enabled = True, + responsive_web_grok_analysis_button_from_backend = False, + responsive_web_grok_analyze_button_fetch_trends_enabled = False, + responsive_web_grok_analyze_post_followups_enabled = True, + responsive_web_grok_image_annotation_enabled = True, + responsive_web_grok_share_attachment_enabled = True, + responsive_web_grok_show_grok_translated_post = False, + responsive_web_jetfuel_frame = False, responsive_web_twitter_article_tweet_consumption_enabled = True, rweb_tipjar_consumption_enabled = True, - rweb_video_timestamps_enabled = True, standardized_nudges_misinfo = True, tweet_awards_web_tipping_enabled = False, tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled = True, @@ -70,14 +77,21 @@ def make_instance(self, include_optional) -> PostCreateTweetRequestFeatures: longform_notetweets_consumption_enabled = True, longform_notetweets_inline_media_enabled = True, longform_notetweets_rich_text_read_enabled = True, + premium_content_api_read_enabled = False, + profile_label_improvements_pcf_label_in_post_enabled = True, responsive_web_edit_tweet_api_enabled = True, responsive_web_enhance_cards_enabled = False, - responsive_web_graphql_exclude_directive_enabled = True, responsive_web_graphql_skip_user_profile_image_extensions_enabled = False, responsive_web_graphql_timeline_navigation_enabled = True, + responsive_web_grok_analysis_button_from_backend = False, + responsive_web_grok_analyze_button_fetch_trends_enabled = False, + responsive_web_grok_analyze_post_followups_enabled = True, + responsive_web_grok_image_annotation_enabled = True, + responsive_web_grok_share_attachment_enabled = True, + responsive_web_grok_show_grok_translated_post = False, + responsive_web_jetfuel_frame = False, responsive_web_twitter_article_tweet_consumption_enabled = True, rweb_tipjar_consumption_enabled = True, - rweb_video_timestamps_enabled = True, standardized_nudges_misinfo = True, tweet_awards_web_tipping_enabled = False, tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled = True, diff --git a/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py b/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py index 2485924..aadddb9 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py @@ -36,12 +36,16 @@ def make_instance(self, include_optional) -> PostDeleteBookmarkRequest: model = PostDeleteBookmarkRequest() if include_optional: return PostDeleteBookmarkRequest( + method = 'POST', + path = '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', query_id = 'Wlmlj2-xzyS1GN3a6cj-mQ', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostDeleteBookmarkRequest( + method = 'POST', + path = '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', query_id = 'Wlmlj2-xzyS1GN3a6cj-mQ', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py b/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py index c9dfadf..7008654 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PostDeleteRetweetRequest: model = PostDeleteRetweetRequest() if include_optional: return PostDeleteRetweetRequest( + method = 'POST', + path = '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', query_id = 'iQtK4dl5hBmXewYZuEOKVw', variables = twitter_openapi_python_generated.models.post_delete_retweet_request_variables.postDeleteRetweet_request_variables( dark_request = False, @@ -43,6 +45,8 @@ def make_instance(self, include_optional) -> PostDeleteRetweetRequest: ) else: return PostDeleteRetweetRequest( + method = 'POST', + path = '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', query_id = 'iQtK4dl5hBmXewYZuEOKVw', variables = twitter_openapi_python_generated.models.post_delete_retweet_request_variables.postDeleteRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py b/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py index 815da3f..de799e1 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PostDeleteTweetRequest: model = PostDeleteTweetRequest() if include_optional: return PostDeleteTweetRequest( + method = 'POST', + path = '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', query_id = 'VaenaVgh5q5ih7kvyVjgtg', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -43,6 +45,8 @@ def make_instance(self, include_optional) -> PostDeleteTweetRequest: ) else: return PostDeleteTweetRequest( + method = 'POST', + path = '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', query_id = 'VaenaVgh5q5ih7kvyVjgtg', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py b/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py index 64cb2b6..d4c64e7 100644 --- a/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py @@ -36,12 +36,16 @@ def make_instance(self, include_optional) -> PostFavoriteTweetRequest: model = PostFavoriteTweetRequest() if include_optional: return PostFavoriteTweetRequest( + method = 'POST', + path = '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', query_id = 'lI07N6Otwv1PhnEgXILM7A', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostFavoriteTweetRequest( + method = 'POST', + path = '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', query_id = 'lI07N6Otwv1PhnEgXILM7A', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py b/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py index f0567f4..f94e6a8 100644 --- a/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PostUnfavoriteTweetRequest: model = PostUnfavoriteTweetRequest() if include_optional: return PostUnfavoriteTweetRequest( + method = 'POST', + path = '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', query_id = 'ZYKSe-w7KEslx3JhSIk5LA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -43,6 +45,8 @@ def make_instance(self, include_optional) -> PostUnfavoriteTweetRequest: ) else: return PostUnfavoriteTweetRequest( + method = 'POST', + path = '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', query_id = 'ZYKSe-w7KEslx3JhSIk5LA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_ranked_community_result.py b/twitter_openapi_python_generated/test/test_ranked_community_result.py new file mode 100644 index 0000000..45d5888 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_ranked_community_result.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult + +class TestRankedCommunityResult(unittest.TestCase): + """RankedCommunityResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RankedCommunityResult: + """Test RankedCommunityResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RankedCommunityResult` + """ + model = RankedCommunityResult() + if include_optional: + return RankedCommunityResult( + typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ) + ) + else: + return RankedCommunityResult( + typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), + ) + """ + + def testRankedCommunityResult(self): + """Test RankedCommunityResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_ranked_community_results.py b/twitter_openapi_python_generated/test/test_ranked_community_results.py new file mode 100644 index 0000000..4ea885c --- /dev/null +++ b/twitter_openapi_python_generated/test/test_ranked_community_results.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.ranked_community_results import RankedCommunityResults + +class TestRankedCommunityResults(unittest.TestCase): + """RankedCommunityResults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RankedCommunityResults: + """Test RankedCommunityResults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RankedCommunityResults` + """ + model = RankedCommunityResults() + if include_optional: + return RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ) + ) + else: + return RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), + ) + """ + + def testRankedCommunityResults(self): + """Test RankedCommunityResults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py b/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py new file mode 100644 index 0000000..fcf20b6 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.ranked_community_tweet_data import RankedCommunityTweetData + +class TestRankedCommunityTweetData(unittest.TestCase): + """RankedCommunityTweetData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RankedCommunityTweetData: + """Test RankedCommunityTweetData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RankedCommunityTweetData` + """ + model = RankedCommunityTweetData() + if include_optional: + return RankedCommunityTweetData( + community_results = twitter_openapi_python_generated.models.ranked_community_results.RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ) + ) + else: + return RankedCommunityTweetData( + community_results = twitter_openapi_python_generated.models.ranked_community_results.RankedCommunityResults( + result = twitter_openapi_python_generated.models.ranked_community_result.RankedCommunityResult( + __typename = 'TimelineTweet', + ranked_community_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ), + ) + """ + + def testRankedCommunityTweetData(self): + """Test RankedCommunityTweetData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_rich_message.py b/twitter_openapi_python_generated/test/test_rich_message.py new file mode 100644 index 0000000..8b68f20 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_rich_message.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.rich_message import RichMessage + +class TestRichMessage(unittest.TestCase): + """RichMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RichMessage: + """Test RichMessage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RichMessage` + """ + model = RichMessage() + if include_optional: + return RichMessage( + rtl = True, + text = '' + ) + else: + return RichMessage( + ) + """ + + def testRichMessage(self): + """Test RichMessage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_search_timeline_data.py b/twitter_openapi_python_generated/test/test_search_timeline_data.py index 16d23fa..4dda23a 100644 --- a/twitter_openapi_python_generated/test/test_search_timeline_data.py +++ b/twitter_openapi_python_generated/test/test_search_timeline_data.py @@ -47,6 +47,14 @@ def make_instance(self, include_optional) -> SearchTimelineData: ) else: return SearchTimelineData( + search_by_raw_query = twitter_openapi_python_generated.models.search_by_raw_query.SearchByRawQuery( + search_timeline = twitter_openapi_python_generated.models.search_timeline.SearchTimeline( + timeline = twitter_openapi_python_generated.models.timeline.Timeline( + instructions = [ + null + ], + metadata = { }, + response_objects = { }, ), ), ), ) """ diff --git a/twitter_openapi_python_generated/test/test_social_context_union.py b/twitter_openapi_python_generated/test/test_social_context_union.py index 98dd673..2641585 100644 --- a/twitter_openapi_python_generated/test/test_social_context_union.py +++ b/twitter_openapi_python_generated/test/test_social_context_union.py @@ -36,6 +36,9 @@ def make_instance(self, include_optional) -> SocialContextUnion: model = SocialContextUnion() if include_optional: return SocialContextUnion( + context_image_urls = [ + '' + ], context_type = 'Follow', landing_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( url = '', diff --git a/twitter_openapi_python_generated/test/test_timeline_clear_entries_unread_state.py b/twitter_openapi_python_generated/test/test_timeline_clear_entries_unread_state.py new file mode 100644 index 0000000..7b5dfea --- /dev/null +++ b/twitter_openapi_python_generated/test/test_timeline_clear_entries_unread_state.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.timeline_clear_entries_unread_state import TimelineClearEntriesUnreadState + +class TestTimelineClearEntriesUnreadState(unittest.TestCase): + """TimelineClearEntriesUnreadState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TimelineClearEntriesUnreadState: + """Test TimelineClearEntriesUnreadState + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TimelineClearEntriesUnreadState` + """ + model = TimelineClearEntriesUnreadState() + if include_optional: + return TimelineClearEntriesUnreadState( + type = 'TimelineAddEntries' + ) + else: + return TimelineClearEntriesUnreadState( + type = 'TimelineAddEntries', + ) + """ + + def testTimelineClearEntriesUnreadState(self): + """Test TimelineClearEntriesUnreadState""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_timeline_general_context.py b/twitter_openapi_python_generated/test/test_timeline_general_context.py index 26d417b..91b6373 100644 --- a/twitter_openapi_python_generated/test/test_timeline_general_context.py +++ b/twitter_openapi_python_generated/test/test_timeline_general_context.py @@ -36,6 +36,9 @@ def make_instance(self, include_optional) -> TimelineGeneralContext: model = TimelineGeneralContext() if include_optional: return TimelineGeneralContext( + context_image_urls = [ + '' + ], context_type = 'Follow', landing_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( url = '', diff --git a/twitter_openapi_python_generated/test/test_timeline_mark_entries_unread_greater_than_sort_index.py b/twitter_openapi_python_generated/test/test_timeline_mark_entries_unread_greater_than_sort_index.py new file mode 100644 index 0000000..3716fad --- /dev/null +++ b/twitter_openapi_python_generated/test/test_timeline_mark_entries_unread_greater_than_sort_index.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.timeline_mark_entries_unread_greater_than_sort_index import TimelineMarkEntriesUnreadGreaterThanSortIndex + +class TestTimelineMarkEntriesUnreadGreaterThanSortIndex(unittest.TestCase): + """TimelineMarkEntriesUnreadGreaterThanSortIndex unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TimelineMarkEntriesUnreadGreaterThanSortIndex: + """Test TimelineMarkEntriesUnreadGreaterThanSortIndex + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TimelineMarkEntriesUnreadGreaterThanSortIndex` + """ + model = TimelineMarkEntriesUnreadGreaterThanSortIndex() + if include_optional: + return TimelineMarkEntriesUnreadGreaterThanSortIndex( + sort_index = '4', + type = 'TimelineAddEntries' + ) + else: + return TimelineMarkEntriesUnreadGreaterThanSortIndex( + type = 'TimelineAddEntries', + ) + """ + + def testTimelineMarkEntriesUnreadGreaterThanSortIndex(self): + """Test TimelineMarkEntriesUnreadGreaterThanSortIndex""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_timeline_notification.py b/twitter_openapi_python_generated/test/test_timeline_notification.py new file mode 100644 index 0000000..1c406dd --- /dev/null +++ b/twitter_openapi_python_generated/test/test_timeline_notification.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from twitter_openapi_python_generated.models.timeline_notification import TimelineNotification + +class TestTimelineNotification(unittest.TestCase): + """TimelineNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TimelineNotification: + """Test TimelineNotification + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TimelineNotification` + """ + model = TimelineNotification() + if include_optional: + return TimelineNotification( + typename = 'TimelineTweet', + id = '', + item_type = 'TimelineTweet', + notification_icon = '', + notification_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), + rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage( + rtl = True, + text = '', ), + template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate( + __typename = 'TimelineTweet', + from_users = [ + None + ], + target_objects = [ + None + ], ), + timestamp_ms = '' + ) + else: + return TimelineNotification( + typename = 'TimelineTweet', + id = '', + item_type = 'TimelineTweet', + notification_icon = '', + notification_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), + rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage( + rtl = True, + text = '', ), + template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate( + __typename = 'TimelineTweet', + from_users = [ + None + ], + target_objects = [ + None + ], ), + timestamp_ms = '', + ) + """ + + def testTimelineNotification(self): + """Test TimelineNotification""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_timeline_v2.py b/twitter_openapi_python_generated/test/test_timeline_result.py similarity index 67% rename from twitter_openapi_python_generated/test/test_timeline_v2.py rename to twitter_openapi_python_generated/test/test_timeline_result.py index fd70d12..4bd772f 100644 --- a/twitter_openapi_python_generated/test/test_timeline_v2.py +++ b/twitter_openapi_python_generated/test/test_timeline_result.py @@ -15,10 +15,10 @@ import unittest -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 +from twitter_openapi_python_generated.models.timeline_result import TimelineResult -class TestTimelineV2(unittest.TestCase): - """TimelineV2 unit test stubs""" +class TestTimelineResult(unittest.TestCase): + """TimelineResult unit test stubs""" def setUp(self): pass @@ -26,16 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TimelineV2: - """Test TimelineV2 + def make_instance(self, include_optional) -> TimelineResult: + """Test TimelineResult include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TimelineV2` + # uncomment below to create an instance of `TimelineResult` """ - model = TimelineV2() + model = TimelineResult() if include_optional: - return TimelineV2( + return TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -44,12 +45,12 @@ def make_instance(self, include_optional) -> TimelineV2: response_objects = { }, ) ) else: - return TimelineV2( + return TimelineResult( ) """ - def testTimelineV2(self): - """Test TimelineV2""" + def testTimelineResult(self): + """Test TimelineResult""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py index 16c30e4..1810937 100644 --- a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py +++ b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py @@ -73,10 +73,6 @@ def make_instance(self, include_optional) -> TimelineTimelineModule: else: return TimelineTimelineModule( typename = 'TimelineTweet', - client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( - component = '', - details = { }, - element = '', ), display_type = 'Vertical', entry_type = 'TimelineTimelineItem', ) diff --git a/twitter_openapi_python_generated/test/test_timeline_trend.py b/twitter_openapi_python_generated/test/test_timeline_trend.py index c52c426..1f5c129 100644 --- a/twitter_openapi_python_generated/test/test_timeline_trend.py +++ b/twitter_openapi_python_generated/test/test_timeline_trend.py @@ -73,16 +73,7 @@ def make_instance(self, include_optional) -> TimelineTrend: else: return TimelineTrend( typename = 'TimelineTweet', - images = [ - twitter_openapi_python_generated.models.trend_image.TrendImage( - url = '', ) - ], - item_type = 'TimelineTweet', name = '', - thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( - original_img_height = 56, - original_img_url = '', - original_img_width = 56, ), trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( url_type = 'DeepLink', diff --git a/twitter_openapi_python_generated/test/test_tweet.py b/twitter_openapi_python_generated/test/test_tweet.py index 639171f..3b624aa 100644 --- a/twitter_openapi_python_generated/test/test_tweet.py +++ b/twitter_openapi_python_generated/test/test_tweet.py @@ -163,6 +163,7 @@ def make_instance(self, include_optional) -> Tweet: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -301,6 +302,433 @@ def make_instance(self, include_optional) -> Tweet: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -352,6 +780,9 @@ def make_instance(self, include_optional) -> Tweet: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -509,6 +940,9 @@ def make_instance(self, include_optional) -> Tweet: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_tweet_api.py b/twitter_openapi_python_generated/test/test_tweet_api.py index 70845a0..e3ff1ab 100644 --- a/twitter_openapi_python_generated/test/test_tweet_api.py +++ b/twitter_openapi_python_generated/test/test_tweet_api.py @@ -33,6 +33,24 @@ def test_get_bookmarks(self) -> None: """ pass + def test_get_community_about_timeline(self) -> None: + """Test case for get_community_about_timeline + + """ + pass + + def test_get_community_media_timeline(self) -> None: + """Test case for get_community_media_timeline + + """ + pass + + def test_get_community_tweets_timeline(self) -> None: + """Test case for get_community_tweets_timeline + + """ + pass + def test_get_home_latest_timeline(self) -> None: """Test case for get_home_latest_timeline @@ -57,6 +75,12 @@ def test_get_list_latest_tweets_timeline(self) -> None: """ pass + def test_get_notifications_timeline(self) -> None: + """Test case for get_notifications_timeline + + """ + pass + def test_get_search_timeline(self) -> None: """Test case for get_search_timeline diff --git a/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py b/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py index 56fb55e..9a320fe 100644 --- a/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py +++ b/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> TweetFavoritersResponse: if include_optional: return TweetFavoritersResponse( data = twitter_openapi_python_generated.models.tweet_favoriters_response_data.TweetFavoritersResponseData( - favoriters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + favoriters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -75,7 +76,8 @@ def make_instance(self, include_optional) -> TweetFavoritersResponse: else: return TweetFavoritersResponse( data = twitter_openapi_python_generated.models.tweet_favoriters_response_data.TweetFavoritersResponseData( - favoriters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + favoriters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py b/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py index 8fe0773..04cd623 100644 --- a/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py +++ b/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> TweetFavoritersResponseData: model = TweetFavoritersResponseData() if include_optional: return TweetFavoritersResponseData( - favoriters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + favoriters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_tweet_legacy.py b/twitter_openapi_python_generated/test/test_tweet_legacy.py index b8ab9fc..676b7fa 100644 --- a/twitter_openapi_python_generated/test/test_tweet_legacy.py +++ b/twitter_openapi_python_generated/test/test_tweet_legacy.py @@ -79,6 +79,9 @@ def make_instance(self, include_optional) -> TweetLegacy: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -177,6 +180,9 @@ def make_instance(self, include_optional) -> TweetLegacy: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -295,6 +301,9 @@ def make_instance(self, include_optional) -> TweetLegacy: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py b/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py index 2934e76..b98b306 100644 --- a/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py +++ b/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> TweetRetweetersResponse: if include_optional: return TweetRetweetersResponse( data = twitter_openapi_python_generated.models.tweet_retweeters_response_data.TweetRetweetersResponseData( - retweeters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + retweeters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -75,7 +76,8 @@ def make_instance(self, include_optional) -> TweetRetweetersResponse: else: return TweetRetweetersResponse( data = twitter_openapi_python_generated.models.tweet_retweeters_response_data.TweetRetweetersResponseData( - retweeters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + retweeters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py b/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py index a3a44d0..61a425f 100644 --- a/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py +++ b/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> TweetRetweetersResponseData: model = TweetRetweetersResponseData() if include_optional: return TweetRetweetersResponseData( - retweeters_timeline = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + retweeters_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null diff --git a/twitter_openapi_python_generated/test/test_tweet_union.py b/twitter_openapi_python_generated/test/test_tweet_union.py index 235655a..5a80455 100644 --- a/twitter_openapi_python_generated/test/test_tweet_union.py +++ b/twitter_openapi_python_generated/test/test_tweet_union.py @@ -163,6 +163,7 @@ def make_instance(self, include_optional) -> TweetUnion: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -301,6 +302,441 @@ def make_instance(self, include_optional) -> TweetUnion: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + __typename = 'TimelineTweet', + article = twitter_openapi_python_generated.models.article.Article( + article_results = twitter_openapi_python_generated.models.article_results.ArticleResults( + result = twitter_openapi_python_generated.models.article_result.ArticleResult( + cover_media = twitter_openapi_python_generated.models.article_cover_media.ArticleCoverMedia( + id = '', + media_id = '4', + media_info = twitter_openapi_python_generated.models.article_cover_media_info.ArticleCoverMediaInfo( + color_info = twitter_openapi_python_generated.models.article_cover_media_color_info.ArticleCoverMediaColorInfo( + palette = [ + twitter_openapi_python_generated.models.article_cover_media_color_info_palette.ArticleCoverMediaColorInfoPalette( + percentage = 1.337, + rgb = twitter_openapi_python_generated.models.article_cover_media_color_info_palette_rgb.ArticleCoverMediaColorInfoPaletteRGB( + blue = 56, + green = 56, + red = 56, ), ) + ], ), + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + media_key = '', ), + id = '', + lifecycle_state = twitter_openapi_python_generated.models.article_lifecycle_state.ArticleLifecycleState( + modified_at_secs = 56, ), + metadata = twitter_openapi_python_generated.models.article_metadata.ArticleMetadata( + first_published_at_secs = 56, ), + preview_text = '', + rest_id = '4', + title = '', ), ), ), + author_community_relationship = twitter_openapi_python_generated.models.author_community_relationship.AuthorCommunityRelationship( + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = 'TimelineTweet', + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions( + delete_action_result = twitter_openapi_python_generated.models.community_delete_action_result.CommunityDeleteActionResult( + __typename = , + reason = 'Unavailable', ), + join_action_result = null, + leave_action_result = twitter_openapi_python_generated.models.community_leave_action_result.CommunityLeaveActionResult( + __typename = , + message = '', + reason = 'ViewerNotMember', ), + pin_action_result = twitter_openapi_python_generated.models.community_pin_action_result.CommunityPinActionResult( + __typename = , ), + unpin_action_result = twitter_openapi_python_generated.models.community_unpin_action_result.CommunityUnpinActionResult( + __typename = , ), ), + admin_results = twitter_openapi_python_generated.models.user_results.UserResults(), + created_at = 56, + creator_results = twitter_openapi_python_generated.models.user_results.UserResults(), + custom_banner_media = { }, + default_banner_media = { }, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + invites_result = twitter_openapi_python_generated.models.community_invites_result.CommunityInvitesResult( + __typename = , + message = '', + reason = 'Unavailable', ), + is_pinned = True, + join_policy = 'Open', + join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult( + __typename = , ), + member_count = 56, + members_facepile_results = [ + + ], + moderator_count = 56, + name = '', + primary_community_topic = twitter_openapi_python_generated.models.primary_community_topic.PrimaryCommunityTopic( + topic_id = '4', + topic_name = '', ), + question = '', + role = 'NonMember', + rules = [ + twitter_openapi_python_generated.models.community_rule.CommunityRule( + description = '', + name = '', + rest_id = '4', ) + ], + search_tags = [ + '' + ], + show_only_users_to_display = [ + '' + ], + urls = twitter_openapi_python_generated.models.community_urls.CommunityUrls( + permalink = twitter_openapi_python_generated.models.community_urls_permalink.CommunityUrlsPermalink( + url = '', ), ), + viewer_relationship = { }, ), ), + role = 'Member', + user_results = , ), + birdwatch_pivot = twitter_openapi_python_generated.models.birdwatch_pivot.BirdwatchPivot( + call_to_action = twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action.BirdwatchPivotCallToAction( + destination_url = '', + prompt = '', + title = '', ), + destination_url = '', + footer = twitter_openapi_python_generated.models.birdwatch_pivot_footer.BirdwatchPivotFooter( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + icon_type = 'BirdwatchV1Icon', + note = twitter_openapi_python_generated.models.birdwatch_pivot_note.BirdwatchPivotNote( + rest_id = '4', ), + shorttitle = '', + subtitle = twitter_openapi_python_generated.models.birdwatch_pivot_subtitle.BirdwatchPivotSubtitle( + entities = [ + twitter_openapi_python_generated.models.birdwatch_entity.BirdwatchEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.birdwatch_entity_ref.BirdwatchEntityRef( + text = '', + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + text = '', ), + title = '', + title_detail = '', + visual_style = 'Default', ), + card = twitter_openapi_python_generated.models.tweet_card.TweetCard( + legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( + binding_values = [ + twitter_openapi_python_generated.models.tweet_card_legacy_binding_value.TweetCardLegacyBindingValue( + key = '', + value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data.TweetCardLegacyBindingValueData( + boolean_value = True, + image_color_value = { }, + image_value = twitter_openapi_python_generated.models.tweet_card_legacy_binding_value_data_image.TweetCardLegacyBindingValueDataImage( + alt = '', + height = 56, + url = '', + width = 56, ), + scribe_key = '', + string_value = '', + type = '', + user_value = twitter_openapi_python_generated.models.user_value.UserValue( + id_str = '4', ), ), ) + ], + card_platform = twitter_openapi_python_generated.models.tweet_card_platform_data.TweetCardPlatformData( + platform = twitter_openapi_python_generated.models.tweet_card_platform.TweetCardPlatform( + audience = twitter_openapi_python_generated.models.tweet_card_platform_audience.TweetCardPlatformAudience( + name = 'production', ), + device = twitter_openapi_python_generated.models.tweet_card_platform_device.TweetCardPlatformDevice( + name = '', + version = '4', ), ), ), + name = '', + url = '', + user_refs_results = [ + + ], ), + rest_id = '', ), + community_relationship = twitter_openapi_python_generated.models.community_relationship.CommunityRelationship( + actions = twitter_openapi_python_generated.models.community_actions.CommunityActions(), + id = '', + moderation_state = { }, + rest_id = '4', ), + community_results = twitter_openapi_python_generated.models.community.Community( + result = twitter_openapi_python_generated.models.community_data.CommunityData( + __typename = , + created_at = 56, + description = '', + id_str = '4', + invites_policy = 'MemberInvitesAllowed', + is_pinned = True, + join_policy = 'Open', + member_count = 56, + moderator_count = 56, + name = '', + question = '', + role = 'NonMember', ), ), + core = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + edit_control = twitter_openapi_python_generated.models.tweet_edit_control.TweetEditControl( + edit_control_initial = twitter_openapi_python_generated.models.tweet_edit_control_initial.TweetEditControlInitial( + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + is_edit_eligible = True, ), + edit_tweet_ids = [ + '4' + ], + editable_until_msecs = '4', + edits_remaining = '4', + initial_tweet_id = '4', + is_edit_eligible = True, ), + edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( + favorited = True, + retweeted = True, ), + grok_analysis_button = True, + grok_analysis_followups = [ + '' + ], + grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( + items = [ + twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + media_urls = [ + '' + ], + message = '', ) + ], ), + has_birdwatch_notes = True, + is_translatable = True, + legacy = twitter_openapi_python_generated.models.tweet_legacy.TweetLegacy( + bookmark_count = 56, + bookmarked = True, + conversation_control = { }, + conversation_id_str = '4', + created_at = 'Sat Dec 31 23:59:59 +0000 2023', + display_text_range = [ + 56 + ], + entities = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + extended_entities = twitter_openapi_python_generated.models.extended_entities.ExtendedEntities( + media = [ + twitter_openapi_python_generated.models.media_extended.MediaExtended( + display_url = '', + expanded_url = '', + ext_alt_text = '', + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = , + media_stats = twitter_openapi_python_generated.models.media_stats.MediaStats( + view_count = 56, ), + media_key = '', + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + height = 56, + width = 56, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = , + medium = , + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', ) + ], ), + favorite_count = 56, + favorited = True, + full_text = '', + id_str = '4', + in_reply_to_screen_name = '', + in_reply_to_status_id_str = '4', + in_reply_to_user_id_str = '4', + is_quote_status = True, + lang = '', + limited_actions = 'limited_replies', + place = { }, + possibly_sensitive = True, + possibly_sensitive_editable = True, + quote_count = 56, + quoted_status_id_str = '4', + quoted_status_permalink = twitter_openapi_python_generated.models.quoted_status_permalink.QuotedStatusPermalink( + display = '', + expanded = '', + url = '', ), + reply_count = 56, + retweet_count = 56, + retweeted = True, + retweeted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + scopes = twitter_openapi_python_generated.models.tweet_legacy_scopes.TweetLegacyScopes( + followers = True, ), + self_thread = twitter_openapi_python_generated.models.self_thread.SelfThread( + id_str = '4', ), + user_id_str = '4', ), + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + symbols = [ + { } + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -352,6 +788,9 @@ def make_instance(self, include_optional) -> TweetUnion: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( @@ -509,6 +948,9 @@ def make_instance(self, include_optional) -> TweetUnion: media_key = '', media_results = twitter_openapi_python_generated.models.media_results.MediaResults( result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), media_key = '', ), ), media_url_https = '', original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( diff --git a/twitter_openapi_python_generated/test/test_tweet_with_visibility_results.py b/twitter_openapi_python_generated/test/test_tweet_with_visibility_results.py index 1f25fc2..a69aeb1 100644 --- a/twitter_openapi_python_generated/test/test_tweet_with_visibility_results.py +++ b/twitter_openapi_python_generated/test/test_tweet_with_visibility_results.py @@ -192,6 +192,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -271,6 +272,157 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -291,90 +443,9 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -443,33 +514,8 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -479,7 +525,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( @@ -653,6 +699,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: ], text = '', ), title = '', + title_detail = '', visual_style = 'Default', ), card = twitter_openapi_python_generated.models.tweet_card.TweetCard( legacy = twitter_openapi_python_generated.models.tweet_card_legacy.TweetCardLegacy( @@ -732,6 +779,157 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: grok_share_attachment = twitter_openapi_python_generated.models.grok_share_attachment.GrokShareAttachment( items = [ twitter_openapi_python_generated.models.grok_share_attachment_item.GrokShareAttachmentItem( + analysis_post_id_results = twitter_openapi_python_generated.models.analysis_results.AnalysisResults( + result = twitter_openapi_python_generated.models.tweet.Tweet( + grok_analysis_button = True, + has_birdwatch_notes = True, + is_translatable = True, + note_tweet = twitter_openapi_python_generated.models.note_tweet.NoteTweet( + is_expandable = True, + note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( + result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( + entity_set = twitter_openapi_python_generated.models.entities.Entities( + hashtags = [ + { } + ], + media = [ + twitter_openapi_python_generated.models.media.Media( + additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( + call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( + visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), + watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( + url = '', ), ), + description = '', + embeddable = True, + monetizable = True, + source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( + user_results = , ), + title = '', ), + allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( + allow_download = True, ), + display_url = '', + expanded_url = '', + ext_alt_text = '', + ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( + reason = '', + status = 'Available', ), + features = twitter_openapi_python_generated.models.features.features(), + id_str = '4', + indices = [ + 56 + ], + media_key = '', + media_results = twitter_openapi_python_generated.models.media_results.MediaResults( + result = twitter_openapi_python_generated.models.media_result.MediaResult( + grok_image_annotation = twitter_openapi_python_generated.models.grok_image_annotation.GrokImageAnnotation( + prompt = '', + upsampled_prompt = '', ), + media_key = '', ), ), + media_url_https = '', + original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( + focus_rects = [ + twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( + h = 56, + w = 56, + x = 56, + y = 56, ) + ], + height = 56, + width = 56, ), + sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( + adult_content = True, + graphic_violence = True, + other = True, ), + sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( + large = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + medium = twitter_openapi_python_generated.models.media_size.MediaSize( + h = 56, + resize = 'crop', + w = 56, ), + small = , + thumb = , ), + source_status_id_str = '4', + source_user_id_str = '4', + type = 'photo', + url = '', + video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( + aspect_ratio = [ + 56 + ], + duration_millis = 56, + variants = [ + twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( + bitrate = 56, + content_type = '', + url = '', ) + ], ), ) + ], + symbols = [ + { } + ], + timestamps = [ + twitter_openapi_python_generated.models.timestamp.Timestamp( + indices = [ + 56 + ], + seconds = 56, + text = '', ) + ], + urls = [ + twitter_openapi_python_generated.models.url.Url( + display_url = '', + expanded_url = '', + indices = , + url = '', ) + ], + user_mentions = [ + { } + ], ), + id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', + media = twitter_openapi_python_generated.models.note_tweet_result_media.NoteTweetResultMedia( + inline_media = [ + twitter_openapi_python_generated.models.note_tweet_result_media_inline_media.NoteTweetResultMediaInlineMedia( + index = 56, + media_id = '4', ) + ], ), + richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( + richtext_tags = [ + twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( + from_index = 56, + richtext_types = [ + 'Bold' + ], + to_index = 56, ) + ], ), + text = '', ), ), ), + previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( + bookmark_count = 56, + favorite_count = 56, + quote_count = 56, + reply_count = 56, + retweet_count = 56, ), + quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), + quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), + quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + rest_id = '4', + source = '', + super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( + result = twitter_openapi_python_generated.models.super_follows_reply_user_result_data.SuperFollowsReplyUserResultData( + __typename = , + legacy = twitter_openapi_python_generated.models.super_follows_reply_user_result_legacy.SuperFollowsReplyUserResultLegacy( + screen_name = '', ), ), ), + trend_results = twitter_openapi_python_generated.models.trend_results.TrendResults( + rest_id = '4', ), + unified_card = twitter_openapi_python_generated.models.unified_card.UnifiedCard( + card_fetch_state = 'NoCard', ), + unmention_data = { }, + views = twitter_openapi_python_generated.models.tweet_view.TweetView( + count = '4', + state = 'Enabled', ), ), ), media_urls = [ '' ], @@ -752,90 +950,9 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: hashtags = [ { } ], - media = [ - twitter_openapi_python_generated.models.media.Media( - additional_media_info = twitter_openapi_python_generated.models.additional_media_info.AdditionalMediaInfo( - call_to_actions = twitter_openapi_python_generated.models.additional_media_info_call_to_actions.AdditionalMediaInfoCallToActions( - visit_site = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), - watch_now = twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url.AdditionalMediaInfoCallToActionsUrl( - url = '', ), ), - description = '', - embeddable = True, - monetizable = True, - source_user = twitter_openapi_python_generated.models.user_result_core.UserResultCore( - user_results = , ), - title = '', ), - allow_download_status = twitter_openapi_python_generated.models.allow_download_status.AllowDownloadStatus( - allow_download = True, ), - display_url = '', - expanded_url = '', - ext_alt_text = '', - ext_media_availability = twitter_openapi_python_generated.models.ext_media_availability.ExtMediaAvailability( - reason = '', - status = 'Available', ), - features = twitter_openapi_python_generated.models.features.features(), - id_str = '4', - indices = [ - 56 - ], - media_key = '', - media_results = twitter_openapi_python_generated.models.media_results.MediaResults( - result = twitter_openapi_python_generated.models.media_result.MediaResult( - media_key = '', ), ), - media_url_https = '', - original_info = twitter_openapi_python_generated.models.media_original_info.MediaOriginalInfo( - focus_rects = [ - twitter_openapi_python_generated.models.media_original_info_focus_rect.MediaOriginalInfoFocusRect( - h = 56, - w = 56, - x = 56, - y = 56, ) - ], - height = 56, - width = 56, ), - sensitive_media_warning = twitter_openapi_python_generated.models.sensitive_media_warning.SensitiveMediaWarning( - adult_content = True, - graphic_violence = True, - other = True, ), - sizes = twitter_openapi_python_generated.models.media_sizes.MediaSizes( - large = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - medium = twitter_openapi_python_generated.models.media_size.MediaSize( - h = 56, - resize = 'crop', - w = 56, ), - small = , - thumb = , ), - source_status_id_str = '4', - source_user_id_str = '4', - type = 'photo', - url = '', - video_info = twitter_openapi_python_generated.models.media_video_info.MediaVideoInfo( - aspect_ratio = [ - 56 - ], - duration_millis = 56, - variants = [ - twitter_openapi_python_generated.models.media_video_info_variant.MediaVideoInfoVariant( - bitrate = 56, - content_type = '', - url = '', ) - ], ), ) - ], symbols = [ { } ], - timestamps = [ - twitter_openapi_python_generated.models.timestamp.Timestamp( - indices = [ - 56 - ], - seconds = 56, - text = '', ) - ], urls = [ twitter_openapi_python_generated.models.url.Url( display_url = '', @@ -904,33 +1021,8 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: is_expandable = True, note_tweet_results = twitter_openapi_python_generated.models.note_tweet_result.NoteTweetResult( result = twitter_openapi_python_generated.models.note_tweet_result_data.NoteTweetResultData( - entity_set = twitter_openapi_python_generated.models.entities.Entities( - hashtags = [ - { } - ], - symbols = [ - { } - ], - urls = [ - twitter_openapi_python_generated.models.url.Url( - display_url = '', - expanded_url = '', - indices = , - url = '', ) - ], - user_mentions = [ - { } - ], ), + entity_set = , id = 'zA9LCSLv1C1ylmgd0/Y2TA5TkIRHRRA401iz1CiIykN3HUO6XMsJPGh8AsaLONiNuo2ZPKNpkAmJHONf1Elbsh0SR//=', - richtext = twitter_openapi_python_generated.models.note_tweet_result_rich_text.NoteTweetResultRichText( - richtext_tags = [ - twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag.NoteTweetResultRichTextTag( - from_index = 56, - richtext_types = [ - 'Bold' - ], - to_index = 56, ) - ], ), text = '', ), ), ), previous_counts = twitter_openapi_python_generated.models.tweet_previous_counts.TweetPreviousCounts( bookmark_count = 56, @@ -940,7 +1032,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: retweet_count = 56, ), quick_promote_eligibility = twitter_openapi_python_generated.models.quick_promote_eligibility.quick_promote_eligibility(), quoted_ref_result = twitter_openapi_python_generated.models.quoted_ref_result.QuotedRefResult(), - quoted_status_result = twitter_openapi_python_generated.models.item_result.ItemResult(), + quoted_status_result = , rest_id = '4', source = '', super_follows_reply_user_result = twitter_openapi_python_generated.models.super_follows_reply_user_result.SuperFollowsReplyUserResult( diff --git a/twitter_openapi_python_generated/test/test_user_tweets_data.py b/twitter_openapi_python_generated/test/test_user_tweets_data.py index a8b8e2a..bb9637d 100644 --- a/twitter_openapi_python_generated/test/test_user_tweets_data.py +++ b/twitter_openapi_python_generated/test/test_user_tweets_data.py @@ -37,15 +37,10 @@ def make_instance(self, include_optional) -> UserTweetsData: if include_optional: return UserTweetsData( user = twitter_openapi_python_generated.models.user_tweets_user.UserTweetsUser( - result = twitter_openapi_python_generated.models.user_tweets_result.UserTweetsResult( + result = twitter_openapi_python_generated.models.user_tweets_result_v1.UserTweetsResultV1( __typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ), ), ), ) + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ), ) ) else: return UserTweetsData( diff --git a/twitter_openapi_python_generated/test/test_user_tweets_response.py b/twitter_openapi_python_generated/test/test_user_tweets_response.py index 623b2de..b1ddcb6 100644 --- a/twitter_openapi_python_generated/test/test_user_tweets_response.py +++ b/twitter_openapi_python_generated/test/test_user_tweets_response.py @@ -38,15 +38,10 @@ def make_instance(self, include_optional) -> UserTweetsResponse: return UserTweetsResponse( data = twitter_openapi_python_generated.models.user_tweets_data.UserTweetsData( user = twitter_openapi_python_generated.models.user_tweets_user.UserTweetsUser( - result = twitter_openapi_python_generated.models.user_tweets_result.UserTweetsResult( + result = twitter_openapi_python_generated.models.user_tweets_result_v1.UserTweetsResultV1( __typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ), ), ), ), ), + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ), ), ), errors = [ twitter_openapi_python_generated.models.error_response.ErrorResponse( code = 56, @@ -79,15 +74,10 @@ def make_instance(self, include_optional) -> UserTweetsResponse: return UserTweetsResponse( data = twitter_openapi_python_generated.models.user_tweets_data.UserTweetsData( user = twitter_openapi_python_generated.models.user_tweets_user.UserTweetsUser( - result = twitter_openapi_python_generated.models.user_tweets_result.UserTweetsResult( + result = twitter_openapi_python_generated.models.user_tweets_result_v1.UserTweetsResultV1( __typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ), ), ), ), ), + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ), ), ), ) """ diff --git a/twitter_openapi_python_generated/test/test_list_tweets_timeline.py b/twitter_openapi_python_generated/test/test_user_tweets_result_v1.py similarity index 51% rename from twitter_openapi_python_generated/test/test_list_tweets_timeline.py rename to twitter_openapi_python_generated/test/test_user_tweets_result_v1.py index 795b5f9..6f01afc 100644 --- a/twitter_openapi_python_generated/test/test_list_tweets_timeline.py +++ b/twitter_openapi_python_generated/test/test_user_tweets_result_v1.py @@ -15,10 +15,10 @@ import unittest -from twitter_openapi_python_generated.models.list_tweets_timeline import ListTweetsTimeline +from twitter_openapi_python_generated.models.user_tweets_result_v1 import UserTweetsResultV1 -class TestListTweetsTimeline(unittest.TestCase): - """ListTweetsTimeline unit test stubs""" +class TestUserTweetsResultV1(unittest.TestCase): + """UserTweetsResultV1 unit test stubs""" def setUp(self): pass @@ -26,30 +26,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ListTweetsTimeline: - """Test ListTweetsTimeline + def make_instance(self, include_optional) -> UserTweetsResultV1: + """Test UserTweetsResultV1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ListTweetsTimeline` + # uncomment below to create an instance of `UserTweetsResultV1` """ - model = ListTweetsTimeline() + model = UserTweetsResultV1() if include_optional: - return ListTweetsTimeline( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ) + return UserTweetsResultV1( + typename = 'TimelineTweet', + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ) ) else: - return ListTweetsTimeline( + return UserTweetsResultV1( + typename = 'TimelineTweet', + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ) """ - def testListTweetsTimeline(self): - """Test ListTweetsTimeline""" + def testUserTweetsResultV1(self): + """Test UserTweetsResultV1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/twitter_openapi_python_generated/test/test_user_tweets_result.py b/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py similarity index 75% rename from twitter_openapi_python_generated/test/test_user_tweets_result.py rename to twitter_openapi_python_generated/test/test_user_tweets_result_v2.py index ad18eb6..0e83587 100644 --- a/twitter_openapi_python_generated/test/test_user_tweets_result.py +++ b/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py @@ -15,10 +15,10 @@ import unittest -from twitter_openapi_python_generated.models.user_tweets_result import UserTweetsResult +from twitter_openapi_python_generated.models.user_tweets_result_v2 import UserTweetsResultV2 -class TestUserTweetsResult(unittest.TestCase): - """UserTweetsResult unit test stubs""" +class TestUserTweetsResultV2(unittest.TestCase): + """UserTweetsResultV2 unit test stubs""" def setUp(self): pass @@ -26,18 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> UserTweetsResult: - """Test UserTweetsResult + def make_instance(self, include_optional) -> UserTweetsResultV2: + """Test UserTweetsResultV2 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `UserTweetsResult` + # uncomment below to create an instance of `UserTweetsResultV2` """ - model = UserTweetsResult() + model = UserTweetsResultV2() if include_optional: - return UserTweetsResult( + return UserTweetsResultV2( typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + timeline_v2 = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -46,9 +47,10 @@ def make_instance(self, include_optional) -> UserTweetsResult: response_objects = { }, ), ) ) else: - return UserTweetsResult( + return UserTweetsResultV2( typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( + timeline_v2 = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', timeline = twitter_openapi_python_generated.models.timeline.Timeline( instructions = [ null @@ -58,8 +60,8 @@ def make_instance(self, include_optional) -> UserTweetsResult: ) """ - def testUserTweetsResult(self): - """Test UserTweetsResult""" + def testUserTweetsResultV2(self): + """Test UserTweetsResultV2""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/twitter_openapi_python_generated/test/test_user_tweets_user.py b/twitter_openapi_python_generated/test/test_user_tweets_user.py index 9397dff..2db4d1f 100644 --- a/twitter_openapi_python_generated/test/test_user_tweets_user.py +++ b/twitter_openapi_python_generated/test/test_user_tweets_user.py @@ -36,27 +36,17 @@ def make_instance(self, include_optional) -> UserTweetsUser: model = UserTweetsUser() if include_optional: return UserTweetsUser( - result = twitter_openapi_python_generated.models.user_tweets_result.UserTweetsResult( + result = twitter_openapi_python_generated.models.user_tweets_result_v1.UserTweetsResultV1( __typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ), ), ) + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ) ) else: return UserTweetsUser( - result = twitter_openapi_python_generated.models.user_tweets_result.UserTweetsResult( + result = twitter_openapi_python_generated.models.user_tweets_result_v1.UserTweetsResultV1( __typename = 'TimelineTweet', - timeline_v2 = twitter_openapi_python_generated.models.timeline_v2.TimelineV2( - timeline = twitter_openapi_python_generated.models.timeline.Timeline( - instructions = [ - null - ], - metadata = { }, - response_objects = { }, ), ), ), + timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult( + id = '', ), ), ) """ diff --git a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml index 0117a8f..658d9d2 100644 --- a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml +++ b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml @@ -2,7 +2,7 @@ inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml outputDir: . packageName: twitter_openapi_python_generated -packageVersion: 0.0.31 +packageVersion: 0.0.32 packageUrl: https://github.com/fa0311/twitter_openapi_python_generated projectName: twitter_openapi_python_generated projectKeywords: twitter_openapi_python_generated diff --git a/twitter_openapi_python_generated/twitter-openapi b/twitter_openapi_python_generated/twitter-openapi index 227f4e3..54acb4a 160000 --- a/twitter_openapi_python_generated/twitter-openapi +++ b/twitter_openapi_python_generated/twitter-openapi @@ -1 +1 @@ -Subproject commit 227f4e3716dbb034500945c378bd7874b611f8f5 +Subproject commit 54acb4a0cef6aea969d3a1c75d37d58d80b0e5c0 diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py index c533dab..0b71434 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "0.0.31" +__version__ = "0.0.32" # import apis into sdk package from twitter_openapi_python_generated.api.default_api import DefaultApi @@ -41,10 +41,14 @@ from twitter_openapi_python_generated.exceptions import ApiException # import models into sdk package +from twitter_openapi_python_generated.models.about_community_result import AboutCommunityResult +from twitter_openapi_python_generated.models.about_community_results import AboutCommunityResults +from twitter_openapi_python_generated.models.about_community_tweet_data import AboutCommunityTweetData from twitter_openapi_python_generated.models.additional_media_info import AdditionalMediaInfo from twitter_openapi_python_generated.models.additional_media_info_call_to_actions import AdditionalMediaInfoCallToActions from twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url import AdditionalMediaInfoCallToActionsUrl from twitter_openapi_python_generated.models.allow_download_status import AllowDownloadStatus +from twitter_openapi_python_generated.models.analysis_results import AnalysisResults from twitter_openapi_python_generated.models.article import Article from twitter_openapi_python_generated.models.article_cover_media import ArticleCoverMedia from twitter_openapi_python_generated.models.article_cover_media_color_info import ArticleCoverMediaColorInfo @@ -70,6 +74,7 @@ from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo from twitter_openapi_python_generated.models.communities_actions import CommunitiesActions from twitter_openapi_python_generated.models.community import Community +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse from twitter_openapi_python_generated.models.community_actions import CommunityActions from twitter_openapi_python_generated.models.community_data import CommunityData from twitter_openapi_python_generated.models.community_delete_action_result import CommunityDeleteActionResult @@ -79,9 +84,11 @@ from twitter_openapi_python_generated.models.community_join_action_unavailable import CommunityJoinActionUnavailable from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship from twitter_openapi_python_generated.models.community_rule import CommunityRule +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse from twitter_openapi_python_generated.models.community_unpin_action_result import CommunityUnpinActionResult from twitter_openapi_python_generated.models.community_urls import CommunityUrls from twitter_openapi_python_generated.models.community_urls_permalink import CommunityUrlsPermalink @@ -126,6 +133,7 @@ from twitter_openapi_python_generated.models.follow_response_result import FollowResponseResult from twitter_openapi_python_generated.models.follow_response_user import FollowResponseUser from twitter_openapi_python_generated.models.follow_timeline import FollowTimeline +from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem from twitter_openapi_python_generated.models.highlight import Highlight @@ -137,11 +145,13 @@ from twitter_openapi_python_generated.models.item_result import ItemResult from twitter_openapi_python_generated.models.limited_action_results_data import LimitedActionResultsData from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse -from twitter_openapi_python_generated.models.list_tweets_timeline import ListTweetsTimeline from twitter_openapi_python_generated.models.list_tweets_timeline_data import ListTweetsTimelineData from twitter_openapi_python_generated.models.list_tweets_timeline_list import ListTweetsTimelineList from twitter_openapi_python_generated.models.location import Location from twitter_openapi_python_generated.models.media import Media +from twitter_openapi_python_generated.models.media_community_result import MediaCommunityResult +from twitter_openapi_python_generated.models.media_community_results import MediaCommunityResults +from twitter_openapi_python_generated.models.media_community_tweet_data import MediaCommunityTweetData from twitter_openapi_python_generated.models.media_extended import MediaExtended from twitter_openapi_python_generated.models.media_original_info import MediaOriginalInfo from twitter_openapi_python_generated.models.media_original_info_focus_rect import MediaOriginalInfoFocusRect @@ -163,6 +173,12 @@ from twitter_openapi_python_generated.models.note_tweet_result_media_inline_media import NoteTweetResultMediaInlineMedia from twitter_openapi_python_generated.models.note_tweet_result_rich_text import NoteTweetResultRichText from twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag import NoteTweetResultRichTextTag +from twitter_openapi_python_generated.models.notification_template import NotificationTemplate +from twitter_openapi_python_generated.models.notifications_result import NotificationsResult +from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse +from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults +from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 from twitter_openapi_python_generated.models.one_factor_login_eligibility import OneFactorLoginEligibility from twitter_openapi_python_generated.models.other_object_all import OtherObjectAll from twitter_openapi_python_generated.models.post_create_bookmark_request import PostCreateBookmarkRequest @@ -187,8 +203,12 @@ from twitter_openapi_python_generated.models.profile_response_data import ProfileResponseData from twitter_openapi_python_generated.models.quoted_ref_result import QuotedRefResult from twitter_openapi_python_generated.models.quoted_status_permalink import QuotedStatusPermalink +from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult +from twitter_openapi_python_generated.models.ranked_community_results import RankedCommunityResults +from twitter_openapi_python_generated.models.ranked_community_tweet_data import RankedCommunityTweetData from twitter_openapi_python_generated.models.retweet import Retweet from twitter_openapi_python_generated.models.retweet_legacy import RetweetLegacy +from twitter_openapi_python_generated.models.rich_message import RichMessage from twitter_openapi_python_generated.models.search_by_raw_query import SearchByRawQuery from twitter_openapi_python_generated.models.search_timeline import SearchTimeline from twitter_openapi_python_generated.models.search_timeline_data import SearchTimelineData @@ -212,16 +232,20 @@ from twitter_openapi_python_generated.models.timeline_add_entry import TimelineAddEntry from twitter_openapi_python_generated.models.timeline_add_to_module import TimelineAddToModule from twitter_openapi_python_generated.models.timeline_clear_cache import TimelineClearCache +from twitter_openapi_python_generated.models.timeline_clear_entries_unread_state import TimelineClearEntriesUnreadState from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity from twitter_openapi_python_generated.models.timeline_cover_behavior import TimelineCoverBehavior from twitter_openapi_python_generated.models.timeline_cover_behavior_url import TimelineCoverBehaviorUrl from twitter_openapi_python_generated.models.timeline_general_context import TimelineGeneralContext from twitter_openapi_python_generated.models.timeline_half_cover import TimelineHalfCover +from twitter_openapi_python_generated.models.timeline_mark_entries_unread_greater_than_sort_index import TimelineMarkEntriesUnreadGreaterThanSortIndex from twitter_openapi_python_generated.models.timeline_message_prompt import TimelineMessagePrompt +from twitter_openapi_python_generated.models.timeline_notification import TimelineNotification from twitter_openapi_python_generated.models.timeline_pin_entry import TimelinePinEntry from twitter_openapi_python_generated.models.timeline_prompt import TimelinePrompt from twitter_openapi_python_generated.models.timeline_replace_entry import TimelineReplaceEntry from twitter_openapi_python_generated.models.timeline_response import TimelineResponse +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from twitter_openapi_python_generated.models.timeline_show_alert import TimelineShowAlert from twitter_openapi_python_generated.models.timeline_show_alert_rich_text import TimelineShowAlertRichText from twitter_openapi_python_generated.models.timeline_show_cover import TimelineShowCover @@ -234,7 +258,6 @@ from twitter_openapi_python_generated.models.timeline_trend import TimelineTrend from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet from twitter_openapi_python_generated.models.timeline_user import TimelineUser -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 from twitter_openapi_python_generated.models.timestamp import Timestamp from twitter_openapi_python_generated.models.tombstone_entity import TombstoneEntity from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo @@ -315,7 +338,8 @@ from twitter_openapi_python_generated.models.user_tip_jar_settings import UserTipJarSettings from twitter_openapi_python_generated.models.user_tweets_data import UserTweetsData from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse -from twitter_openapi_python_generated.models.user_tweets_result import UserTweetsResult +from twitter_openapi_python_generated.models.user_tweets_result_v1 import UserTweetsResultV1 +from twitter_openapi_python_generated.models.user_tweets_result_v2 import UserTweetsResultV2 from twitter_openapi_python_generated.models.user_tweets_user import UserTweetsUser from twitter_openapi_python_generated.models.user_unavailable import UserUnavailable from twitter_openapi_python_generated.models.user_union import UserUnion diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py index bdefcc3..fcf37b5 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py @@ -19,7 +19,11 @@ from pydantic import StrictStr from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse from twitter_openapi_python_generated.models.search_timeline_response import SearchTimelineResponse from twitter_openapi_python_generated.models.timeline_response import TimelineResponse from twitter_openapi_python_generated.models.tweet_detail_response import TweetDetailResponse @@ -361,6 +365,957 @@ def _get_bookmarks_serialize( + @validate_call + def get_community_about_timeline( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CommunityAboutTimelineResponse: + """get_community_about_timeline + + get about of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_about_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityAboutTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_community_about_timeline_with_http_info( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CommunityAboutTimelineResponse]: + """get_community_about_timeline + + get about of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_about_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityAboutTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_community_about_timeline_without_preload_content( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_community_about_timeline + + get about of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_about_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityAboutTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_community_about_timeline_serialize( + self, + path_query_id, + variables, + features, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if path_query_id is not None: + _path_params['pathQueryId'] = path_query_id + # process the query parameters + if variables is not None: + + _query_params.append(('variables', variables)) + + if features is not None: + + _query_params.append(('features', features)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Accept', + 'ClientLanguage', + 'Priority', + 'Referer', + 'SecFetchDest', + 'SecChUaPlatform', + 'SecFetchMode', + 'CsrfToken', + 'ClientUuid', + 'BearerAuth', + 'GuestToken', + 'SecChUa', + 'CookieGt0', + 'ClientTransactionId', + 'ActiveUser', + 'CookieCt0', + 'UserAgent', + 'AcceptLanguage', + 'SecFetchSite', + 'AuthType', + 'CookieAuthToken', + 'SecChUaMobile', + 'AcceptEncoding' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_community_media_timeline( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CommunityMediaTimelineResponse: + """get_community_media_timeline + + get media list of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_media_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityMediaTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_community_media_timeline_with_http_info( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CommunityMediaTimelineResponse]: + """get_community_media_timeline + + get media list of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_media_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityMediaTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_community_media_timeline_without_preload_content( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_community_media_timeline + + get media list of community + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_media_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityMediaTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_community_media_timeline_serialize( + self, + path_query_id, + variables, + features, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if path_query_id is not None: + _path_params['pathQueryId'] = path_query_id + # process the query parameters + if variables is not None: + + _query_params.append(('variables', variables)) + + if features is not None: + + _query_params.append(('features', features)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Accept', + 'ClientLanguage', + 'Priority', + 'Referer', + 'SecFetchDest', + 'SecChUaPlatform', + 'SecFetchMode', + 'CsrfToken', + 'ClientUuid', + 'BearerAuth', + 'GuestToken', + 'SecChUa', + 'CookieGt0', + 'ClientTransactionId', + 'ActiveUser', + 'CookieCt0', + 'UserAgent', + 'AcceptLanguage', + 'SecFetchSite', + 'AuthType', + 'CookieAuthToken', + 'SecChUaMobile', + 'AcceptEncoding' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_community_tweets_timeline( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CommunityTweetsTimelineResponse: + """get_community_tweets_timeline + + get tweet list of community. rankingMode:[Recency, Relevance] + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_tweets_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityTweetsTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_community_tweets_timeline_with_http_info( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CommunityTweetsTimelineResponse]: + """get_community_tweets_timeline + + get tweet list of community. rankingMode:[Recency, Relevance] + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_tweets_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityTweetsTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_community_tweets_timeline_without_preload_content( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_community_tweets_timeline + + get tweet list of community. rankingMode:[Recency, Relevance] + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_community_tweets_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CommunityTweetsTimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_community_tweets_timeline_serialize( + self, + path_query_id, + variables, + features, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if path_query_id is not None: + _path_params['pathQueryId'] = path_query_id + # process the query parameters + if variables is not None: + + _query_params.append(('variables', variables)) + + if features is not None: + + _query_params.append(('features', features)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Accept', + 'ClientLanguage', + 'Priority', + 'Referer', + 'SecFetchDest', + 'SecChUaPlatform', + 'SecFetchMode', + 'CsrfToken', + 'ClientUuid', + 'BearerAuth', + 'GuestToken', + 'SecChUa', + 'CookieGt0', + 'ClientTransactionId', + 'ActiveUser', + 'CookieCt0', + 'UserAgent', + 'AcceptLanguage', + 'SecFetchSite', + 'AuthType', + 'CookieAuthToken', + 'SecChUaMobile', + 'AcceptEncoding' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_home_latest_timeline( self, @@ -380,7 +1335,324 @@ def get_home_latest_timeline( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> TimelineResponse: - """get_home_latest_timeline + """get_home_latest_timeline + + get tweet list of timeline + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_home_latest_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_home_latest_timeline_with_http_info( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TimelineResponse]: + """get_home_latest_timeline + + get tweet list of timeline + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_home_latest_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_home_latest_timeline_without_preload_content( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_home_latest_timeline + + get tweet list of timeline + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_home_latest_timeline_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TimelineResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_home_latest_timeline_serialize( + self, + path_query_id, + variables, + features, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if path_query_id is not None: + _path_params['pathQueryId'] = path_query_id + # process the query parameters + if variables is not None: + + _query_params.append(('variables', variables)) + + if features is not None: + + _query_params.append(('features', features)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Accept', + 'ClientLanguage', + 'Priority', + 'Referer', + 'SecFetchDest', + 'SecChUaPlatform', + 'SecFetchMode', + 'CsrfToken', + 'ClientUuid', + 'BearerAuth', + 'GuestToken', + 'SecChUa', + 'CookieGt0', + 'ClientTransactionId', + 'ActiveUser', + 'CookieCt0', + 'UserAgent', + 'AcceptLanguage', + 'SecFetchSite', + 'AuthType', + 'CookieAuthToken', + 'SecChUaMobile', + 'AcceptEncoding' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/graphql/{pathQueryId}/HomeLatestTimeline', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_home_timeline( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TimelineResponse: + """get_home_timeline get tweet list of timeline @@ -412,7 +1684,7 @@ def get_home_latest_timeline( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_latest_timeline_serialize( + _param = self._get_home_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -437,7 +1709,7 @@ def get_home_latest_timeline( @validate_call - def get_home_latest_timeline_with_http_info( + def get_home_timeline_with_http_info( self, path_query_id: StrictStr, variables: StrictStr, @@ -455,7 +1727,7 @@ def get_home_latest_timeline_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[TimelineResponse]: - """get_home_latest_timeline + """get_home_timeline get tweet list of timeline @@ -487,7 +1759,7 @@ def get_home_latest_timeline_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_latest_timeline_serialize( + _param = self._get_home_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -512,7 +1784,7 @@ def get_home_latest_timeline_with_http_info( @validate_call - def get_home_latest_timeline_without_preload_content( + def get_home_timeline_without_preload_content( self, path_query_id: StrictStr, variables: StrictStr, @@ -530,7 +1802,7 @@ def get_home_latest_timeline_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_home_latest_timeline + """get_home_timeline get tweet list of timeline @@ -562,7 +1834,7 @@ def get_home_latest_timeline_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_latest_timeline_serialize( + _param = self._get_home_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -582,7 +1854,7 @@ def get_home_latest_timeline_without_preload_content( return response_data.response - def _get_home_latest_timeline_serialize( + def _get_home_timeline_serialize( self, path_query_id, variables, @@ -662,7 +1934,7 @@ def _get_home_latest_timeline_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/graphql/{pathQueryId}/HomeLatestTimeline', + resource_path='/graphql/{pathQueryId}/HomeTimeline', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -679,11 +1951,12 @@ def _get_home_latest_timeline_serialize( @validate_call - def get_home_timeline( + def get_likes( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, + field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -696,10 +1969,10 @@ def get_home_timeline( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TimelineResponse: - """get_home_timeline + ) -> UserTweetsResponse: + """get_likes - get tweet list of timeline + get user likes tweets :param path_query_id: (required) :type path_query_id: str @@ -707,6 +1980,8 @@ def get_home_timeline( :type variables: str :param features: (required) :type features: str + :param field_toggles: (required) + :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -729,10 +2004,11 @@ def get_home_timeline( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_timeline_serialize( + _param = self._get_likes_serialize( path_query_id=path_query_id, variables=variables, features=features, + field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -740,7 +2016,7 @@ def get_home_timeline( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TimelineResponse", + '200': "UserTweetsResponse", } response_data = self.api_client.call_api( *_param, @@ -754,11 +2030,12 @@ def get_home_timeline( @validate_call - def get_home_timeline_with_http_info( + def get_likes_with_http_info( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, + field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -771,10 +2048,10 @@ def get_home_timeline_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TimelineResponse]: - """get_home_timeline + ) -> ApiResponse[UserTweetsResponse]: + """get_likes - get tweet list of timeline + get user likes tweets :param path_query_id: (required) :type path_query_id: str @@ -782,6 +2059,8 @@ def get_home_timeline_with_http_info( :type variables: str :param features: (required) :type features: str + :param field_toggles: (required) + :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -804,10 +2083,11 @@ def get_home_timeline_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_timeline_serialize( + _param = self._get_likes_serialize( path_query_id=path_query_id, variables=variables, features=features, + field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -815,7 +2095,7 @@ def get_home_timeline_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TimelineResponse", + '200': "UserTweetsResponse", } response_data = self.api_client.call_api( *_param, @@ -829,11 +2109,12 @@ def get_home_timeline_with_http_info( @validate_call - def get_home_timeline_without_preload_content( + def get_likes_without_preload_content( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, + field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -847,9 +2128,9 @@ def get_home_timeline_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_home_timeline + """get_likes - get tweet list of timeline + get user likes tweets :param path_query_id: (required) :type path_query_id: str @@ -857,6 +2138,8 @@ def get_home_timeline_without_preload_content( :type variables: str :param features: (required) :type features: str + :param field_toggles: (required) + :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -879,10 +2162,11 @@ def get_home_timeline_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_home_timeline_serialize( + _param = self._get_likes_serialize( path_query_id=path_query_id, variables=variables, features=features, + field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -890,7 +2174,7 @@ def get_home_timeline_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TimelineResponse", + '200': "UserTweetsResponse", } response_data = self.api_client.call_api( *_param, @@ -899,11 +2183,12 @@ def get_home_timeline_without_preload_content( return response_data.response - def _get_home_timeline_serialize( + def _get_likes_serialize( self, path_query_id, variables, features, + field_toggles, _request_auth, _content_type, _headers, @@ -936,6 +2221,10 @@ def _get_home_timeline_serialize( _query_params.append(('features', features)) + if field_toggles is not None: + + _query_params.append(('fieldToggles', field_toggles)) + # process the header parameters # process the form parameters # process the body parameter @@ -979,7 +2268,7 @@ def _get_home_timeline_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/graphql/{pathQueryId}/HomeTimeline', + resource_path='/graphql/{pathQueryId}/Likes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -996,12 +2285,11 @@ def _get_home_timeline_serialize( @validate_call - def get_likes( + def get_list_latest_tweets_timeline( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, - field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1014,10 +2302,10 @@ def get_likes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserTweetsResponse: - """get_likes + ) -> ListLatestTweetsTimelineResponse: + """get_list_latest_tweets_timeline - get user likes tweets + get tweet list of timeline :param path_query_id: (required) :type path_query_id: str @@ -1025,8 +2313,6 @@ def get_likes( :type variables: str :param features: (required) :type features: str - :param field_toggles: (required) - :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1049,11 +2335,10 @@ def get_likes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_likes_serialize( + _param = self._get_list_latest_tweets_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, - field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1061,7 +2346,7 @@ def get_likes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserTweetsResponse", + '200': "ListLatestTweetsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1075,12 +2360,11 @@ def get_likes( @validate_call - def get_likes_with_http_info( + def get_list_latest_tweets_timeline_with_http_info( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, - field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1093,10 +2377,10 @@ def get_likes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserTweetsResponse]: - """get_likes + ) -> ApiResponse[ListLatestTweetsTimelineResponse]: + """get_list_latest_tweets_timeline - get user likes tweets + get tweet list of timeline :param path_query_id: (required) :type path_query_id: str @@ -1104,8 +2388,6 @@ def get_likes_with_http_info( :type variables: str :param features: (required) :type features: str - :param field_toggles: (required) - :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1128,11 +2410,10 @@ def get_likes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_likes_serialize( + _param = self._get_list_latest_tweets_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, - field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1140,7 +2421,7 @@ def get_likes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserTweetsResponse", + '200': "ListLatestTweetsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1154,12 +2435,11 @@ def get_likes_with_http_info( @validate_call - def get_likes_without_preload_content( + def get_list_latest_tweets_timeline_without_preload_content( self, path_query_id: StrictStr, variables: StrictStr, features: StrictStr, - field_toggles: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1173,9 +2453,9 @@ def get_likes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_likes + """get_list_latest_tweets_timeline - get user likes tweets + get tweet list of timeline :param path_query_id: (required) :type path_query_id: str @@ -1183,8 +2463,6 @@ def get_likes_without_preload_content( :type variables: str :param features: (required) :type features: str - :param field_toggles: (required) - :type field_toggles: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1207,11 +2485,10 @@ def get_likes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_likes_serialize( + _param = self._get_list_latest_tweets_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, - field_toggles=field_toggles, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1219,7 +2496,7 @@ def get_likes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserTweetsResponse", + '200': "ListLatestTweetsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1228,12 +2505,11 @@ def get_likes_without_preload_content( return response_data.response - def _get_likes_serialize( + def _get_list_latest_tweets_timeline_serialize( self, path_query_id, variables, features, - field_toggles, _request_auth, _content_type, _headers, @@ -1266,10 +2542,6 @@ def _get_likes_serialize( _query_params.append(('features', features)) - if field_toggles is not None: - - _query_params.append(('fieldToggles', field_toggles)) - # process the header parameters # process the form parameters # process the body parameter @@ -1313,7 +2585,7 @@ def _get_likes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/graphql/{pathQueryId}/Likes', + resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1330,7 +2602,7 @@ def _get_likes_serialize( @validate_call - def get_list_latest_tweets_timeline( + def get_notifications_timeline( self, path_query_id: StrictStr, variables: StrictStr, @@ -1347,10 +2619,10 @@ def get_list_latest_tweets_timeline( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListLatestTweetsTimelineResponse: - """get_list_latest_tweets_timeline + ) -> NotificationsTimelineResponse: + """get_notifications_timeline - get tweet list of timeline + get notification list. timeline_type:[All, Verified, Mentions] :param path_query_id: (required) :type path_query_id: str @@ -1380,7 +2652,7 @@ def get_list_latest_tweets_timeline( :return: Returns the result object. """ # noqa: E501 - _param = self._get_list_latest_tweets_timeline_serialize( + _param = self._get_notifications_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -1391,7 +2663,7 @@ def get_list_latest_tweets_timeline( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListLatestTweetsTimelineResponse", + '200': "NotificationsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1405,7 +2677,7 @@ def get_list_latest_tweets_timeline( @validate_call - def get_list_latest_tweets_timeline_with_http_info( + def get_notifications_timeline_with_http_info( self, path_query_id: StrictStr, variables: StrictStr, @@ -1422,10 +2694,10 @@ def get_list_latest_tweets_timeline_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListLatestTweetsTimelineResponse]: - """get_list_latest_tweets_timeline + ) -> ApiResponse[NotificationsTimelineResponse]: + """get_notifications_timeline - get tweet list of timeline + get notification list. timeline_type:[All, Verified, Mentions] :param path_query_id: (required) :type path_query_id: str @@ -1455,7 +2727,7 @@ def get_list_latest_tweets_timeline_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_list_latest_tweets_timeline_serialize( + _param = self._get_notifications_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -1466,7 +2738,7 @@ def get_list_latest_tweets_timeline_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListLatestTweetsTimelineResponse", + '200': "NotificationsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1480,7 +2752,7 @@ def get_list_latest_tweets_timeline_with_http_info( @validate_call - def get_list_latest_tweets_timeline_without_preload_content( + def get_notifications_timeline_without_preload_content( self, path_query_id: StrictStr, variables: StrictStr, @@ -1498,9 +2770,9 @@ def get_list_latest_tweets_timeline_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_list_latest_tweets_timeline + """get_notifications_timeline - get tweet list of timeline + get notification list. timeline_type:[All, Verified, Mentions] :param path_query_id: (required) :type path_query_id: str @@ -1530,7 +2802,7 @@ def get_list_latest_tweets_timeline_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_list_latest_tweets_timeline_serialize( + _param = self._get_notifications_timeline_serialize( path_query_id=path_query_id, variables=variables, features=features, @@ -1541,7 +2813,7 @@ def get_list_latest_tweets_timeline_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListLatestTweetsTimelineResponse", + '200': "NotificationsTimelineResponse", } response_data = self.api_client.call_api( *_param, @@ -1550,7 +2822,7 @@ def get_list_latest_tweets_timeline_without_preload_content( return response_data.response - def _get_list_latest_tweets_timeline_serialize( + def _get_notifications_timeline_serialize( self, path_query_id, variables, @@ -1630,7 +2902,7 @@ def _get_list_latest_tweets_timeline_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline', + resource_path='/graphql/{pathQueryId}/NotificationsTimeline', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py index b0ffc5e..288a7a5 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.31/python' + self.user_agent = 'OpenAPI-Generator/0.0.32/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py index f48b11e..5eaecf9 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py @@ -750,7 +750,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.1\n"\ - "SDK Package Version: 0.0.31".\ + "SDK Package Version: 0.0.32".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py index 868e93f..d962bee 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py @@ -15,10 +15,14 @@ # import models into model package +from twitter_openapi_python_generated.models.about_community_result import AboutCommunityResult +from twitter_openapi_python_generated.models.about_community_results import AboutCommunityResults +from twitter_openapi_python_generated.models.about_community_tweet_data import AboutCommunityTweetData from twitter_openapi_python_generated.models.additional_media_info import AdditionalMediaInfo from twitter_openapi_python_generated.models.additional_media_info_call_to_actions import AdditionalMediaInfoCallToActions from twitter_openapi_python_generated.models.additional_media_info_call_to_actions_url import AdditionalMediaInfoCallToActionsUrl from twitter_openapi_python_generated.models.allow_download_status import AllowDownloadStatus +from twitter_openapi_python_generated.models.analysis_results import AnalysisResults from twitter_openapi_python_generated.models.article import Article from twitter_openapi_python_generated.models.article_cover_media import ArticleCoverMedia from twitter_openapi_python_generated.models.article_cover_media_color_info import ArticleCoverMediaColorInfo @@ -44,6 +48,7 @@ from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo from twitter_openapi_python_generated.models.communities_actions import CommunitiesActions from twitter_openapi_python_generated.models.community import Community +from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse from twitter_openapi_python_generated.models.community_actions import CommunityActions from twitter_openapi_python_generated.models.community_data import CommunityData from twitter_openapi_python_generated.models.community_delete_action_result import CommunityDeleteActionResult @@ -53,9 +58,11 @@ from twitter_openapi_python_generated.models.community_join_action_unavailable import CommunityJoinActionUnavailable from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult +from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship from twitter_openapi_python_generated.models.community_rule import CommunityRule +from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse from twitter_openapi_python_generated.models.community_unpin_action_result import CommunityUnpinActionResult from twitter_openapi_python_generated.models.community_urls import CommunityUrls from twitter_openapi_python_generated.models.community_urls_permalink import CommunityUrlsPermalink @@ -100,6 +107,7 @@ from twitter_openapi_python_generated.models.follow_response_result import FollowResponseResult from twitter_openapi_python_generated.models.follow_response_user import FollowResponseUser from twitter_openapi_python_generated.models.follow_timeline import FollowTimeline +from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem from twitter_openapi_python_generated.models.highlight import Highlight @@ -111,11 +119,13 @@ from twitter_openapi_python_generated.models.item_result import ItemResult from twitter_openapi_python_generated.models.limited_action_results_data import LimitedActionResultsData from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse -from twitter_openapi_python_generated.models.list_tweets_timeline import ListTweetsTimeline from twitter_openapi_python_generated.models.list_tweets_timeline_data import ListTweetsTimelineData from twitter_openapi_python_generated.models.list_tweets_timeline_list import ListTweetsTimelineList from twitter_openapi_python_generated.models.location import Location from twitter_openapi_python_generated.models.media import Media +from twitter_openapi_python_generated.models.media_community_result import MediaCommunityResult +from twitter_openapi_python_generated.models.media_community_results import MediaCommunityResults +from twitter_openapi_python_generated.models.media_community_tweet_data import MediaCommunityTweetData from twitter_openapi_python_generated.models.media_extended import MediaExtended from twitter_openapi_python_generated.models.media_original_info import MediaOriginalInfo from twitter_openapi_python_generated.models.media_original_info_focus_rect import MediaOriginalInfoFocusRect @@ -137,6 +147,12 @@ from twitter_openapi_python_generated.models.note_tweet_result_media_inline_media import NoteTweetResultMediaInlineMedia from twitter_openapi_python_generated.models.note_tweet_result_rich_text import NoteTweetResultRichText from twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag import NoteTweetResultRichTextTag +from twitter_openapi_python_generated.models.notification_template import NotificationTemplate +from twitter_openapi_python_generated.models.notifications_result import NotificationsResult +from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData +from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse +from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults +from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 from twitter_openapi_python_generated.models.one_factor_login_eligibility import OneFactorLoginEligibility from twitter_openapi_python_generated.models.other_object_all import OtherObjectAll from twitter_openapi_python_generated.models.post_create_bookmark_request import PostCreateBookmarkRequest @@ -161,8 +177,12 @@ from twitter_openapi_python_generated.models.profile_response_data import ProfileResponseData from twitter_openapi_python_generated.models.quoted_ref_result import QuotedRefResult from twitter_openapi_python_generated.models.quoted_status_permalink import QuotedStatusPermalink +from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult +from twitter_openapi_python_generated.models.ranked_community_results import RankedCommunityResults +from twitter_openapi_python_generated.models.ranked_community_tweet_data import RankedCommunityTweetData from twitter_openapi_python_generated.models.retweet import Retweet from twitter_openapi_python_generated.models.retweet_legacy import RetweetLegacy +from twitter_openapi_python_generated.models.rich_message import RichMessage from twitter_openapi_python_generated.models.search_by_raw_query import SearchByRawQuery from twitter_openapi_python_generated.models.search_timeline import SearchTimeline from twitter_openapi_python_generated.models.search_timeline_data import SearchTimelineData @@ -186,16 +206,20 @@ from twitter_openapi_python_generated.models.timeline_add_entry import TimelineAddEntry from twitter_openapi_python_generated.models.timeline_add_to_module import TimelineAddToModule from twitter_openapi_python_generated.models.timeline_clear_cache import TimelineClearCache +from twitter_openapi_python_generated.models.timeline_clear_entries_unread_state import TimelineClearEntriesUnreadState from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity from twitter_openapi_python_generated.models.timeline_cover_behavior import TimelineCoverBehavior from twitter_openapi_python_generated.models.timeline_cover_behavior_url import TimelineCoverBehaviorUrl from twitter_openapi_python_generated.models.timeline_general_context import TimelineGeneralContext from twitter_openapi_python_generated.models.timeline_half_cover import TimelineHalfCover +from twitter_openapi_python_generated.models.timeline_mark_entries_unread_greater_than_sort_index import TimelineMarkEntriesUnreadGreaterThanSortIndex from twitter_openapi_python_generated.models.timeline_message_prompt import TimelineMessagePrompt +from twitter_openapi_python_generated.models.timeline_notification import TimelineNotification from twitter_openapi_python_generated.models.timeline_pin_entry import TimelinePinEntry from twitter_openapi_python_generated.models.timeline_prompt import TimelinePrompt from twitter_openapi_python_generated.models.timeline_replace_entry import TimelineReplaceEntry from twitter_openapi_python_generated.models.timeline_response import TimelineResponse +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from twitter_openapi_python_generated.models.timeline_show_alert import TimelineShowAlert from twitter_openapi_python_generated.models.timeline_show_alert_rich_text import TimelineShowAlertRichText from twitter_openapi_python_generated.models.timeline_show_cover import TimelineShowCover @@ -208,7 +232,6 @@ from twitter_openapi_python_generated.models.timeline_trend import TimelineTrend from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet from twitter_openapi_python_generated.models.timeline_user import TimelineUser -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 from twitter_openapi_python_generated.models.timestamp import Timestamp from twitter_openapi_python_generated.models.tombstone_entity import TombstoneEntity from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo @@ -289,7 +312,8 @@ from twitter_openapi_python_generated.models.user_tip_jar_settings import UserTipJarSettings from twitter_openapi_python_generated.models.user_tweets_data import UserTweetsData from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse -from twitter_openapi_python_generated.models.user_tweets_result import UserTweetsResult +from twitter_openapi_python_generated.models.user_tweets_result_v1 import UserTweetsResultV1 +from twitter_openapi_python_generated.models.user_tweets_result_v2 import UserTweetsResultV2 from twitter_openapi_python_generated.models.user_tweets_user import UserTweetsUser from twitter_openapi_python_generated.models.user_unavailable import UserUnavailable from twitter_openapi_python_generated.models.user_union import UserUnion diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_result.py new file mode 100644 index 0000000..c14d1e1 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_result.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.timeline_result import TimelineResult +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class AboutCommunityResult(BaseModel): + """ + AboutCommunityResult + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + about_timeline: TimelineResult + __properties: ClassVar[List[str]] = ["__typename", "about_timeline"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AboutCommunityResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of about_timeline + if self.about_timeline: + _dict['about_timeline'] = self.about_timeline.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AboutCommunityResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "about_timeline": TimelineResult.from_dict(obj["about_timeline"]) if obj.get("about_timeline") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_results.py similarity index 76% rename from twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline.py rename to twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_results.py index ae5cd47..2fae2f1 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_results.py @@ -19,17 +19,17 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from twitter_openapi_python_generated.models.timeline import Timeline +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.about_community_result import AboutCommunityResult from typing import Optional, Set from typing_extensions import Self -class ListTweetsTimeline(BaseModel): +class AboutCommunityResults(BaseModel): """ - ListTweetsTimeline + AboutCommunityResults """ # noqa: E501 - timeline: Optional[Timeline] = None - __properties: ClassVar[List[str]] = ["timeline"] + result: AboutCommunityResult + __properties: ClassVar[List[str]] = ["result"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListTweetsTimeline from a JSON string""" + """Create an instance of AboutCommunityResults from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,14 +70,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of timeline - if self.timeline: - _dict['timeline'] = self.timeline.to_dict() + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListTweetsTimeline from a dict""" + """Create an instance of AboutCommunityResults from a dict""" if obj is None: return None @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "timeline": Timeline.from_dict(obj["timeline"]) if obj.get("timeline") is not None else None + "result": AboutCommunityResult.from_dict(obj["result"]) if obj.get("result") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_tweet_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_tweet_data.py new file mode 100644 index 0000000..142fed1 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/about_community_tweet_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.about_community_results import AboutCommunityResults +from typing import Optional, Set +from typing_extensions import Self + +class AboutCommunityTweetData(BaseModel): + """ + AboutCommunityTweetData + """ # noqa: E501 + community_results: AboutCommunityResults = Field(alias="communityResults") + __properties: ClassVar[List[str]] = ["communityResults"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AboutCommunityTweetData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of community_results + if self.community_results: + _dict['communityResults'] = self.community_results.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AboutCommunityTweetData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "communityResults": AboutCommunityResults.from_dict(obj["communityResults"]) if obj.get("communityResults") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/analysis_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/analysis_results.py new file mode 100644 index 0000000..3b21727 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/analysis_results.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisResults(BaseModel): + """ + AnalysisResults + """ # noqa: E501 + result: Tweet + __properties: ClassVar[List[str]] = ["result"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisResults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisResults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": Tweet.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + +from twitter_openapi_python_generated.models.tweet import Tweet +# TODO: Rewrite to not use raise_errors +AnalysisResults.model_rebuild(raise_errors=False) + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_pivot.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_pivot.py index e76824d..1eb2804 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_pivot.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_pivot.py @@ -39,8 +39,9 @@ class BirdwatchPivot(BaseModel): shorttitle: Optional[StrictStr] = None subtitle: Optional[BirdwatchPivotSubtitle] = None title: StrictStr + title_detail: Optional[StrictStr] = Field(default=None, alias="titleDetail") visual_style: Optional[StrictStr] = Field(default=None, alias="visualStyle") - __properties: ClassVar[List[str]] = ["callToAction", "destinationUrl", "footer", "iconType", "note", "shorttitle", "subtitle", "title", "visualStyle"] + __properties: ClassVar[List[str]] = ["callToAction", "destinationUrl", "footer", "iconType", "note", "shorttitle", "subtitle", "title", "titleDetail", "visualStyle"] @field_validator('icon_type') def icon_type_validate_enum(cls, value): @@ -130,6 +131,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "shorttitle": obj.get("shorttitle"), "subtitle": BirdwatchPivotSubtitle.from_dict(obj["subtitle"]) if obj.get("subtitle") is not None else None, "title": obj.get("title"), + "titleDetail": obj.get("titleDetail"), "visualStyle": obj.get("visualStyle") }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_about_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_about_timeline_response.py new file mode 100644 index 0000000..a4b98c8 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_about_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.about_community_tweet_data import AboutCommunityTweetData +from twitter_openapi_python_generated.models.error_response import ErrorResponse +from typing import Optional, Set +from typing_extensions import Self + +class CommunityAboutTimelineResponse(BaseModel): + """ + CommunityAboutTimelineResponse + """ # noqa: E501 + data: AboutCommunityTweetData + errors: Optional[List[ErrorResponse]] = None + __properties: ClassVar[List[str]] = ["data", "errors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommunityAboutTimelineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommunityAboutTimelineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": AboutCommunityTweetData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_media_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_media_timeline_response.py new file mode 100644 index 0000000..ca192a2 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_media_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.error_response import ErrorResponse +from twitter_openapi_python_generated.models.media_community_tweet_data import MediaCommunityTweetData +from typing import Optional, Set +from typing_extensions import Self + +class CommunityMediaTimelineResponse(BaseModel): + """ + CommunityMediaTimelineResponse + """ # noqa: E501 + data: MediaCommunityTweetData + errors: Optional[List[ErrorResponse]] = None + __properties: ClassVar[List[str]] = ["data", "errors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommunityMediaTimelineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommunityMediaTimelineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": MediaCommunityTweetData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_tweets_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_tweets_timeline_response.py new file mode 100644 index 0000000..dc9253b --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_tweets_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.error_response import ErrorResponse +from twitter_openapi_python_generated.models.ranked_community_tweet_data import RankedCommunityTweetData +from typing import Optional, Set +from typing_extensions import Self + +class CommunityTweetsTimelineResponse(BaseModel): + """ + CommunityTweetsTimelineResponse + """ # noqa: E501 + data: RankedCommunityTweetData + errors: Optional[List[ErrorResponse]] = None + __properties: ClassVar[List[str]] = ["data", "errors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommunityTweetsTimelineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommunityTweetsTimelineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": RankedCommunityTweetData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py index 8817f49..1a203ca 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py @@ -34,6 +34,8 @@ class ContentItemType(str, Enum): TIMELINEMESSAGEPROMPT = 'TimelineMessagePrompt' TIMELINECOMMUNITY = 'TimelineCommunity' TIMELINETOMBSTONE = 'TimelineTombstone' + TIMELINETREND = 'TimelineTrend' + TIMELINENOTIFICATION = 'TimelineNotification' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_image_annotation.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_image_annotation.py new file mode 100644 index 0000000..987f33d --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_image_annotation.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class GrokImageAnnotation(BaseModel): + """ + GrokImageAnnotation + """ # noqa: E501 + prompt: StrictStr + upsampled_prompt: StrictStr + __properties: ClassVar[List[str]] = ["prompt", "upsampled_prompt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GrokImageAnnotation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GrokImageAnnotation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prompt": obj.get("prompt"), + "upsampled_prompt": obj.get("upsampled_prompt") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment.py index 795ad8e..543751c 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment.py @@ -20,7 +20,6 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem from typing import Optional, Set from typing_extensions import Self @@ -93,4 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: }) return _obj +from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem +# TODO: Rewrite to not use raise_errors +GrokShareAttachment.model_rebuild(raise_errors=False) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment_item.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment_item.py index a8fdb3c..1a0c741 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment_item.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_share_attachment_item.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,9 +27,10 @@ class GrokShareAttachmentItem(BaseModel): """ GrokShareAttachmentItem """ # noqa: E501 + analysis_post_id_results: Optional[AnalysisResults] = None media_urls: List[StrictStr] message: StrictStr - __properties: ClassVar[List[str]] = ["media_urls", "message"] + __properties: ClassVar[List[str]] = ["analysis_post_id_results", "media_urls", "message"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of analysis_post_id_results + if self.analysis_post_id_results: + _dict['analysis_post_id_results'] = self.analysis_post_id_results.to_dict() return _dict @classmethod @@ -82,9 +86,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "analysis_post_id_results": AnalysisResults.from_dict(obj["analysis_post_id_results"]) if obj.get("analysis_post_id_results") is not None else None, "media_urls": obj.get("media_urls"), "message": obj.get("message") }) return _obj +from twitter_openapi_python_generated.models.analysis_results import AnalysisResults +# TODO: Rewrite to not use raise_errors +GrokShareAttachmentItem.model_rebuild(raise_errors=False) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/home_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/home_timeline_response_data.py index aa40ce3..93fc0f9 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/home_timeline_response_data.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/home_timeline_response_data.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from twitter_openapi_python_generated.models.home_timeline_home import HomeTimelineHome from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class HomeTimelineResponseData(BaseModel): """ HomeTimelineResponseData """ # noqa: E501 - home: Optional[HomeTimelineHome] = None + home: HomeTimelineHome __properties: ClassVar[List[str]] = ["home"] model_config = ConfigDict( diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_type.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_type.py index c818173..07fc833 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_type.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_type.py @@ -35,6 +35,8 @@ class InstructionType(str, Enum): TIMELINESHOWALERT = 'TimelineShowAlert' TIMELINETERMINATETIMELINE = 'TimelineTerminateTimeline' TIMELINESHOWCOVER = 'TimelineShowCover' + TIMELINECLEARENTRIESUNREADSTATE = 'TimelineClearEntriesUnreadState' + TIMELINEMARKENTRIESUNREADGREATERTHANSORTINDEX = 'TimelineMarkEntriesUnreadGreaterThanSortIndex' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_union.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_union.py index 5785f26..59eb7f9 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_union.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/instruction_union.py @@ -21,6 +21,8 @@ from twitter_openapi_python_generated.models.timeline_add_entries import TimelineAddEntries from twitter_openapi_python_generated.models.timeline_add_to_module import TimelineAddToModule from twitter_openapi_python_generated.models.timeline_clear_cache import TimelineClearCache +from twitter_openapi_python_generated.models.timeline_clear_entries_unread_state import TimelineClearEntriesUnreadState +from twitter_openapi_python_generated.models.timeline_mark_entries_unread_greater_than_sort_index import TimelineMarkEntriesUnreadGreaterThanSortIndex from twitter_openapi_python_generated.models.timeline_pin_entry import TimelinePinEntry from twitter_openapi_python_generated.models.timeline_replace_entry import TimelineReplaceEntry from twitter_openapi_python_generated.models.timeline_show_alert import TimelineShowAlert @@ -30,7 +32,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -INSTRUCTIONUNION_ONE_OF_SCHEMAS = ["TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline"] +INSTRUCTIONUNION_ONE_OF_SCHEMAS = ["TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelineClearEntriesUnreadState", "TimelineMarkEntriesUnreadGreaterThanSortIndex", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline"] class InstructionUnion(BaseModel): """ @@ -52,8 +54,12 @@ class InstructionUnion(BaseModel): oneof_schema_7_validator: Optional[TimelineTerminateTimeline] = None # data type: TimelineShowCover oneof_schema_8_validator: Optional[TimelineShowCover] = None - actual_instance: Optional[Union[TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline]] = None - one_of_schemas: Set[str] = { "TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline" } + # data type: TimelineClearEntriesUnreadState + oneof_schema_9_validator: Optional[TimelineClearEntriesUnreadState] = None + # data type: TimelineMarkEntriesUnreadGreaterThanSortIndex + oneof_schema_10_validator: Optional[TimelineMarkEntriesUnreadGreaterThanSortIndex] = None + actual_instance: Optional[Union[TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline]] = None + one_of_schemas: Set[str] = { "TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelineClearEntriesUnreadState", "TimelineMarkEntriesUnreadGreaterThanSortIndex", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline" } model_config = ConfigDict( validate_assignment=True, @@ -119,12 +125,22 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineShowCover`") else: match += 1 + # validate data type: TimelineClearEntriesUnreadState + if not isinstance(v, TimelineClearEntriesUnreadState): + error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineClearEntriesUnreadState`") + else: + match += 1 + # validate data type: TimelineMarkEntriesUnreadGreaterThanSortIndex + if not isinstance(v, TimelineMarkEntriesUnreadGreaterThanSortIndex): + error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineMarkEntriesUnreadGreaterThanSortIndex`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) else: return v @@ -159,6 +175,16 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TimelineClearCache.from_json(json_str) return instance + # check if data type is `TimelineClearEntriesUnreadState` + if _data_type == "TimelineClearEntriesUnreadState": + instance.actual_instance = TimelineClearEntriesUnreadState.from_json(json_str) + return instance + + # check if data type is `TimelineMarkEntriesUnreadGreaterThanSortIndex` + if _data_type == "TimelineMarkEntriesUnreadGreaterThanSortIndex": + instance.actual_instance = TimelineMarkEntriesUnreadGreaterThanSortIndex.from_json(json_str) + return instance + # check if data type is `TimelinePinEntry` if _data_type == "TimelinePinEntry": instance.actual_instance = TimelinePinEntry.from_json(json_str) @@ -232,13 +258,25 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into TimelineClearEntriesUnreadState + try: + instance.actual_instance = TimelineClearEntriesUnreadState.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TimelineMarkEntriesUnreadGreaterThanSortIndex + try: + instance.actual_instance = TimelineMarkEntriesUnreadGreaterThanSortIndex.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into InstructionUnion with oneOf schemas: TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline. Details: " + ", ".join(error_messages)) else: return instance @@ -252,7 +290,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelineClearEntriesUnreadState, TimelineMarkEntriesUnreadGreaterThanSortIndex, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py index b168144..a7711db 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py @@ -20,6 +20,7 @@ from typing import Any, List, Optional from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity from twitter_openapi_python_generated.models.timeline_message_prompt import TimelineMessagePrompt +from twitter_openapi_python_generated.models.timeline_notification import TimelineNotification from twitter_openapi_python_generated.models.timeline_prompt import TimelinePrompt from twitter_openapi_python_generated.models.timeline_timeline_cursor import TimelineTimelineCursor from twitter_openapi_python_generated.models.timeline_tombstone import TimelineTombstone @@ -30,7 +31,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser"] +ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser"] class ItemContentUnion(BaseModel): """ @@ -52,8 +53,10 @@ class ItemContentUnion(BaseModel): oneof_schema_7_validator: Optional[TimelineTombstone] = None # data type: TimelineTrend oneof_schema_8_validator: Optional[TimelineTrend] = None - actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]] = None - one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser" } + # data type: TimelineNotification + oneof_schema_9_validator: Optional[TimelineNotification] = None + actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]] = None + one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser" } model_config = ConfigDict( validate_assignment=True, @@ -119,12 +122,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineTrend`") else: match += 1 + # validate data type: TimelineNotification + if not isinstance(v, TimelineNotification): + error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineNotification`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return v @@ -154,6 +162,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TimelineMessagePrompt.from_json(json_str) return instance + # check if data type is `TimelineNotification` + if _data_type == "TimelineNotification": + instance.actual_instance = TimelineNotification.from_json(json_str) + return instance + # check if data type is `TimelinePrompt` if _data_type == "TimelinePrompt": instance.actual_instance = TimelinePrompt.from_json(json_str) @@ -232,13 +245,19 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into TimelineNotification + try: + instance.actual_instance = TimelineNotification.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return instance @@ -252,7 +271,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_data.py index df8a4e0..f48258d 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_data.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_data.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from twitter_openapi_python_generated.models.list_tweets_timeline_list import ListTweetsTimelineList from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class ListTweetsTimelineData(BaseModel): """ ListTweetsTimelineData """ # noqa: E501 - list: Optional[ListTweetsTimelineList] = None + list: ListTweetsTimelineList __properties: ClassVar[List[str]] = ["list"] model_config = ConfigDict( diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_list.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_list.py index dc6f6aa..ee0852b 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_list.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_tweets_timeline_list.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from twitter_openapi_python_generated.models.list_tweets_timeline import ListTweetsTimeline +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class ListTweetsTimelineList(BaseModel): """ ListTweetsTimelineList """ # noqa: E501 - tweets_timeline: ListTweetsTimeline + tweets_timeline: TimelineResult __properties: ClassVar[List[str]] = ["tweets_timeline"] model_config = ConfigDict( @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "tweets_timeline": ListTweetsTimeline.from_dict(obj["tweets_timeline"]) if obj.get("tweets_timeline") is not None else None + "tweets_timeline": TimelineResult.from_dict(obj["tweets_timeline"]) if obj.get("tweets_timeline") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_result.py new file mode 100644 index 0000000..b68c924 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_result.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.timeline_result import TimelineResult +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class MediaCommunityResult(BaseModel): + """ + MediaCommunityResult + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + community_media_timeline: TimelineResult + __properties: ClassVar[List[str]] = ["__typename", "community_media_timeline"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MediaCommunityResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of community_media_timeline + if self.community_media_timeline: + _dict['community_media_timeline'] = self.community_media_timeline.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MediaCommunityResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "community_media_timeline": TimelineResult.from_dict(obj["community_media_timeline"]) if obj.get("community_media_timeline") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_results.py new file mode 100644 index 0000000..cdb018d --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_results.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.media_community_result import MediaCommunityResult +from typing import Optional, Set +from typing_extensions import Self + +class MediaCommunityResults(BaseModel): + """ + MediaCommunityResults + """ # noqa: E501 + result: MediaCommunityResult + __properties: ClassVar[List[str]] = ["result"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MediaCommunityResults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MediaCommunityResults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": MediaCommunityResult.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_tweet_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_tweet_data.py new file mode 100644 index 0000000..66b2418 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_community_tweet_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.media_community_results import MediaCommunityResults +from typing import Optional, Set +from typing_extensions import Self + +class MediaCommunityTweetData(BaseModel): + """ + MediaCommunityTweetData + """ # noqa: E501 + community_results: MediaCommunityResults = Field(alias="communityResults") + __properties: ClassVar[List[str]] = ["communityResults"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MediaCommunityTweetData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of community_results + if self.community_results: + _dict['communityResults'] = self.community_results.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MediaCommunityTweetData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "communityResults": MediaCommunityResults.from_dict(obj["communityResults"]) if obj.get("communityResults") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_result.py index 9da2627..5f1c715 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_result.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/media_result.py @@ -19,7 +19,8 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,9 @@ class MediaResult(BaseModel): """ MediaResult """ # noqa: E501 + grok_image_annotation: Optional[GrokImageAnnotation] = None media_key: StrictStr - __properties: ClassVar[List[str]] = ["media_key"] + __properties: ClassVar[List[str]] = ["grok_image_annotation", "media_key"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of grok_image_annotation + if self.grok_image_annotation: + _dict['grok_image_annotation'] = self.grok_image_annotation.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "grok_image_annotation": GrokImageAnnotation.from_dict(obj["grok_image_annotation"]) if obj.get("grok_image_annotation") is not None else None, "media_key": obj.get("media_key") }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py index 6b55c5c..a2b095e 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py @@ -37,8 +37,8 @@ class ModuleItem(BaseModel): @field_validator('entry_id') def entry_id_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+", value): - raise ValueError(r"must validate the regular expression /^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+/") + if not re.match(r"^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+", value): + raise ValueError(r"must validate the regular expression /^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+/") return value model_config = ConfigDict( diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_template.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_template.py new file mode 100644 index 0000000..5172659 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_template.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class NotificationTemplate(BaseModel): + """ + NotificationTemplate + """ # noqa: E501 + typename: Optional[TypeName] = Field(default=None, alias="__typename") + from_users: Optional[List[Dict[str, Any]]] = None + target_objects: Optional[List[Dict[str, Any]]] = None + __properties: ClassVar[List[str]] = ["__typename", "from_users", "target_objects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "from_users": obj.get("from_users"), + "target_objects": obj.get("target_objects") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_result.py new file mode 100644 index 0000000..cf5b290 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_result.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from twitter_openapi_python_generated.models.timeline_result import TimelineResult +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class NotificationsResult(BaseModel): + """ + NotificationsResult + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + notification_timeline: TimelineResult + rest_id: Annotated[str, Field(strict=True)] + __properties: ClassVar[List[str]] = ["__typename", "notification_timeline", "rest_id"] + + @field_validator('rest_id') + def rest_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[0-9]+$", value): + raise ValueError(r"must validate the regular expression /^[0-9]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationsResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of notification_timeline + if self.notification_timeline: + _dict['notification_timeline'] = self.notification_timeline.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationsResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "notification_timeline": TimelineResult.from_dict(obj["notification_timeline"]) if obj.get("notification_timeline") is not None else None, + "rest_id": obj.get("rest_id") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_data.py new file mode 100644 index 0000000..434162e --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 +from typing import Optional, Set +from typing_extensions import Self + +class NotificationsTimelineData(BaseModel): + """ + NotificationsTimelineData + """ # noqa: E501 + viewer_v2: NotificationsViewerV2 + __properties: ClassVar[List[str]] = ["viewer_v2"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationsTimelineData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of viewer_v2 + if self.viewer_v2: + _dict['viewer_v2'] = self.viewer_v2.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationsTimelineData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "viewer_v2": NotificationsViewerV2.from_dict(obj["viewer_v2"]) if obj.get("viewer_v2") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_response.py new file mode 100644 index 0000000..692d72b --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_timeline_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.error_response import ErrorResponse +from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData +from typing import Optional, Set +from typing_extensions import Self + +class NotificationsTimelineResponse(BaseModel): + """ + NotificationsTimelineResponse + """ # noqa: E501 + data: NotificationsTimelineData + errors: Optional[List[ErrorResponse]] = None + __properties: ClassVar[List[str]] = ["data", "errors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationsTimelineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationsTimelineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": NotificationsTimelineData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_user_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_user_results.py new file mode 100644 index 0000000..bc94de0 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_user_results.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.notifications_result import NotificationsResult +from typing import Optional, Set +from typing_extensions import Self + +class NotificationsUserResults(BaseModel): + """ + NotificationsUserResults + """ # noqa: E501 + result: NotificationsResult + __properties: ClassVar[List[str]] = ["result"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationsUserResults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationsUserResults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": NotificationsResult.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_viewer_v2.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_viewer_v2.py new file mode 100644 index 0000000..f5eed05 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notifications_viewer_v2.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults +from typing import Optional, Set +from typing_extensions import Self + +class NotificationsViewerV2(BaseModel): + """ + NotificationsViewerV2 + """ # noqa: E501 + user_results: NotificationsUserResults + __properties: ClassVar[List[str]] = ["user_results"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotificationsViewerV2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user_results + if self.user_results: + _dict['user_results'] = self.user_results.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotificationsViewerV2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_results": NotificationsUserResults.from_dict(obj["user_results"]) if obj.get("user_results") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py index 9233c6f..f33e522 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py @@ -28,9 +28,11 @@ class PostCreateBookmarkRequest(BaseModel): """ PostCreateBookmarkRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'aoDbu3RHznuiSkQ9aNM67Q', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py index 2d73d3a..cfc77fc 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py @@ -28,9 +28,11 @@ class PostCreateRetweetRequest(BaseModel): """ PostCreateRetweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'ojPdsZsimiJrUGLR1sjUtA', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py index 204d910..4d8c02d 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py @@ -29,10 +29,12 @@ class PostCreateTweetRequest(BaseModel): """ PostCreateTweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") features: PostCreateTweetRequestFeatures query_id: StrictStr = Field(alias="queryId") variables: PostCreateTweetRequestVariables - __properties: ClassVar[List[str]] = ["features", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "features", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -91,8 +93,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', "features": PostCreateTweetRequestFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None, - "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'xT36w0XM3A8jDynpkram2A', + "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'IID9x6WsdMnTlXnzXGq8ng', "variables": PostCreateTweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request_features.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request_features.py index 4e4b63d..043ae80 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request_features.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request_features.py @@ -36,20 +36,27 @@ class PostCreateTweetRequestFeatures(BaseModel): longform_notetweets_consumption_enabled: StrictBool longform_notetweets_inline_media_enabled: StrictBool longform_notetweets_rich_text_read_enabled: StrictBool + premium_content_api_read_enabled: StrictBool + profile_label_improvements_pcf_label_in_post_enabled: StrictBool responsive_web_edit_tweet_api_enabled: StrictBool responsive_web_enhance_cards_enabled: StrictBool - responsive_web_graphql_exclude_directive_enabled: StrictBool responsive_web_graphql_skip_user_profile_image_extensions_enabled: StrictBool responsive_web_graphql_timeline_navigation_enabled: StrictBool + responsive_web_grok_analysis_button_from_backend: StrictBool + responsive_web_grok_analyze_button_fetch_trends_enabled: StrictBool + responsive_web_grok_analyze_post_followups_enabled: StrictBool + responsive_web_grok_image_annotation_enabled: StrictBool + responsive_web_grok_share_attachment_enabled: StrictBool + responsive_web_grok_show_grok_translated_post: StrictBool + responsive_web_jetfuel_frame: StrictBool responsive_web_twitter_article_tweet_consumption_enabled: StrictBool rweb_tipjar_consumption_enabled: StrictBool - rweb_video_timestamps_enabled: StrictBool standardized_nudges_misinfo: StrictBool tweet_awards_web_tipping_enabled: StrictBool tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: StrictBool verified_phone_label_enabled: StrictBool view_counts_everywhere_api_enabled: StrictBool - __properties: ClassVar[List[str]] = ["articles_preview_enabled", "c9s_tweet_anatomy_moderator_badge_enabled", "communities_web_enable_tweet_community_results_fetch", "creator_subscriptions_quote_tweet_preview_enabled", "freedom_of_speech_not_reach_fetch_enabled", "graphql_is_translatable_rweb_tweet_is_translatable_enabled", "longform_notetweets_consumption_enabled", "longform_notetweets_inline_media_enabled", "longform_notetweets_rich_text_read_enabled", "responsive_web_edit_tweet_api_enabled", "responsive_web_enhance_cards_enabled", "responsive_web_graphql_exclude_directive_enabled", "responsive_web_graphql_skip_user_profile_image_extensions_enabled", "responsive_web_graphql_timeline_navigation_enabled", "responsive_web_twitter_article_tweet_consumption_enabled", "rweb_tipjar_consumption_enabled", "rweb_video_timestamps_enabled", "standardized_nudges_misinfo", "tweet_awards_web_tipping_enabled", "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled", "verified_phone_label_enabled", "view_counts_everywhere_api_enabled"] + __properties: ClassVar[List[str]] = ["articles_preview_enabled", "c9s_tweet_anatomy_moderator_badge_enabled", "communities_web_enable_tweet_community_results_fetch", "creator_subscriptions_quote_tweet_preview_enabled", "freedom_of_speech_not_reach_fetch_enabled", "graphql_is_translatable_rweb_tweet_is_translatable_enabled", "longform_notetweets_consumption_enabled", "longform_notetweets_inline_media_enabled", "longform_notetweets_rich_text_read_enabled", "premium_content_api_read_enabled", "profile_label_improvements_pcf_label_in_post_enabled", "responsive_web_edit_tweet_api_enabled", "responsive_web_enhance_cards_enabled", "responsive_web_graphql_skip_user_profile_image_extensions_enabled", "responsive_web_graphql_timeline_navigation_enabled", "responsive_web_grok_analysis_button_from_backend", "responsive_web_grok_analyze_button_fetch_trends_enabled", "responsive_web_grok_analyze_post_followups_enabled", "responsive_web_grok_image_annotation_enabled", "responsive_web_grok_share_attachment_enabled", "responsive_web_grok_show_grok_translated_post", "responsive_web_jetfuel_frame", "responsive_web_twitter_article_tweet_consumption_enabled", "rweb_tipjar_consumption_enabled", "standardized_nudges_misinfo", "tweet_awards_web_tipping_enabled", "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled", "verified_phone_label_enabled", "view_counts_everywhere_api_enabled"] model_config = ConfigDict( populate_by_name=True, @@ -111,14 +118,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "longform_notetweets_consumption_enabled": obj.get("longform_notetweets_consumption_enabled") if obj.get("longform_notetweets_consumption_enabled") is not None else True, "longform_notetweets_inline_media_enabled": obj.get("longform_notetweets_inline_media_enabled") if obj.get("longform_notetweets_inline_media_enabled") is not None else True, "longform_notetweets_rich_text_read_enabled": obj.get("longform_notetweets_rich_text_read_enabled") if obj.get("longform_notetweets_rich_text_read_enabled") is not None else True, + "premium_content_api_read_enabled": obj.get("premium_content_api_read_enabled") if obj.get("premium_content_api_read_enabled") is not None else False, + "profile_label_improvements_pcf_label_in_post_enabled": obj.get("profile_label_improvements_pcf_label_in_post_enabled") if obj.get("profile_label_improvements_pcf_label_in_post_enabled") is not None else True, "responsive_web_edit_tweet_api_enabled": obj.get("responsive_web_edit_tweet_api_enabled") if obj.get("responsive_web_edit_tweet_api_enabled") is not None else True, "responsive_web_enhance_cards_enabled": obj.get("responsive_web_enhance_cards_enabled") if obj.get("responsive_web_enhance_cards_enabled") is not None else False, - "responsive_web_graphql_exclude_directive_enabled": obj.get("responsive_web_graphql_exclude_directive_enabled") if obj.get("responsive_web_graphql_exclude_directive_enabled") is not None else True, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": obj.get("responsive_web_graphql_skip_user_profile_image_extensions_enabled") if obj.get("responsive_web_graphql_skip_user_profile_image_extensions_enabled") is not None else False, "responsive_web_graphql_timeline_navigation_enabled": obj.get("responsive_web_graphql_timeline_navigation_enabled") if obj.get("responsive_web_graphql_timeline_navigation_enabled") is not None else True, + "responsive_web_grok_analysis_button_from_backend": obj.get("responsive_web_grok_analysis_button_from_backend") if obj.get("responsive_web_grok_analysis_button_from_backend") is not None else False, + "responsive_web_grok_analyze_button_fetch_trends_enabled": obj.get("responsive_web_grok_analyze_button_fetch_trends_enabled") if obj.get("responsive_web_grok_analyze_button_fetch_trends_enabled") is not None else False, + "responsive_web_grok_analyze_post_followups_enabled": obj.get("responsive_web_grok_analyze_post_followups_enabled") if obj.get("responsive_web_grok_analyze_post_followups_enabled") is not None else True, + "responsive_web_grok_image_annotation_enabled": obj.get("responsive_web_grok_image_annotation_enabled") if obj.get("responsive_web_grok_image_annotation_enabled") is not None else True, + "responsive_web_grok_share_attachment_enabled": obj.get("responsive_web_grok_share_attachment_enabled") if obj.get("responsive_web_grok_share_attachment_enabled") is not None else True, + "responsive_web_grok_show_grok_translated_post": obj.get("responsive_web_grok_show_grok_translated_post") if obj.get("responsive_web_grok_show_grok_translated_post") is not None else False, + "responsive_web_jetfuel_frame": obj.get("responsive_web_jetfuel_frame") if obj.get("responsive_web_jetfuel_frame") is not None else False, "responsive_web_twitter_article_tweet_consumption_enabled": obj.get("responsive_web_twitter_article_tweet_consumption_enabled") if obj.get("responsive_web_twitter_article_tweet_consumption_enabled") is not None else True, "rweb_tipjar_consumption_enabled": obj.get("rweb_tipjar_consumption_enabled") if obj.get("rweb_tipjar_consumption_enabled") is not None else True, - "rweb_video_timestamps_enabled": obj.get("rweb_video_timestamps_enabled") if obj.get("rweb_video_timestamps_enabled") is not None else True, "standardized_nudges_misinfo": obj.get("standardized_nudges_misinfo") if obj.get("standardized_nudges_misinfo") is not None else True, "tweet_awards_web_tipping_enabled": obj.get("tweet_awards_web_tipping_enabled") if obj.get("tweet_awards_web_tipping_enabled") is not None else False, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": obj.get("tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled") if obj.get("tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled") is not None else True, diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py index 3170a6f..34ea971 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py @@ -28,9 +28,11 @@ class PostDeleteBookmarkRequest(BaseModel): """ PostDeleteBookmarkRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'Wlmlj2-xzyS1GN3a6cj-mQ', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py index 9f04411..5cd99bd 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py @@ -28,9 +28,11 @@ class PostDeleteRetweetRequest(BaseModel): """ PostDeleteRetweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostDeleteRetweetRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'iQtK4dl5hBmXewYZuEOKVw', "variables": PostDeleteRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py index ce3717d..1389ab5 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py @@ -28,9 +28,11 @@ class PostDeleteTweetRequest(BaseModel): """ PostDeleteTweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'VaenaVgh5q5ih7kvyVjgtg', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py index fc13e24..e547aad 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py @@ -28,9 +28,11 @@ class PostFavoriteTweetRequest(BaseModel): """ PostFavoriteTweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'lI07N6Otwv1PhnEgXILM7A', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py index 1d463b1..fa5430e 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py @@ -28,9 +28,11 @@ class PostUnfavoriteTweetRequest(BaseModel): """ PostUnfavoriteTweetRequest """ # noqa: E501 + method: StrictStr = Field(alias="@method") + path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["queryId", "variables"] + __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', + "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'ZYKSe-w7KEslx3JhSIk5LA', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_result.py new file mode 100644 index 0000000..7e6d14a --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_result.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.timeline_result import TimelineResult +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class RankedCommunityResult(BaseModel): + """ + RankedCommunityResult + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + ranked_community_timeline: TimelineResult + __properties: ClassVar[List[str]] = ["__typename", "ranked_community_timeline"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RankedCommunityResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of ranked_community_timeline + if self.ranked_community_timeline: + _dict['ranked_community_timeline'] = self.ranked_community_timeline.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RankedCommunityResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "ranked_community_timeline": TimelineResult.from_dict(obj["ranked_community_timeline"]) if obj.get("ranked_community_timeline") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_results.py new file mode 100644 index 0000000..b600568 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_results.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult +from typing import Optional, Set +from typing_extensions import Self + +class RankedCommunityResults(BaseModel): + """ + RankedCommunityResults + """ # noqa: E501 + result: RankedCommunityResult + __properties: ClassVar[List[str]] = ["result"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RankedCommunityResults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RankedCommunityResults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": RankedCommunityResult.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_tweet_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_tweet_data.py new file mode 100644 index 0000000..00fb558 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ranked_community_tweet_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.ranked_community_results import RankedCommunityResults +from typing import Optional, Set +from typing_extensions import Self + +class RankedCommunityTweetData(BaseModel): + """ + RankedCommunityTweetData + """ # noqa: E501 + community_results: RankedCommunityResults = Field(alias="communityResults") + __properties: ClassVar[List[str]] = ["communityResults"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RankedCommunityTweetData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of community_results + if self.community_results: + _dict['communityResults'] = self.community_results.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RankedCommunityTweetData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "communityResults": RankedCommunityResults.from_dict(obj["communityResults"]) if obj.get("communityResults") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py new file mode 100644 index 0000000..ed0d576 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RichMessage(BaseModel): + """ + RichMessage + """ # noqa: E501 + rtl: Optional[StrictBool] = None + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["rtl", "text"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RichMessage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RichMessage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rtl": obj.get("rtl"), + "text": obj.get("text") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/search_timeline_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/search_timeline_data.py index d5c10c5..f0910b4 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/search_timeline_data.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/search_timeline_data.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from twitter_openapi_python_generated.models.search_by_raw_query import SearchByRawQuery from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class SearchTimelineData(BaseModel): """ SearchTimelineData """ # noqa: E501 - search_by_raw_query: Optional[SearchByRawQuery] = None + search_by_raw_query: SearchByRawQuery __properties: ClassVar[List[str]] = ["search_by_raw_query"] model_config = ConfigDict( diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_add_entry.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_add_entry.py index 9912109..0aea546 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_add_entry.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_add_entry.py @@ -37,8 +37,8 @@ class TimelineAddEntry(BaseModel): @field_validator('entry_id') def entry_id_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+", value): - raise ValueError(r"must validate the regular expression /^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+/") + if not re.match(r"^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+", value): + raise ValueError(r"must validate the regular expression /^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+/") return value @field_validator('sort_index') diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py new file mode 100644 index 0000000..698079b --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.instruction_type import InstructionType +from typing import Optional, Set +from typing_extensions import Self + +class TimelineClearEntriesUnreadState(BaseModel): + """ + TimelineClearEntriesUnreadState + """ # noqa: E501 + type: InstructionType + __properties: ClassVar[List[str]] = ["type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TimelineClearEntriesUnreadState from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TimelineClearEntriesUnreadState from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_general_context.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_general_context.py index 3fb8905..1c28854 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_general_context.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_general_context.py @@ -29,11 +29,12 @@ class TimelineGeneralContext(BaseModel): """ TimelineGeneralContext """ # noqa: E501 + context_image_urls: Optional[List[StrictStr]] = Field(default=None, alias="contextImageUrls") context_type: Optional[StrictStr] = Field(default=None, alias="contextType") landing_url: Optional[SocialContextLandingUrl] = Field(default=None, alias="landingUrl") text: Optional[StrictStr] = None type: Optional[SocialContextUnionType] = None - __properties: ClassVar[List[str]] = ["contextType", "landingUrl", "text", "type"] + __properties: ClassVar[List[str]] = ["contextImageUrls", "contextType", "landingUrl", "text", "type"] @field_validator('context_type') def context_type_validate_enum(cls, value): @@ -41,8 +42,8 @@ def context_type_validate_enum(cls, value): if value is None: return value - if value not in set(['Follow', 'Pin', 'Like', 'Location', 'Sparkle', 'Conversation', 'List', 'Community']): - raise ValueError("must be one of enum values ('Follow', 'Pin', 'Like', 'Location', 'Sparkle', 'Conversation', 'List', 'Community')") + if value not in set(['Follow', 'Pin', 'Like', 'Location', 'Sparkle', 'Conversation', 'List', 'Community', 'Facepile']): + raise ValueError("must be one of enum values ('Follow', 'Pin', 'Like', 'Location', 'Sparkle', 'Conversation', 'List', 'Community', 'Facepile')") return value model_config = ConfigDict( @@ -99,6 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "contextImageUrls": obj.get("contextImageUrls"), "contextType": obj.get("contextType"), "landingUrl": SocialContextLandingUrl.from_dict(obj["landingUrl"]) if obj.get("landingUrl") is not None else None, "text": obj.get("text"), diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py new file mode 100644 index 0000000..8fc9562 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from twitter_openapi_python_generated.models.instruction_type import InstructionType +from typing import Optional, Set +from typing_extensions import Self + +class TimelineMarkEntriesUnreadGreaterThanSortIndex(BaseModel): + """ + TimelineMarkEntriesUnreadGreaterThanSortIndex + """ # noqa: E501 + sort_index: Optional[Annotated[str, Field(strict=True)]] = None + type: InstructionType + __properties: ClassVar[List[str]] = ["sort_index", "type"] + + @field_validator('sort_index') + def sort_index_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"[0-9]+$", value): + raise ValueError(r"must validate the regular expression /[0-9]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TimelineMarkEntriesUnreadGreaterThanSortIndex from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TimelineMarkEntriesUnreadGreaterThanSortIndex from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sort_index": obj.get("sort_index"), + "type": obj.get("type") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_notification.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_notification.py new file mode 100644 index 0000000..cfcffb8 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_notification.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.content_item_type import ContentItemType +from twitter_openapi_python_generated.models.notification_template import NotificationTemplate +from twitter_openapi_python_generated.models.rich_message import RichMessage +from twitter_openapi_python_generated.models.social_context_landing_url import SocialContextLandingUrl +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class TimelineNotification(BaseModel): + """ + TimelineNotification + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + id: StrictStr + item_type: ContentItemType = Field(alias="itemType") + notification_icon: StrictStr + notification_url: SocialContextLandingUrl + rich_message: RichMessage + template: NotificationTemplate + timestamp_ms: StrictStr + __properties: ClassVar[List[str]] = ["__typename", "id", "itemType", "notification_icon", "notification_url", "rich_message", "template", "timestamp_ms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TimelineNotification from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of notification_url + if self.notification_url: + _dict['notification_url'] = self.notification_url.to_dict() + # override the default output from pydantic by calling `to_dict()` of rich_message + if self.rich_message: + _dict['rich_message'] = self.rich_message.to_dict() + # override the default output from pydantic by calling `to_dict()` of template + if self.template: + _dict['template'] = self.template.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TimelineNotification from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "id": obj.get("id"), + "itemType": obj.get("itemType"), + "notification_icon": obj.get("notification_icon"), + "notification_url": SocialContextLandingUrl.from_dict(obj["notification_url"]) if obj.get("notification_url") is not None else None, + "rich_message": RichMessage.from_dict(obj["rich_message"]) if obj.get("rich_message") is not None else None, + "template": NotificationTemplate.from_dict(obj["template"]) if obj.get("template") is not None else None, + "timestamp_ms": obj.get("timestamp_ms") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_v2.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_result.py similarity index 87% rename from twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_v2.py rename to twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_result.py index d040c86..338010a 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_v2.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_result.py @@ -18,18 +18,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from twitter_openapi_python_generated.models.timeline import Timeline from typing import Optional, Set from typing_extensions import Self -class TimelineV2(BaseModel): +class TimelineResult(BaseModel): """ - TimelineV2 + TimelineResult """ # noqa: E501 + id: Optional[StrictStr] = None timeline: Optional[Timeline] = None - __properties: ClassVar[List[str]] = ["timeline"] + __properties: ClassVar[List[str]] = ["id", "timeline"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TimelineV2 from a JSON string""" + """Create an instance of TimelineResult from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TimelineV2 from a dict""" + """Create an instance of TimelineResult from a dict""" if obj is None: return None @@ -85,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "id": obj.get("id"), "timeline": Timeline.from_dict(obj["timeline"]) if obj.get("timeline") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_timeline_module.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_timeline_module.py index 99ccb19..57df27a 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_timeline_module.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_timeline_module.py @@ -33,7 +33,7 @@ class TimelineTimelineModule(BaseModel): TimelineTimelineModule """ # noqa: E501 typename: StrictStr = Field(alias="__typename") - client_event_info: ClientEventInfo = Field(alias="clientEventInfo") + client_event_info: Optional[ClientEventInfo] = Field(default=None, alias="clientEventInfo") display_type: DisplayType = Field(alias="displayType") entry_type: ContentEntryType = Field(alias="entryType") feedback_info: Optional[FeedbackInfo] = Field(default=None, alias="feedbackInfo") diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py index 5766f8f..bee33ce 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py @@ -35,12 +35,12 @@ class TimelineTrend(BaseModel): TimelineTrend """ # noqa: E501 typename: TypeName = Field(alias="__typename") - images: List[TrendImage] + images: Optional[List[TrendImage]] = None is_ai_trend: Optional[StrictBool] = None - item_type: ContentItemType = Field(alias="itemType") + item_type: Optional[ContentItemType] = Field(default=None, alias="itemType") name: StrictStr social_context: Optional[SocialContextUnion] = None - thumbnail_image: ThumbnailImage + thumbnail_image: Optional[ThumbnailImage] = None trend_metadata: TrendMetadata trend_url: SocialContextLandingUrl __properties: ClassVar[List[str]] = ["__typename", "images", "is_ai_trend", "itemType", "name", "social_context", "thumbnail_image", "trend_metadata", "trend_url"] diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_user.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_user.py index 4b923e0..61737e7 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_user.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_user.py @@ -41,8 +41,8 @@ class TimelineUser(BaseModel): @field_validator('user_display_type') def user_display_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['User', 'UserDetailed', 'SubscribableUser']): - raise ValueError("must be one of enum values ('User', 'UserDetailed', 'SubscribableUser')") + if value not in set(['User', 'UserDetailed', 'SubscribableUser', 'UserConcise']): + raise ValueError("must be one of enum values ('User', 'UserDetailed', 'SubscribableUser', 'UserConcise')") return value model_config = ConfigDict( diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet.py index b7287ba..8c75cb8 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet.py @@ -26,7 +26,6 @@ from twitter_openapi_python_generated.models.birdwatch_pivot import BirdwatchPivot from twitter_openapi_python_generated.models.community import Community from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship -from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment from twitter_openapi_python_generated.models.note_tweet import NoteTweet from twitter_openapi_python_generated.models.super_follows_reply_user_result import SuperFollowsReplyUserResult from twitter_openapi_python_generated.models.trend_results import TrendResults @@ -221,6 +220,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: }) return _obj +from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment from twitter_openapi_python_generated.models.item_result import ItemResult from twitter_openapi_python_generated.models.quoted_ref_result import QuotedRefResult from twitter_openapi_python_generated.models.tweet_legacy import TweetLegacy diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_favoriters_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_favoriters_response_data.py index b5ccd0b..db03a31 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_favoriters_response_data.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_favoriters_response_data.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class TweetFavoritersResponseData(BaseModel): """ TweetFavoritersResponseData """ # noqa: E501 - favoriters_timeline: Optional[TimelineV2] = None + favoriters_timeline: Optional[TimelineResult] = None __properties: ClassVar[List[str]] = ["favoriters_timeline"] model_config = ConfigDict( @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "favoriters_timeline": TimelineV2.from_dict(obj["favoriters_timeline"]) if obj.get("favoriters_timeline") is not None else None + "favoriters_timeline": TimelineResult.from_dict(obj["favoriters_timeline"]) if obj.get("favoriters_timeline") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_retweeters_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_retweeters_response_data.py index 4e2157a..9440cb5 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_retweeters_response_data.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tweet_retweeters_response_data.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class TweetRetweetersResponseData(BaseModel): """ TweetRetweetersResponseData """ # noqa: E501 - retweeters_timeline: Optional[TimelineV2] = None + retweeters_timeline: Optional[TimelineResult] = None __properties: ClassVar[List[str]] = ["retweeters_timeline"] model_config = ConfigDict( @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "retweeters_timeline": TimelineV2.from_dict(obj["retweeters_timeline"]) if obj.get("retweeters_timeline") is not None else None + "retweeters_timeline": TimelineResult.from_dict(obj["retweeters_timeline"]) if obj.get("retweeters_timeline") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py index f2fa525..0bf50ac 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py @@ -40,6 +40,8 @@ class TypeName(str, Enum): TIMELINECOMMUNITY = 'TimelineCommunity' TIMELINETOMBSTONE = 'TimelineTombstone' TIMELINETREND = 'TimelineTrend' + TIMELINENOTIFICATION = 'TimelineNotification' + TIMELINENOTIFICATIONAGGREGATEUSERACTIONS = 'TimelineNotificationAggregateUserActions' TWEETUNAVAILABLE = 'TweetUnavailable' TWEETPREVIEWDISPLAY = 'TweetPreviewDisplay' TWEET = 'Tweet' diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user.py index 7c9ba84..628559f 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user.py @@ -75,8 +75,8 @@ def parody_commentary_fan_label_validate_enum(cls, value): if value is None: return value - if value not in set(['None', 'Parody']): - raise ValueError("must be one of enum values ('None', 'Parody')") + if value not in set(['None', 'Parody', 'Commentary']): + raise ValueError("must be one of enum values ('None', 'Parody', 'Commentary')") return value @field_validator('profile_image_shape') diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v1.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v1.py new file mode 100644 index 0000000..86814c9 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v1.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from twitter_openapi_python_generated.models.timeline_result import TimelineResult +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class UserTweetsResultV1(BaseModel): + """ + UserTweetsResultV1 + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + timeline: TimelineResult + __properties: ClassVar[List[str]] = ["__typename", "timeline"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserTweetsResultV1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of timeline + if self.timeline: + _dict['timeline'] = self.timeline.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserTweetsResultV1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "__typename": obj.get("__typename"), + "timeline": TimelineResult.from_dict(obj["timeline"]) if obj.get("timeline") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v2.py similarity index 85% rename from twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result.py rename to twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v2.py index 92a44f3..9055998 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_result_v2.py @@ -20,17 +20,17 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List -from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 +from twitter_openapi_python_generated.models.timeline_result import TimelineResult from twitter_openapi_python_generated.models.type_name import TypeName from typing import Optional, Set from typing_extensions import Self -class UserTweetsResult(BaseModel): +class UserTweetsResultV2(BaseModel): """ - UserTweetsResult + UserTweetsResultV2 """ # noqa: E501 typename: TypeName = Field(alias="__typename") - timeline_v2: TimelineV2 + timeline_v2: TimelineResult __properties: ClassVar[List[str]] = ["__typename", "timeline_v2"] model_config = ConfigDict( @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserTweetsResult from a JSON string""" + """Create an instance of UserTweetsResultV2 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserTweetsResult from a dict""" + """Create an instance of UserTweetsResultV2 from a dict""" if obj is None: return None @@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "__typename": obj.get("__typename"), - "timeline_v2": TimelineV2.from_dict(obj["timeline_v2"]) if obj.get("timeline_v2") is not None else None + "timeline_v2": TimelineResult.from_dict(obj["timeline_v2"]) if obj.get("timeline_v2") is not None else None }) return _obj diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_user.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_user.py index e13c88c..1d16e2c 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_user.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/user_tweets_user.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from twitter_openapi_python_generated.models.user_tweets_result import UserTweetsResult +from twitter_openapi_python_generated.models.user_tweets_result_v1 import UserTweetsResultV1 from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class UserTweetsUser(BaseModel): """ UserTweetsUser """ # noqa: E501 - result: UserTweetsResult + result: UserTweetsResultV1 __properties: ClassVar[List[str]] = ["result"] model_config = ConfigDict( @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "result": UserTweetsResult.from_dict(obj["result"]) if obj.get("result") is not None else None + "result": UserTweetsResultV1.from_dict(obj["result"]) if obj.get("result") is not None else None }) return _obj From 20c9da31bd1b5f8369b503ec10b1c8119209d2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 7 May 2025 23:20:46 +0900 Subject: [PATCH 3/4] update generated 0.0.33 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter_openapi_python_generated/README.md | 2 +- .../docs/PostCreateBookmarkRequest.md | 2 -- .../docs/PostCreateRetweetRequest.md | 2 -- .../docs/PostCreateTweetRequest.md | 2 -- .../docs/PostDeleteBookmarkRequest.md | 2 -- .../docs/PostDeleteRetweetRequest.md | 2 -- .../docs/PostDeleteTweetRequest.md | 2 -- .../docs/PostFavoriteTweetRequest.md | 2 -- .../docs/PostUnfavoriteTweetRequest.md | 2 -- twitter_openapi_python_generated/pyproject.toml | 2 +- twitter_openapi_python_generated/setup.py | 2 +- .../test/test_post_create_bookmark_request.py | 4 ---- .../test/test_post_create_retweet_request.py | 4 ---- .../test/test_post_create_tweet_request.py | 4 ---- .../test/test_post_delete_bookmark_request.py | 4 ---- .../test/test_post_delete_retweet_request.py | 4 ---- .../test/test_post_delete_tweet_request.py | 4 ---- .../test/test_post_favorite_tweet_request.py | 4 ---- .../test/test_post_unfavorite_tweet_request.py | 4 ---- .../tools/openapi-generator-config.yaml | 2 +- twitter_openapi_python_generated/twitter-openapi | 2 +- .../twitter_openapi_python_generated/__init__.py | 2 +- .../twitter_openapi_python_generated/api_client.py | 2 +- .../twitter_openapi_python_generated/configuration.py | 2 +- .../models/post_create_bookmark_request.py | 6 +----- .../models/post_create_retweet_request.py | 6 +----- .../models/post_create_tweet_request.py | 6 +----- .../models/post_delete_bookmark_request.py | 6 +----- .../models/post_delete_retweet_request.py | 6 +----- .../models/post_delete_tweet_request.py | 6 +----- .../models/post_favorite_tweet_request.py | 6 +----- .../models/post_unfavorite_tweet_request.py | 6 +----- 32 files changed, 16 insertions(+), 96 deletions(-) diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md index 3dfacf0..916c13e 100644 --- a/twitter_openapi_python_generated/README.md +++ b/twitter_openapi_python_generated/README.md @@ -4,7 +4,7 @@ Twitter OpenAPI(Swagger) specification This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.1 -- Package version: 0.0.32 +- Package version: 0.0.33 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md b/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md index 751f550..3e4a0bd 100644 --- a/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateBookmarkRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark'] **query_id** | **str** | | [default to 'aoDbu3RHznuiSkQ9aNM67Q'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md b/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md index 200b51a..0f39d2d 100644 --- a/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateRetweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet'] **query_id** | **str** | | [default to 'ojPdsZsimiJrUGLR1sjUtA'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md b/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md index 28375ca..901b60e 100644 --- a/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostCreateTweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet'] **features** | [**PostCreateTweetRequestFeatures**](PostCreateTweetRequestFeatures.md) | | **query_id** | **str** | | [default to 'IID9x6WsdMnTlXnzXGq8ng'] **variables** | [**PostCreateTweetRequestVariables**](PostCreateTweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md b/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md index 15b44a8..f042438 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteBookmarkRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark'] **query_id** | **str** | | [default to 'Wlmlj2-xzyS1GN3a6cj-mQ'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md b/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md index ed0d07a..fca7521 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteRetweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet'] **query_id** | **str** | | [default to 'iQtK4dl5hBmXewYZuEOKVw'] **variables** | [**PostDeleteRetweetRequestVariables**](PostDeleteRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md b/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md index 3c58b5d..5e9c370 100644 --- a/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostDeleteTweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet'] **query_id** | **str** | | [default to 'VaenaVgh5q5ih7kvyVjgtg'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md b/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md index bc27265..8d18ade 100644 --- a/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostFavoriteTweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet'] **query_id** | **str** | | [default to 'lI07N6Otwv1PhnEgXILM7A'] **variables** | [**PostCreateBookmarkRequestVariables**](PostCreateBookmarkRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md b/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md index e36a862..44e0d0e 100644 --- a/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md +++ b/twitter_openapi_python_generated/docs/PostUnfavoriteTweetRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**method** | **str** | | [default to 'POST'] -**path** | **str** | | [default to '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet'] **query_id** | **str** | | [default to 'ZYKSe-w7KEslx3JhSIk5LA'] **variables** | [**PostCreateRetweetRequestVariables**](PostCreateRetweetRequestVariables.md) | | diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml index f8e439a..a2c6966 100644 --- a/twitter_openapi_python_generated/pyproject.toml +++ b/twitter_openapi_python_generated/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "twitter_openapi_python_generated" -version = "0.0.32" +version = "0.0.33" description = "Twitter OpenAPI" authors = ["OpenAPI Generator Community "] license = "custom license or AGPL-3.0-or-later" diff --git a/twitter_openapi_python_generated/setup.py b/twitter_openapi_python_generated/setup.py index 51a49fa..08be3ac 100644 --- a/twitter_openapi_python_generated/setup.py +++ b/twitter_openapi_python_generated/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "twitter_openapi_python_generated" -VERSION = "0.0.32" +VERSION = "0.0.33" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py b/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py index 9048122..fa6e501 100644 --- a/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_bookmark_request.py @@ -36,16 +36,12 @@ def make_instance(self, include_optional) -> PostCreateBookmarkRequest: model = PostCreateBookmarkRequest() if include_optional: return PostCreateBookmarkRequest( - method = 'POST', - path = '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', query_id = 'aoDbu3RHznuiSkQ9aNM67Q', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostCreateBookmarkRequest( - method = 'POST', - path = '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', query_id = 'aoDbu3RHznuiSkQ9aNM67Q', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_create_retweet_request.py b/twitter_openapi_python_generated/test/test_post_create_retweet_request.py index 0a9524c..41f67cc 100644 --- a/twitter_openapi_python_generated/test/test_post_create_retweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_retweet_request.py @@ -36,8 +36,6 @@ def make_instance(self, include_optional) -> PostCreateRetweetRequest: model = PostCreateRetweetRequest() if include_optional: return PostCreateRetweetRequest( - method = 'POST', - path = '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', query_id = 'ojPdsZsimiJrUGLR1sjUtA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -45,8 +43,6 @@ def make_instance(self, include_optional) -> PostCreateRetweetRequest: ) else: return PostCreateRetweetRequest( - method = 'POST', - path = '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', query_id = 'ojPdsZsimiJrUGLR1sjUtA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_create_tweet_request.py b/twitter_openapi_python_generated/test/test_post_create_tweet_request.py index ee9f8e7..43d242c 100644 --- a/twitter_openapi_python_generated/test/test_post_create_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_create_tweet_request.py @@ -36,8 +36,6 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: model = PostCreateTweetRequest() if include_optional: return PostCreateTweetRequest( - method = 'POST', - path = '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', features = twitter_openapi_python_generated.models.post_create_tweet_request_features.postCreateTweet_request_features( articles_preview_enabled = True, c9s_tweet_anatomy_moderator_badge_enabled = True, @@ -96,8 +94,6 @@ def make_instance(self, include_optional) -> PostCreateTweetRequest: ) else: return PostCreateTweetRequest( - method = 'POST', - path = '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', features = twitter_openapi_python_generated.models.post_create_tweet_request_features.postCreateTweet_request_features( articles_preview_enabled = True, c9s_tweet_anatomy_moderator_badge_enabled = True, diff --git a/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py b/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py index aadddb9..2485924 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_bookmark_request.py @@ -36,16 +36,12 @@ def make_instance(self, include_optional) -> PostDeleteBookmarkRequest: model = PostDeleteBookmarkRequest() if include_optional: return PostDeleteBookmarkRequest( - method = 'POST', - path = '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', query_id = 'Wlmlj2-xzyS1GN3a6cj-mQ', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostDeleteBookmarkRequest( - method = 'POST', - path = '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', query_id = 'Wlmlj2-xzyS1GN3a6cj-mQ', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py b/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py index 7008654..c9dfadf 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_retweet_request.py @@ -36,8 +36,6 @@ def make_instance(self, include_optional) -> PostDeleteRetweetRequest: model = PostDeleteRetweetRequest() if include_optional: return PostDeleteRetweetRequest( - method = 'POST', - path = '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', query_id = 'iQtK4dl5hBmXewYZuEOKVw', variables = twitter_openapi_python_generated.models.post_delete_retweet_request_variables.postDeleteRetweet_request_variables( dark_request = False, @@ -45,8 +43,6 @@ def make_instance(self, include_optional) -> PostDeleteRetweetRequest: ) else: return PostDeleteRetweetRequest( - method = 'POST', - path = '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', query_id = 'iQtK4dl5hBmXewYZuEOKVw', variables = twitter_openapi_python_generated.models.post_delete_retweet_request_variables.postDeleteRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py b/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py index de799e1..815da3f 100644 --- a/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_delete_tweet_request.py @@ -36,8 +36,6 @@ def make_instance(self, include_optional) -> PostDeleteTweetRequest: model = PostDeleteTweetRequest() if include_optional: return PostDeleteTweetRequest( - method = 'POST', - path = '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', query_id = 'VaenaVgh5q5ih7kvyVjgtg', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -45,8 +43,6 @@ def make_instance(self, include_optional) -> PostDeleteTweetRequest: ) else: return PostDeleteTweetRequest( - method = 'POST', - path = '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', query_id = 'VaenaVgh5q5ih7kvyVjgtg', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py b/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py index d4c64e7..64cb2b6 100644 --- a/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_favorite_tweet_request.py @@ -36,16 +36,12 @@ def make_instance(self, include_optional) -> PostFavoriteTweetRequest: model = PostFavoriteTweetRequest() if include_optional: return PostFavoriteTweetRequest( - method = 'POST', - path = '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', query_id = 'lI07N6Otwv1PhnEgXILM7A', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ) ) else: return PostFavoriteTweetRequest( - method = 'POST', - path = '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', query_id = 'lI07N6Otwv1PhnEgXILM7A', variables = twitter_openapi_python_generated.models.post_create_bookmark_request_variables.postCreateBookmark_request_variables( tweet_id = '1349129669258448897', ), diff --git a/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py b/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py index f94e6a8..f0567f4 100644 --- a/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py +++ b/twitter_openapi_python_generated/test/test_post_unfavorite_tweet_request.py @@ -36,8 +36,6 @@ def make_instance(self, include_optional) -> PostUnfavoriteTweetRequest: model = PostUnfavoriteTweetRequest() if include_optional: return PostUnfavoriteTweetRequest( - method = 'POST', - path = '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', query_id = 'ZYKSe-w7KEslx3JhSIk5LA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, @@ -45,8 +43,6 @@ def make_instance(self, include_optional) -> PostUnfavoriteTweetRequest: ) else: return PostUnfavoriteTweetRequest( - method = 'POST', - path = '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', query_id = 'ZYKSe-w7KEslx3JhSIk5LA', variables = twitter_openapi_python_generated.models.post_create_retweet_request_variables.postCreateRetweet_request_variables( dark_request = False, diff --git a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml index 658d9d2..76f4eaf 100644 --- a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml +++ b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml @@ -2,7 +2,7 @@ inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml outputDir: . packageName: twitter_openapi_python_generated -packageVersion: 0.0.32 +packageVersion: 0.0.33 packageUrl: https://github.com/fa0311/twitter_openapi_python_generated projectName: twitter_openapi_python_generated projectKeywords: twitter_openapi_python_generated diff --git a/twitter_openapi_python_generated/twitter-openapi b/twitter_openapi_python_generated/twitter-openapi index 54acb4a..c28f419 160000 --- a/twitter_openapi_python_generated/twitter-openapi +++ b/twitter_openapi_python_generated/twitter-openapi @@ -1 +1 @@ -Subproject commit 54acb4a0cef6aea969d3a1c75d37d58d80b0e5c0 +Subproject commit c28f41918c01fdd8e133d9a509765b4e1c5be5cc diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py index 0b71434..f433d89 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "0.0.32" +__version__ = "0.0.33" # import apis into sdk package from twitter_openapi_python_generated.api.default_api import DefaultApi diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py index 288a7a5..6410dff 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.32/python' + self.user_agent = 'OpenAPI-Generator/0.0.33/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py index 5eaecf9..209209c 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py @@ -750,7 +750,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.1\n"\ - "SDK Package Version: 0.0.32".\ + "SDK Package Version: 0.0.33".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py index f33e522..9233c6f 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_bookmark_request.py @@ -28,11 +28,9 @@ class PostCreateBookmarkRequest(BaseModel): """ PostCreateBookmarkRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'aoDbu3RHznuiSkQ9aNM67Q', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py index cfc77fc..2d73d3a 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_retweet_request.py @@ -28,11 +28,9 @@ class PostCreateRetweetRequest(BaseModel): """ PostCreateRetweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'ojPdsZsimiJrUGLR1sjUtA', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py index 4d8c02d..230d209 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_create_tweet_request.py @@ -29,12 +29,10 @@ class PostCreateTweetRequest(BaseModel): """ PostCreateTweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") features: PostCreateTweetRequestFeatures query_id: StrictStr = Field(alias="queryId") variables: PostCreateTweetRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "features", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["features", "queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -93,8 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet', "features": PostCreateTweetRequestFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None, "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'IID9x6WsdMnTlXnzXGq8ng', "variables": PostCreateTweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py index 34ea971..3170a6f 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_bookmark_request.py @@ -28,11 +28,9 @@ class PostDeleteBookmarkRequest(BaseModel): """ PostDeleteBookmarkRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'Wlmlj2-xzyS1GN3a6cj-mQ', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py index 5cd99bd..9f04411 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_retweet_request.py @@ -28,11 +28,9 @@ class PostDeleteRetweetRequest(BaseModel): """ PostDeleteRetweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostDeleteRetweetRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'iQtK4dl5hBmXewYZuEOKVw', "variables": PostDeleteRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py index 1389ab5..ce3717d 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_delete_tweet_request.py @@ -28,11 +28,9 @@ class PostDeleteTweetRequest(BaseModel): """ PostDeleteTweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'VaenaVgh5q5ih7kvyVjgtg', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py index e547aad..fc13e24 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_favorite_tweet_request.py @@ -28,11 +28,9 @@ class PostFavoriteTweetRequest(BaseModel): """ PostFavoriteTweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateBookmarkRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'lI07N6Otwv1PhnEgXILM7A', "variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py index fa5430e..1d463b1 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py @@ -28,11 +28,9 @@ class PostUnfavoriteTweetRequest(BaseModel): """ PostUnfavoriteTweetRequest """ # noqa: E501 - method: StrictStr = Field(alias="@method") - path: StrictStr = Field(alias="@path") query_id: StrictStr = Field(alias="queryId") variables: PostCreateRetweetRequestVariables - __properties: ClassVar[List[str]] = ["@method", "@path", "queryId", "variables"] + __properties: ClassVar[List[str]] = ["queryId", "variables"] model_config = ConfigDict( populate_by_name=True, @@ -88,8 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@method": obj.get("@method") if obj.get("@method") is not None else 'POST', - "@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet', "queryId": obj.get("queryId") if obj.get("queryId") is not None else 'ZYKSe-w7KEslx3JhSIk5LA', "variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None }) From 8a09f0af1ca79adb0165af1a85d420565e9e54d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 8 May 2025 00:21:40 +0900 Subject: [PATCH 4/4] update 0.0.37 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter_openapi_python/pyproject.toml | 4 +- twitter_openapi_python/requirements.txt | Bin 170 -> 240 bytes twitter_openapi_python/setup.py | 8 +- .../test/api/test_1_tweet_api.py | 10 +++ .../twitter_openapi_python/api/default_api.py | 6 +- .../twitter_openapi_python/api/post_api.py | 11 ++- .../twitter_openapi_python/api/tweet_api.py | 69 ++++++++++++++++-- .../twitter_openapi_python/api/user_api.py | 6 +- .../api/user_list_api.py | 6 +- .../twitter_openapi_python/api/users_api.py | 6 +- .../twitter_openapi_python/client.py | 26 ++++--- .../twitter_openapi_python/tid.py | 17 +++++ .../twitter_openapi_python/utils/api.py | 10 ++- 13 files changed, 142 insertions(+), 37 deletions(-) create mode 100644 twitter_openapi_python/twitter_openapi_python/tid.py diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index 2dd059c..c197ad5 100644 --- a/twitter_openapi_python/pyproject.toml +++ b/twitter_openapi_python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "twitter_openapi_python" -version = "0.0.36" +version = "0.0.37" description = "Twitter OpenAPI" authors = ["fa0311 "] license = "proprietary" # or "AGPL-3.0-only" @@ -15,7 +15,7 @@ python = "^3.7" pydantic = ">=2.6" urllib3 = ">= 2.1.0 < 3.0.0" -twitter-openapi-python-generated = "0.0.31" +twitter-openapi-python-generated = "0.0.33" [tool.poetry.dev-dependencies] diff --git a/twitter_openapi_python/requirements.txt b/twitter_openapi_python/requirements.txt index d628c2f01388b3e1888250105fb692ef919b67d0..579bf2aa1fa32abd5f74b283508acf07cdccb411 100644 GIT binary patch delta 82 zcmZ3*_=3.7" -REQUIRES = [ - "twitter_openapi_python_generated == 0.0.31", - "pydantic >= 2.6", - "urllib3 >= 2.1.0, < 3.0.0" -] +REQUIRES = ["twitter_openapi_python_generated == 0.0.33", "pydantic >= 2.6", "urllib3 >= 2.1.0, < 3.0.0"] GITHUB_RAW_URL = ( "https://raw.githubusercontent.com/fa0311/twitter_openapi_python/refs/heads/master/twitter_openapi_python/" ) diff --git a/twitter_openapi_python/test/api/test_1_tweet_api.py b/twitter_openapi_python/test/api/test_1_tweet_api.py index 63e3a9c..7d01349 100644 --- a/twitter_openapi_python/test/api/test_1_tweet_api.py +++ b/twitter_openapi_python/test/api/test_1_tweet_api.py @@ -59,6 +59,16 @@ def test_get_bookmarks(self): for tweet in list(filter(self.ad_fillter, result.data.data)): print_tweet(tweet) + def test_get_community_tweets_timeline(self): + result = self.client.get_community_tweets_timeline() + for tweet in list(filter(self.ad_fillter, result.data.data)): + print_tweet(tweet) + + def test_get_community_media_timeline(self): + result = self.client.get_community_media_timeline() + for tweet in list(filter(self.ad_fillter, result.data.data)): + print_tweet(tweet) + if __name__ == "__main__": unittest.main() diff --git a/twitter_openapi_python/twitter_openapi_python/api/default_api.py b/twitter_openapi_python/twitter_openapi_python/api/default_api.py index 8c0499e..3ff5573 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/default_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/default_api.py @@ -2,6 +2,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import TweetApiUtilsData, TwitterApiUtilsResponse from twitter_openapi_python.utils import ( @@ -21,9 +22,10 @@ class DefaultApiUtils: api: twitter.DefaultApi flag: ParamType - def __init__(self, api: twitter.DefaultApi, flag: ParamType): + def __init__(self, api: twitter.DefaultApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def request( self, @@ -32,7 +34,7 @@ def request( key: str, param: ParamType, ): - args = get_kwargs(flag=self.flag[key], additional=param) + args = get_kwargs(flag=self.flag[key], additional=param, ct=self.ct) res = apiFn(**args) data = convertFn(res.data) return build_response(res, data) diff --git a/twitter_openapi_python/twitter_openapi_python/api/post_api.py b/twitter_openapi_python/twitter_openapi_python/api/post_api.py index 9f704b8..3cb9955 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/post_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/post_api.py @@ -2,9 +2,11 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import TwitterApiUtilsResponse from twitter_openapi_python.utils import build_response, non_nullable +from twitter_openapi_python.utils.api import get_headers T = TypeVar("T") ResponseType = TwitterApiUtilsResponse[T] @@ -15,9 +17,10 @@ class PostApiUtils: api: twitter.PostApi flag: ParamType - def __init__(self, api: twitter.PostApi, flag: ParamType): + def __init__(self, api: twitter.PostApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def post_create_tweet( self, @@ -61,6 +64,7 @@ def post_create_tweet( variables=variables, features=features, ), + _headers=get_headers(self.flag["CreateTweet"], self.ct), ) return build_response(res, res.data) @@ -79,6 +83,7 @@ def post_delete_tweet( queryId=self.flag["DeleteTweet"]["queryId"], variables=variables, ), + _headers=get_headers(self.flag["DeleteTweet"], self.ct), ) return build_response(res, res.data) @@ -97,6 +102,7 @@ def post_create_retweet( queryId=self.flag["CreateRetweet"]["queryId"], variables=variables, ), + _headers=get_headers(self.flag["CreateRetweet"], self.ct), ) return build_response(res, res.data) @@ -115,6 +121,7 @@ def post_delete_retweet( queryId=self.flag["DeleteRetweet"]["queryId"], variables=variables, ), + _headers=get_headers(self.flag["DeleteRetweet"], self.ct), ) return build_response(res, res.data) @@ -134,6 +141,7 @@ def post_favorite_tweet( queryId=self.flag["FavoriteTweet"]["queryId"], variables=variables, ), + _headers=get_headers(self.flag["FavoriteTweet"], self.ct), ) return build_response(res, res.data) @@ -153,5 +161,6 @@ def post_unfavorite_tweet( queryId=self.flag["UnfavoriteTweet"]["queryId"], variables=variables, ), + _headers=get_headers(self.flag["UnfavoriteTweet"], self.ct), ) return build_response(res, res.data) diff --git a/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py b/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py index 39ccab2..f37ec97 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py @@ -1,7 +1,8 @@ -from typing import Any, Callable, List, Optional, TypeVar +from typing import Any, Callable, List, Literal, Optional, TypeVar import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import ( ApiUtilsRaw, @@ -28,9 +29,10 @@ class TweetApiUtils: api: twitter.TweetApi flag: ParamType - def __init__(self, api: twitter.TweetApi, flag: ParamType): + def __init__(self, api: twitter.TweetApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def request( self, @@ -39,7 +41,7 @@ def request( key: str, param: ParamType, ) -> ResponseType: - args = get_kwargs(flag=self.flag[key], additional=param) + args = get_kwargs(flag=self.flag[key], additional=param, ct=self.ct) res = apiFn(**args) instruction = convertFn(res.data) entry = instruction_to_entry(instruction) @@ -81,7 +83,7 @@ def get_tweet_detail( def get_search_timeline( self, raw_query: str, - product: Optional[str] = None, + product: Optional[Literal["Top", "Latest", "People", "Photos", "Videos"]] = None, cursor: Optional[str] = None, count: Optional[int] = None, extra_param: Optional[ParamType] = None, @@ -191,7 +193,7 @@ def get_user_tweets( response = self.request( apiFn=self.api.get_user_tweets_with_http_info, convertFn=lambda e: error_check( - error_check(e.data.user, e.errors).result.timeline_v2.timeline, e.errors + error_check(e.data.user, e.errors).result.timeline.timeline, e.errors ).instructions, key="UserTweets", param=param, @@ -216,7 +218,7 @@ def get_user_tweets_and_replies( response = self.request( apiFn=self.api.get_user_tweets_and_replies_with_http_info, convertFn=lambda e: error_check( - error_check(e.data.user, e.errors).result.timeline_v2.timeline, e.errors + error_check(e.data.user, e.errors).result.timeline.timeline, e.errors ).instructions, key="UserTweetsAndReplies", param=param, @@ -241,7 +243,7 @@ def get_user_media( response = self.request( apiFn=self.api.get_user_media_with_http_info, convertFn=lambda e: error_check( - error_check(e.data.user, e.errors).result.timeline_v2.timeline, e.errors + error_check(e.data.user, e.errors).result.timeline.timeline, e.errors ).instructions, key="UserMedia", param=param, @@ -266,7 +268,7 @@ def get_likes( response = self.request( apiFn=self.api.get_likes_with_http_info, convertFn=lambda e: error_check( - error_check(e.data.user, e.errors).result.timeline_v2.timeline, e.errors + error_check(e.data.user, e.errors).result.timeline.timeline, e.errors ).instructions, key="Likes", param=param, @@ -296,3 +298,54 @@ def get_bookmarks( param=param, ) return response + + def get_community_tweets_timeline( + self, + cursor: Optional[str] = None, + count: Optional[int] = None, + rankingMode: Optional[Literal["Recency", "Relevance"]] = None, + extra_param: Optional[ParamType] = None, + ) -> ResponseType: + param: ParamType = {} + if cursor is not None: + param["cursor"] = cursor + if count is not None: + param["count"] = count + if rankingMode is not None: + param["rankingMode"] = rankingMode + if extra_param is not None: + param.update(extra_param) + + response = self.request( + apiFn=self.api.get_community_tweets_timeline_with_http_info, + convertFn=lambda e: error_check( + error_check(e.data, e.errors).community_results.result.ranked_community_timeline.timeline, e.errors + ).instructions, + key="CommunityTweetsTimeline", + param=param, + ) + return response + + def get_community_media_timeline( + self, + cursor: Optional[str] = None, + count: Optional[int] = None, + extra_param: Optional[ParamType] = None, + ) -> ResponseType: + param: ParamType = {} + if cursor is not None: + param["cursor"] = cursor + if count is not None: + param["count"] = count + if extra_param is not None: + param.update(extra_param) + + response = self.request( + apiFn=self.api.get_community_media_timeline_with_http_info, + convertFn=lambda e: error_check( + error_check(e.data, e.errors).community_results.result.community_media_timeline.timeline, e.errors + ).instructions, + key="CommunityMediaTimeline", + param=param, + ) + return response diff --git a/twitter_openapi_python/twitter_openapi_python/api/user_api.py b/twitter_openapi_python/twitter_openapi_python/api/user_api.py index fa1bb01..fd161e7 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/user_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/user_api.py @@ -2,6 +2,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import TwitterApiUtilsResponse, UserApiUtilsData from twitter_openapi_python.utils import ( @@ -21,9 +22,10 @@ class UserApiUtils: api: twitter.UserApi flag: ParamType - def __init__(self, api: twitter.UserApi, flag: ParamType): + def __init__(self, api: twitter.UserApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def request( self, @@ -32,7 +34,7 @@ def request( key: str, param: ParamType, ) -> ResponseType: - args = get_kwargs(flag=self.flag[key], additional=param) + args = get_kwargs(flag=self.flag[key], additional=param, ct=self.ct) res = apiFn(**args) result = convertFn(res.data) if result.result is None: diff --git a/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py b/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py index 2d647d3..208e55b 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py @@ -2,6 +2,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import ( ApiUtilsRaw, @@ -29,9 +30,10 @@ class UserListApiUtils: api: twitter.UserListApi flag: ParamType - def __init__(self, api: twitter.UserListApi, flag: ParamType): + def __init__(self, api: twitter.UserListApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def request( self, @@ -40,7 +42,7 @@ def request( key: str, param: ParamType, ) -> ResponseType: - args = get_kwargs(flag=self.flag[key], additional=param) + args = get_kwargs(flag=self.flag[key], additional=param, ct=self.ct) res = apiFn(**args) instruction = convertFn(res.data) entry = instruction_to_entry(instruction) diff --git a/twitter_openapi_python/twitter_openapi_python/api/users_api.py b/twitter_openapi_python/twitter_openapi_python/api/users_api.py index 3e30d2e..0f8f272 100644 --- a/twitter_openapi_python/twitter_openapi_python/api/users_api.py +++ b/twitter_openapi_python/twitter_openapi_python/api/users_api.py @@ -2,6 +2,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import TwitterApiUtilsResponse, UserApiUtilsData from twitter_openapi_python.utils import ( @@ -21,9 +22,10 @@ class UsersApiUtils: api: twitter.UsersApi flag: ParamType - def __init__(self, api: twitter.UsersApi, flag: ParamType): + def __init__(self, api: twitter.UsersApi, flag: ParamType, ct: ClientTransaction): self.api = api self.flag = flag + self.ct = ct def request( self, @@ -32,7 +34,7 @@ def request( key: str, param: ParamType, ) -> ResponseType: - args = get_kwargs(flag=self.flag[key], additional=param) + args = get_kwargs(flag=self.flag[key], additional=param, ct=self.ct) res = apiFn(**args) user_result = convertFn(res.data) user = user_result_converter(user_result) diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py index 755abbc..e9d2b04 100644 --- a/twitter_openapi_python/twitter_openapi_python/client.py +++ b/twitter_openapi_python/twitter_openapi_python/client.py @@ -5,6 +5,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.configuration as conf import urllib3 +from x_client_transaction import ClientTransaction from twitter_openapi_python.api import ( DefaultApiUtils, @@ -17,6 +18,7 @@ V11GetApiUtils, V11PostApiUtils, ) +from twitter_openapi_python.tid import get_tid ParamType = dict[str, Any] @@ -25,40 +27,41 @@ class TwitterOpenapiPythonClient: api: twitter.ApiClient placeholder: ParamType - def __init__(self, api: twitter.ApiClient, placeholder: ParamType): + def __init__(self, api: twitter.ApiClient, placeholder: ParamType, ct: ClientTransaction): self.api = api self.placeholder = placeholder + self.ct = ct def get_default_api(self) -> DefaultApiUtils: - return DefaultApiUtils(twitter.DefaultApi(self.api), self.placeholder) + return DefaultApiUtils(twitter.DefaultApi(self.api), self.placeholder, self.ct) def get_initial_state_api(self) -> InitialStateApiUtils: return InitialStateApiUtils(self.api) def get_post_api(self) -> PostApiUtils: - return PostApiUtils(twitter.PostApi(self.api), self.placeholder) + return PostApiUtils(twitter.PostApi(self.api), self.placeholder, self.ct) def get_tweet_api(self) -> TweetApiUtils: - return TweetApiUtils(twitter.TweetApi(self.api), self.placeholder) + return TweetApiUtils(twitter.TweetApi(self.api), self.placeholder, self.ct) def get_user_api(self) -> UserApiUtils: - return UserApiUtils(twitter.UserApi(self.api), self.placeholder) + return UserApiUtils(twitter.UserApi(self.api), self.placeholder, self.ct) def get_users_api(self) -> UsersApiUtils: - return UsersApiUtils(twitter.UsersApi(self.api), self.placeholder) + return UsersApiUtils(twitter.UsersApi(self.api), self.placeholder, self.ct) def get_user_list_api(self) -> UserListApiUtils: - return UserListApiUtils(twitter.UserListApi(self.api), self.placeholder) + return UserListApiUtils(twitter.UserListApi(self.api), self.placeholder, self.ct) def get_v11_get_api(self) -> V11GetApiUtils: - return V11GetApiUtils(twitter.V11GetApi(self.api), self.placeholder) + return V11GetApiUtils(twitter.V11GetApi(self.api), self.placeholder, self.ct) def get_v11_post_api(self) -> V11PostApiUtils: - return V11PostApiUtils(twitter.V11PostApi(self.api), self.placeholder) + return V11PostApiUtils(twitter.V11PostApi(self.api), self.placeholder, self.ct) class TwitterOpenapiPython: - hash: str = "227f4e3716dbb034500945c378bd7874b611f8f5" + hash: str = "54acb4a0cef6aea969d3a1c75d37d58d80b0e5c0" placeholder_url = "https://raw.githubusercontent.com/fa0311/twitter-openapi/{hash}/src/config/placeholder.json" header = "https://raw.githubusercontent.com/fa0311/latest-user-agent/refs/heads/main/header.json" access_token: str = ( @@ -123,7 +126,8 @@ def get_twitter_openapi_python_client( ) -> TwitterOpenapiPythonClient: http = urllib3.PoolManager() flag = http.request("GET", self.placeholder_url.format(hash=self.hash)) - return TwitterOpenapiPythonClient(api, json.loads(flag.data)) + ct = get_tid() + return TwitterOpenapiPythonClient(api, json.loads(flag.data), ct) def get_client_from_cookies( self, diff --git a/twitter_openapi_python/twitter_openapi_python/tid.py b/twitter_openapi_python/twitter_openapi_python/tid.py new file mode 100644 index 0000000..217c699 --- /dev/null +++ b/twitter_openapi_python/twitter_openapi_python/tid.py @@ -0,0 +1,17 @@ +import bs4 +import requests +from x_client_transaction import ClientTransaction +from x_client_transaction.utils import generate_headers, get_ondemand_file_url, handle_x_migration + + +def get_tid(): + session = requests.Session() + session.headers = generate_headers() # type: ignore + home_page_response = handle_x_migration(session=session) + home_page = session.get(url="https://x.com") + home_page_response = bs4.BeautifulSoup(home_page.content, "html.parser") + ondemand_file_url = get_ondemand_file_url(response=home_page_response) + ondemand_file = session.get(url=ondemand_file_url) # type: ignore + ondemand_file_response = bs4.BeautifulSoup(ondemand_file.content, "html.parser") + ct = ClientTransaction(home_page_response=home_page_response, ondemand_file_response=ondemand_file_response) + return ct diff --git a/twitter_openapi_python/twitter_openapi_python/utils/api.py b/twitter_openapi_python/twitter_openapi_python/utils/api.py index 82e1c81..827e585 100644 --- a/twitter_openapi_python/twitter_openapi_python/utils/api.py +++ b/twitter_openapi_python/twitter_openapi_python/utils/api.py @@ -3,6 +3,7 @@ import twitter_openapi_python_generated as twitter import twitter_openapi_python_generated.models as models +from x_client_transaction import ClientTransaction from twitter_openapi_python.models import ( ApiUtilsHeader, @@ -36,7 +37,7 @@ def filter_fn(x: Optional[T]) -> TypeGuard[T]: return list(filter(filter_fn, x)) -def get_kwargs(flag: ParamType, additional: ParamType) -> ParamType: +def get_kwargs(flag: ParamType, additional: ParamType, ct: ClientTransaction) -> ParamType: assert flag is not None kwargs = {"path_query_id": flag["queryId"]} if flag.get("variables") is not None: @@ -45,9 +46,16 @@ def get_kwargs(flag: ParamType, additional: ParamType) -> ParamType: kwargs["features"] = json.dumps(flag["features"]) if flag.get("fieldToggles") is not None: kwargs["field_toggles"] = json.dumps(flag["fieldToggles"]) + if flag.get("@path") is not None: + kwargs["_headers"] = get_headers(flag, ct) return kwargs +def get_headers(flag: ParamType, ct: ClientTransaction) -> Dict[str, str]: + tid = ct.generate_transaction_id(flag["@method"], flag["@path"]) + return {"x-client-transaction-id": tid} + + def get_legacy_kwargs(flag: ParamType, additional: ParamType) -> ParamType: assert flag is not None