From bcfefe4ea32ad4fbace3520bae33d4e31839819d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 2 Feb 2025 02:19:29 +0900 Subject: [PATCH 1/3] update 0.0.29 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .../.openapi-generator/FILES | 15 +++ twitter_openapi_python_generated/README.md | 7 +- .../docs/ContentItemType.md | 2 + .../docs/ContentUnion.md | 2 +- .../docs/FeedbackInfo.md | 1 + .../docs/ItemContentUnion.md | 2 + .../docs/TimelineTimelineModule.md | 2 +- .../docs/TimelineTombstone.md | 32 +++++ .../docs/TombstoneEntity.md | 31 +++++ .../docs/TombstoneInfo.md | 30 +++++ .../docs/TombstoneRef.md | 31 +++++ .../docs/TombstoneRichText.md | 31 +++++ .../docs/Tweet.md | 1 + .../docs/TweetApi.md | 56 ++++----- .../docs/TweetUnion.md | 1 + .../docs/TypeName.md | 2 + twitter_openapi_python_generated/docs/User.md | 1 + .../docs/UserApi.md | 8 +- .../docs/UserListApi.md | 40 +++---- .../docs/UserUnion.md | 1 + .../docs/UsersApi.md | 8 +- .../pyproject.toml | 2 +- twitter_openapi_python_generated/setup.py | 2 +- .../test/test_content_union.py | 14 ++- .../test/test_create_tweet.py | 2 + .../test/test_create_tweet_response.py | 2 + .../test/test_create_tweet_response_data.py | 1 + .../test/test_create_tweet_response_result.py | 2 + .../test/test_feedback_info.py | 4 + .../test/test_item_content_union.py | 17 ++- .../test/test_module_entry.py | 4 + .../test/test_timeline_timeline_module.py | 14 ++- .../test/test_timeline_tombstone.py | 68 +++++++++++ .../test/test_tombstone_entity.py | 57 +++++++++ .../test/test_tombstone_info.py | 64 ++++++++++ .../test/test_tombstone_ref.py | 54 +++++++++ .../test/test_tombstone_rich_text.py | 62 ++++++++++ .../test/test_tweet.py | 1 + .../test/test_tweet_union.py | 1 + .../test_tweet_with_visibility_results.py | 2 + .../test/test_user.py | 1 + .../test/test_user_union.py | 1 + .../tools/openapi-generator-config.yaml | 2 +- .../twitter-openapi | 2 +- .../__init__.py | 7 +- .../api_client.py | 2 +- .../configuration.py | 2 +- .../models/__init__.py | 5 + .../models/content_item_type.py | 1 + .../models/feedback_info.py | 8 +- .../models/item_content_union.py | 35 ++++-- .../models/timeline_timeline_module.py | 8 +- .../models/timeline_tombstone.py | 110 +++++++++++++++++ .../models/tombstone_entity.py | 96 +++++++++++++++ .../models/tombstone_info.py | 94 +++++++++++++++ .../models/tombstone_ref.py | 112 ++++++++++++++++++ .../models/tombstone_rich_text.py | 100 ++++++++++++++++ .../models/tweet.py | 4 +- .../models/type_name.py | 1 + .../models/user.py | 14 ++- 60 files changed, 1198 insertions(+), 84 deletions(-) create mode 100644 twitter_openapi_python_generated/docs/TimelineTombstone.md create mode 100644 twitter_openapi_python_generated/docs/TombstoneEntity.md create mode 100644 twitter_openapi_python_generated/docs/TombstoneInfo.md create mode 100644 twitter_openapi_python_generated/docs/TombstoneRef.md create mode 100644 twitter_openapi_python_generated/docs/TombstoneRichText.md create mode 100644 twitter_openapi_python_generated/test/test_timeline_tombstone.py create mode 100644 twitter_openapi_python_generated/test/test_tombstone_entity.py create mode 100644 twitter_openapi_python_generated/test/test_tombstone_info.py create mode 100644 twitter_openapi_python_generated/test/test_tombstone_ref.py create mode 100644 twitter_openapi_python_generated/test/test_tombstone_rich_text.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_tombstone.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_entity.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_info.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_ref.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_rich_text.py diff --git a/twitter_openapi_python_generated/.openapi-generator/FILES b/twitter_openapi_python_generated/.openapi-generator/FILES index 4edf30c3..67fe2444 100644 --- a/twitter_openapi_python_generated/.openapi-generator/FILES +++ b/twitter_openapi_python_generated/.openapi-generator/FILES @@ -193,11 +193,16 @@ docs/TimelineTerminateTimeline.md docs/TimelineTimelineCursor.md docs/TimelineTimelineItem.md docs/TimelineTimelineModule.md +docs/TimelineTombstone.md docs/TimelineTopicContext.md docs/TimelineTweet.md docs/TimelineUser.md docs/TimelineV2.md docs/Timestamp.md +docs/TombstoneEntity.md +docs/TombstoneInfo.md +docs/TombstoneRef.md +docs/TombstoneRichText.md docs/TopicContext.md docs/Tracing.md docs/TrendResults.md @@ -487,11 +492,16 @@ test/test_timeline_terminate_timeline.py test/test_timeline_timeline_cursor.py test/test_timeline_timeline_item.py test/test_timeline_timeline_module.py +test/test_timeline_tombstone.py test/test_timeline_topic_context.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 +test/test_tombstone_ref.py +test/test_tombstone_rich_text.py test/test_topic_context.py test/test_tracing.py test/test_trend_results.py @@ -789,11 +799,16 @@ twitter_openapi_python_generated/models/timeline_terminate_timeline.py twitter_openapi_python_generated/models/timeline_timeline_cursor.py twitter_openapi_python_generated/models/timeline_timeline_item.py twitter_openapi_python_generated/models/timeline_timeline_module.py +twitter_openapi_python_generated/models/timeline_tombstone.py twitter_openapi_python_generated/models/timeline_topic_context.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 +twitter_openapi_python_generated/models/tombstone_ref.py +twitter_openapi_python_generated/models/tombstone_rich_text.py twitter_openapi_python_generated/models/topic_context.py twitter_openapi_python_generated/models/tracing.py twitter_openapi_python_generated/models/trend_results.py diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md index 72440a51..e13a45b3 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.28 +- Package version: 0.0.29 - Generator version: 7.10.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -453,11 +453,16 @@ Class | Method | HTTP request | Description - [TimelineTimelineCursor](docs/TimelineTimelineCursor.md) - [TimelineTimelineItem](docs/TimelineTimelineItem.md) - [TimelineTimelineModule](docs/TimelineTimelineModule.md) + - [TimelineTombstone](docs/TimelineTombstone.md) - [TimelineTopicContext](docs/TimelineTopicContext.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) + - [TombstoneRef](docs/TombstoneRef.md) + - [TombstoneRichText](docs/TombstoneRichText.md) - [TopicContext](docs/TopicContext.md) - [Tracing](docs/Tracing.md) - [TrendResults](docs/TrendResults.md) diff --git a/twitter_openapi_python_generated/docs/ContentItemType.md b/twitter_openapi_python_generated/docs/ContentItemType.md index 49d7967d..e50aa608 100644 --- a/twitter_openapi_python_generated/docs/ContentItemType.md +++ b/twitter_openapi_python_generated/docs/ContentItemType.md @@ -15,6 +15,8 @@ * `TIMELINECOMMUNITY` (value: `'TimelineCommunity'`) +* `TIMELINETOMBSTONE` (value: `'TimelineTombstone'`) + [[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 2f254577..e06b7ed5 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** | **Dict[str, object]** | | +**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | **entry_type** | [**ContentEntryType**](ContentEntryType.md) | | **feedback_info** | [**FeedbackInfo**](FeedbackInfo.md) | | [optional] **item_content** | [**ItemContentUnion**](ItemContentUnion.md) | | diff --git a/twitter_openapi_python_generated/docs/FeedbackInfo.md b/twitter_openapi_python_generated/docs/FeedbackInfo.md index d0592f4c..52e56b9f 100644 --- a/twitter_openapi_python_generated/docs/FeedbackInfo.md +++ b/twitter_openapi_python_generated/docs/FeedbackInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | [optional] **feedback_keys** | **List[str]** | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/ItemContentUnion.md b/twitter_openapi_python_generated/docs/ItemContentUnion.md index f9dd4173..617190e7 100644 --- a/twitter_openapi_python_generated/docs/ItemContentUnion.md +++ b/twitter_openapi_python_generated/docs/ItemContentUnion.md @@ -20,6 +20,8 @@ Name | Type | Description | Notes **value** | **str** | | **user_display_type** | **str** | | **user_results** | [**UserResults**](UserResults.md) | | +**tombstone_display_type** | **str** | | [optional] +**tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional] ## Example diff --git a/twitter_openapi_python_generated/docs/TimelineTimelineModule.md b/twitter_openapi_python_generated/docs/TimelineTimelineModule.md index ceb643cf..7a2913d3 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** | **Dict[str, object]** | | +**client_event_info** | [**ClientEventInfo**](ClientEventInfo.md) | | **display_type** | [**DisplayType**](DisplayType.md) | | **entry_type** | [**ContentEntryType**](ContentEntryType.md) | | **feedback_info** | [**FeedbackInfo**](FeedbackInfo.md) | | [optional] diff --git a/twitter_openapi_python_generated/docs/TimelineTombstone.md b/twitter_openapi_python_generated/docs/TimelineTombstone.md new file mode 100644 index 00000000..d8b688be --- /dev/null +++ b/twitter_openapi_python_generated/docs/TimelineTombstone.md @@ -0,0 +1,32 @@ +# TimelineTombstone + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | [optional] +**item_type** | [**ContentItemType**](ContentItemType.md) | | [optional] +**tombstone_display_type** | **str** | | [optional] +**tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.timeline_tombstone import TimelineTombstone + +# TODO update the JSON string below +json = "{}" +# create an instance of TimelineTombstone from a JSON string +timeline_tombstone_instance = TimelineTombstone.from_json(json) +# print the JSON string representation of the object +print(TimelineTombstone.to_json()) + +# convert the object into a dict +timeline_tombstone_dict = timeline_tombstone_instance.to_dict() +# create an instance of TimelineTombstone from a dict +timeline_tombstone_from_dict = TimelineTombstone.from_dict(timeline_tombstone_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/TombstoneEntity.md b/twitter_openapi_python_generated/docs/TombstoneEntity.md new file mode 100644 index 00000000..671a08a0 --- /dev/null +++ b/twitter_openapi_python_generated/docs/TombstoneEntity.md @@ -0,0 +1,31 @@ +# TombstoneEntity + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from_index** | **int** | | [optional] +**ref** | [**TombstoneRef**](TombstoneRef.md) | | [optional] +**to_index** | **int** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.tombstone_entity import TombstoneEntity + +# TODO update the JSON string below +json = "{}" +# create an instance of TombstoneEntity from a JSON string +tombstone_entity_instance = TombstoneEntity.from_json(json) +# print the JSON string representation of the object +print(TombstoneEntity.to_json()) + +# convert the object into a dict +tombstone_entity_dict = tombstone_entity_instance.to_dict() +# create an instance of TombstoneEntity from a dict +tombstone_entity_from_dict = TombstoneEntity.from_dict(tombstone_entity_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/TombstoneInfo.md b/twitter_openapi_python_generated/docs/TombstoneInfo.md new file mode 100644 index 00000000..8a4da12d --- /dev/null +++ b/twitter_openapi_python_generated/docs/TombstoneInfo.md @@ -0,0 +1,30 @@ +# TombstoneInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rich_text** | [**TombstoneRichText**](TombstoneRichText.md) | | [optional] +**text** | **str** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of TombstoneInfo from a JSON string +tombstone_info_instance = TombstoneInfo.from_json(json) +# print the JSON string representation of the object +print(TombstoneInfo.to_json()) + +# convert the object into a dict +tombstone_info_dict = tombstone_info_instance.to_dict() +# create an instance of TombstoneInfo from a dict +tombstone_info_from_dict = TombstoneInfo.from_dict(tombstone_info_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/TombstoneRef.md b/twitter_openapi_python_generated/docs/TombstoneRef.md new file mode 100644 index 00000000..cae13d2d --- /dev/null +++ b/twitter_openapi_python_generated/docs/TombstoneRef.md @@ -0,0 +1,31 @@ +# TombstoneRef + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**url** | **str** | | [optional] +**url_type** | **str** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef + +# TODO update the JSON string below +json = "{}" +# create an instance of TombstoneRef from a JSON string +tombstone_ref_instance = TombstoneRef.from_json(json) +# print the JSON string representation of the object +print(TombstoneRef.to_json()) + +# convert the object into a dict +tombstone_ref_dict = tombstone_ref_instance.to_dict() +# create an instance of TombstoneRef from a dict +tombstone_ref_from_dict = TombstoneRef.from_dict(tombstone_ref_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/TombstoneRichText.md b/twitter_openapi_python_generated/docs/TombstoneRichText.md new file mode 100644 index 00000000..11622f07 --- /dev/null +++ b/twitter_openapi_python_generated/docs/TombstoneRichText.md @@ -0,0 +1,31 @@ +# TombstoneRichText + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entities** | [**List[TombstoneEntity]**](TombstoneEntity.md) | | [optional] +**rtl** | **bool** | | [optional] +**text** | **str** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText + +# TODO update the JSON string below +json = "{}" +# create an instance of TombstoneRichText from a JSON string +tombstone_rich_text_instance = TombstoneRichText.from_json(json) +# print the JSON string representation of the object +print(TombstoneRichText.to_json()) + +# convert the object into a dict +tombstone_rich_text_dict = tombstone_rich_text_instance.to_dict() +# create an instance of TombstoneRichText from a dict +tombstone_rich_text_from_dict = TombstoneRichText.from_dict(tombstone_rich_text_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/Tweet.md b/twitter_openapi_python_generated/docs/Tweet.md index 9ceb7ea5..59232944 100644 --- a/twitter_openapi_python_generated/docs/Tweet.md +++ b/twitter_openapi_python_generated/docs/Tweet.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **core** | [**UserResultCore**](UserResultCore.md) | | [optional] **edit_control** | [**TweetEditControl**](TweetEditControl.md) | | [optional] **edit_prespective** | [**TweetEditPrespective**](TweetEditPrespective.md) | | [optional] +**grok_analysis_button** | **bool** | | [optional] **grok_analysis_followups** | **List[str]** | | [optional] **grok_share_attachment** | [**GrokShareAttachment**](GrokShareAttachment.md) | | [optional] **has_birdwatch_notes** | **bool** | | [optional] diff --git a/twitter_openapi_python_generated/docs/TweetApi.md b/twitter_openapi_python_generated/docs/TweetApi.md index d28155c4..c3e26723 100644 --- a/twitter_openapi_python_generated/docs/TweetApi.md +++ b/twitter_openapi_python_generated/docs/TweetApi.md @@ -443,9 +443,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 = 'UyZAW503sqWQV5x1PrDmBg' # str | (default to 'UyZAW503sqWQV5x1PrDmBg') + path_query_id = 'zpTeOZL0zWoexBZqhdgFyg' # str | (default to 'zpTeOZL0zWoexBZqhdgFyg') 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": 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 = '{"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}') try: api_response = api_instance.get_home_latest_timeline(path_query_id, variables, features) @@ -462,9 +462,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'UyZAW503sqWQV5x1PrDmBg'] + **path_query_id** | **str**| | [default to 'zpTeOZL0zWoexBZqhdgFyg'] **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": 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 '{"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}'] ### Return type @@ -678,9 +678,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 = 'iRoS56PXLCEKgs8wLsGYnQ' # str | (default to 'iRoS56PXLCEKgs8wLsGYnQ') + path_query_id = '_Tz2dT1if3L4eegYOyCtsA' # str | (default to '_Tz2dT1if3L4eegYOyCtsA') 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": 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 = '{"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}') try: api_response = api_instance.get_home_timeline(path_query_id, variables, features) @@ -697,9 +697,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'iRoS56PXLCEKgs8wLsGYnQ'] + **path_query_id** | **str**| | [default to '_Tz2dT1if3L4eegYOyCtsA'] **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": 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 '{"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}'] ### Return type @@ -1150,9 +1150,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-sxfUsIzy307vKGGTJR4g' # str | (default to 'h-sxfUsIzy307vKGGTJR4g') + path_query_id = 'H_dAKg97dSn3FOMfrNS8nw' # str | (default to 'H_dAKg97dSn3FOMfrNS8nw') variables = '{"listId": "1539453138322673664", "count": 20}' # str | (default to '{"listId": "1539453138322673664", "count": 20}') - 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 = '{"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}') try: api_response = api_instance.get_list_latest_tweets_timeline(path_query_id, variables, features) @@ -1169,9 +1169,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'h-sxfUsIzy307vKGGTJR4g'] + **path_query_id** | **str**| | [default to 'H_dAKg97dSn3FOMfrNS8nw'] **variables** | **str**| | [default to '{"listId": "1539453138322673664", "count": 20}'] - **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 '{"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}'] ### Return type @@ -1385,9 +1385,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 = 'jiR2G5DAUAraqAYpcg9O-g' # str | (default to 'jiR2G5DAUAraqAYpcg9O-g') + path_query_id = 'U3QTLwGF8sZCHDuWIMSAmg' # str | (default to 'U3QTLwGF8sZCHDuWIMSAmg') 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": 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 = '{"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}') try: api_response = api_instance.get_search_timeline(path_query_id, variables, features) @@ -1404,9 +1404,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'jiR2G5DAUAraqAYpcg9O-g'] + **path_query_id** | **str**| | [default to 'U3QTLwGF8sZCHDuWIMSAmg'] **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": 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 '{"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}'] ### Return type @@ -1620,9 +1620,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 = 'GtcBtFhtQymrpxAs5MALVA' # str | (default to 'GtcBtFhtQymrpxAs5MALVA') + path_query_id = 'Ez6kRPyXbqNlhBwcNMpU-Q' # str | (default to 'Ez6kRPyXbqNlhBwcNMpU-Q') 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": 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 = '{"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}') field_toggles = '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}' # str | (default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}') try: @@ -1640,9 +1640,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'GtcBtFhtQymrpxAs5MALVA'] + **path_query_id** | **str**| | [default to 'Ez6kRPyXbqNlhBwcNMpU-Q'] **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": 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 '{"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}'] **field_toggles** | **str**| | [default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}'] ### Return type @@ -2094,9 +2094,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 = 'BGmkmGDG0kZPM-aoQtNTTw' # str | (default to 'BGmkmGDG0kZPM-aoQtNTTw') + 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": 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 = '{"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}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2114,9 +2114,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'BGmkmGDG0kZPM-aoQtNTTw'] + **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": 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 '{"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}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2331,9 +2331,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 = 'bDGQZ9i975PnuFhihvzGug' # str | (default to 'bDGQZ9i975PnuFhihvzGug') + 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": 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 = '{"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}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2351,9 +2351,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'bDGQZ9i975PnuFhihvzGug'] + **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": 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 '{"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}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/TweetUnion.md b/twitter_openapi_python_generated/docs/TweetUnion.md index 9f7aebeb..3d82c7fa 100644 --- a/twitter_openapi_python_generated/docs/TweetUnion.md +++ b/twitter_openapi_python_generated/docs/TweetUnion.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **core** | [**UserResultCore**](UserResultCore.md) | | [optional] **edit_control** | [**TweetEditControl**](TweetEditControl.md) | | [optional] **edit_prespective** | [**TweetEditPrespective**](TweetEditPrespective.md) | | [optional] +**grok_analysis_button** | **bool** | | [optional] **grok_analysis_followups** | **List[str]** | | [optional] **grok_share_attachment** | [**GrokShareAttachment**](GrokShareAttachment.md) | | [optional] **has_birdwatch_notes** | **bool** | | [optional] diff --git a/twitter_openapi_python_generated/docs/TypeName.md b/twitter_openapi_python_generated/docs/TypeName.md index 513acc30..d990568b 100644 --- a/twitter_openapi_python_generated/docs/TypeName.md +++ b/twitter_openapi_python_generated/docs/TypeName.md @@ -25,6 +25,8 @@ * `TIMELINECOMMUNITY` (value: `'TimelineCommunity'`) +* `TIMELINETOMBSTONE` (value: `'TimelineTombstone'`) + * `TWEETUNAVAILABLE` (value: `'TweetUnavailable'`) * `TWEETPREVIEWDISPLAY` (value: `'TweetPreviewDisplay'`) diff --git a/twitter_openapi_python_generated/docs/User.md b/twitter_openapi_python_generated/docs/User.md index fa488e08..02bab951 100644 --- a/twitter_openapi_python_generated/docs/User.md +++ b/twitter_openapi_python_generated/docs/User.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **is_profile_translatable** | **bool** | | [optional] **legacy** | [**UserLegacy**](UserLegacy.md) | | **legacy_extended_profile** | [**UserLegacyExtendedProfile**](UserLegacyExtendedProfile.md) | | [optional] +**parody_commentary_fan_label** | **str** | | [optional] **premium_gifting_eligible** | **bool** | | [optional] **professional** | [**UserProfessional**](UserProfessional.md) | | [optional] **profile_image_shape** | **str** | | diff --git a/twitter_openapi_python_generated/docs/UserApi.md b/twitter_openapi_python_generated/docs/UserApi.md index d260a272..e6e0ee0e 100644 --- a/twitter_openapi_python_generated/docs/UserApi.md +++ b/twitter_openapi_python_generated/docs/UserApi.md @@ -434,9 +434,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.UserApi(api_client) - path_query_id = 'QGIw94L0abhuohrr76cSbw' # str | (default to 'QGIw94L0abhuohrr76cSbw') + path_query_id = '32pL5BWe9WKeSK1MoPvFQQ' # str | (default to '32pL5BWe9WKeSK1MoPvFQQ') variables = '{"screen_name": "elonmusk"}' # str | (default to '{"screen_name": "elonmusk"}') - features = '{"hidden_profile_subscriptions_enabled": true, "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, "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": false, "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}') + 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}') try: @@ -454,9 +454,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'QGIw94L0abhuohrr76cSbw'] + **path_query_id** | **str**| | [default to '32pL5BWe9WKeSK1MoPvFQQ'] **variables** | **str**| | [default to '{"screen_name": "elonmusk"}'] - **features** | **str**| | [default to '{"hidden_profile_subscriptions_enabled": true, "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, "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}'] + **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}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UserListApi.md b/twitter_openapi_python_generated/docs/UserListApi.md index d6ee60da..af873e25 100644 --- a/twitter_openapi_python_generated/docs/UserListApi.md +++ b/twitter_openapi_python_generated/docs/UserListApi.md @@ -202,9 +202,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 = 'DDetc9RS4TZduc7kFfaFSA' # str | (default to 'DDetc9RS4TZduc7kFfaFSA') + path_query_id = 'aLZ5wrqDYuDm9c_xNl667w' # str | (default to 'aLZ5wrqDYuDm9c_xNl667w') 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": 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 = '{"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}') try: api_response = api_instance.get_favoriters(path_query_id, variables, features) @@ -221,9 +221,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'DDetc9RS4TZduc7kFfaFSA'] + **path_query_id** | **str**| | [default to 'aLZ5wrqDYuDm9c_xNl667w'] **variables** | **str**| | [default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": 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 '{"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}'] ### Return type @@ -437,9 +437,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 = 'r4fuEJKOqqzaYcvJU5ZWVA' # str | (default to 'r4fuEJKOqqzaYcvJU5ZWVA') + path_query_id = 'OGScL-RC4DFMsRGOCjPR6g' # str | (default to 'OGScL-RC4DFMsRGOCjPR6g') 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": 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 = '{"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}') try: api_response = api_instance.get_followers(path_query_id, variables, features) @@ -456,9 +456,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'r4fuEJKOqqzaYcvJU5ZWVA'] + **path_query_id** | **str**| | [default to 'OGScL-RC4DFMsRGOCjPR6g'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **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 '{"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}'] ### Return type @@ -672,9 +672,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 = 'qJuLtV192xrB8Wftv6eXFw' # str | (default to 'qJuLtV192xrB8Wftv6eXFw') + path_query_id = 'FP4v9Lj24ZDF1KgV9aM8LA' # str | (default to 'FP4v9Lj24ZDF1KgV9aM8LA') 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": 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 = '{"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}') try: api_response = api_instance.get_followers_you_know(path_query_id, variables, features) @@ -691,9 +691,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'qJuLtV192xrB8Wftv6eXFw'] + **path_query_id** | **str**| | [default to 'FP4v9Lj24ZDF1KgV9aM8LA'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **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 '{"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}'] ### Return type @@ -907,9 +907,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 = 'PgxzDG3JdZLoesQh41mcRw' # str | (default to 'PgxzDG3JdZLoesQh41mcRw') + path_query_id = 'o5eNLkJb03ayTQa97Cpp7w' # str | (default to 'o5eNLkJb03ayTQa97Cpp7w') 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": 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 = '{"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}') try: api_response = api_instance.get_following(path_query_id, variables, features) @@ -926,9 +926,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'PgxzDG3JdZLoesQh41mcRw'] + **path_query_id** | **str**| | [default to 'o5eNLkJb03ayTQa97Cpp7w'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false}'] - **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 '{"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}'] ### Return type @@ -1142,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.UserListApi(api_client) - path_query_id = 'VCx3-p7GvELPtH0QHQcA0g' # str | (default to 'VCx3-p7GvELPtH0QHQcA0g') + path_query_id = 'niCJ2QyTuAgZWv01E7mqJQ' # str | (default to 'niCJ2QyTuAgZWv01E7mqJQ') 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": 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 = '{"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}') try: api_response = api_instance.get_retweeters(path_query_id, variables, features) @@ -1161,9 +1161,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'VCx3-p7GvELPtH0QHQcA0g'] + **path_query_id** | **str**| | [default to 'niCJ2QyTuAgZWv01E7mqJQ'] **variables** | **str**| | [default to '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent": 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 '{"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}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UserUnion.md b/twitter_openapi_python_generated/docs/UserUnion.md index 127527f8..d5f6d6b6 100644 --- a/twitter_openapi_python_generated/docs/UserUnion.md +++ b/twitter_openapi_python_generated/docs/UserUnion.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **is_profile_translatable** | **bool** | | [optional] **legacy** | [**UserLegacy**](UserLegacy.md) | | **legacy_extended_profile** | [**UserLegacyExtendedProfile**](UserLegacyExtendedProfile.md) | | [optional] +**parody_commentary_fan_label** | **str** | | [optional] **premium_gifting_eligible** | **bool** | | [optional] **professional** | [**UserProfessional**](UserProfessional.md) | | [optional] **profile_image_shape** | **str** | | diff --git a/twitter_openapi_python_generated/docs/UsersApi.md b/twitter_openapi_python_generated/docs/UsersApi.md index 1f80ecee..ce2f4c57 100644 --- a/twitter_openapi_python_generated/docs/UsersApi.md +++ b/twitter_openapi_python_generated/docs/UsersApi.md @@ -198,9 +198,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 = 'lc85bOG5T3IIS4u485VtBg' # str | (default to 'lc85bOG5T3IIS4u485VtBg') + path_query_id = 'PyRggX3LQweP9nSF6PHliA' # str | (default to 'PyRggX3LQweP9nSF6PHliA') variables = '{"userIds": ["44196397"]}' # str | (default to '{"userIds": ["44196397"]}') - features = '{"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 '{"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, "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}') try: api_response = api_instance.get_users_by_rest_ids(path_query_id, variables, features) @@ -217,9 +217,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'lc85bOG5T3IIS4u485VtBg'] + **path_query_id** | **str**| | [default to 'PyRggX3LQweP9nSF6PHliA'] **variables** | **str**| | [default to '{"userIds": ["44196397"]}'] - **features** | **str**| | [default to '{"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, "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}'] ### Return type diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml index 6a1a3af1..5a7b5d90 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.28" +version = "0.0.29" 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 bbe63b2b..4e4f05e4 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.28" +VERSION = "0.0.29" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/twitter_openapi_python_generated/test/test_content_union.py b/twitter_openapi_python_generated/test/test_content_union.py index 4c9e889e..98990991 100644 --- a/twitter_openapi_python_generated/test/test_content_union.py +++ b/twitter_openapi_python_generated/test/test_content_union.py @@ -37,9 +37,16 @@ def make_instance(self, include_optional) -> ContentUnion: if include_optional: return ContentUnion( typename = 'TimelineTweet', - client_event_info = { }, + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), entry_type = 'TimelineTimelineItem', feedback_info = twitter_openapi_python_generated.models.feedback_info.FeedbackInfo( + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), feedback_keys = [ '' ], ), @@ -73,7 +80,10 @@ def make_instance(self, include_optional) -> ContentUnion: else: return ContentUnion( typename = 'TimelineTweet', - client_event_info = { }, + 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 cb656da0..172cc119 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet.py +++ b/twitter_openapi_python_generated/test/test_create_tweet.py @@ -235,6 +235,7 @@ def make_instance(self, include_optional) -> CreateTweet: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], @@ -667,6 +668,7 @@ def make_instance(self, include_optional) -> CreateTweet: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], 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 5ef67e8a..35c4e524 100644 --- a/twitter_openapi_python_generated/test/test_create_tweet_response.py +++ b/twitter_openapi_python_generated/test/test_create_tweet_response.py @@ -238,6 +238,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], @@ -700,6 +701,7 @@ def make_instance(self, include_optional) -> CreateTweetResponse: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], 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 a7aa8ded..cd81a982 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 @@ -237,6 +237,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseData: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], 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 c88f357b..fc383522 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 @@ -236,6 +236,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], @@ -669,6 +670,7 @@ def make_instance(self, include_optional) -> CreateTweetResponseResult: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], diff --git a/twitter_openapi_python_generated/test/test_feedback_info.py b/twitter_openapi_python_generated/test/test_feedback_info.py index b27dc3de..ee1a1b54 100644 --- a/twitter_openapi_python_generated/test/test_feedback_info.py +++ b/twitter_openapi_python_generated/test/test_feedback_info.py @@ -36,6 +36,10 @@ def make_instance(self, include_optional) -> FeedbackInfo: model = FeedbackInfo() if include_optional: return FeedbackInfo( + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), feedback_keys = [ '' ] 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 ae0e9542..adec78b6 100644 --- a/twitter_openapi_python_generated/test/test_item_content_union.py +++ b/twitter_openapi_python_generated/test/test_item_content_union.py @@ -60,7 +60,22 @@ def make_instance(self, include_optional) -> ItemContentUnion: value = '', user_display_type = 'User', user_results = twitter_openapi_python_generated.models.user_results.UserResults( - result = null, ) + result = null, ), + tombstone_display_type = 'Inline', + tombstone_info = twitter_openapi_python_generated.models.tombstone_info.TombstoneInfo( + rich_text = twitter_openapi_python_generated.models.tombstone_rich_text.TombstoneRichText( + entities = [ + twitter_openapi_python_generated.models.tombstone_entity.TombstoneEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.tombstone_ref.TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + rtl = True, + text = '', ), + text = '', ) ) else: return ItemContentUnion( diff --git a/twitter_openapi_python_generated/test/test_module_entry.py b/twitter_openapi_python_generated/test/test_module_entry.py index 146ffdec..4d947dc1 100644 --- a/twitter_openapi_python_generated/test/test_module_entry.py +++ b/twitter_openapi_python_generated/test/test_module_entry.py @@ -41,6 +41,10 @@ def make_instance(self, include_optional) -> ModuleEntry: details = { }, element = '', ), feedback_info = twitter_openapi_python_generated.models.feedback_info.FeedbackInfo( + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), feedback_keys = [ '' ], ), 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 e26a4467..e3870644 100644 --- a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py +++ b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py @@ -37,10 +37,17 @@ def make_instance(self, include_optional) -> TimelineTimelineModule: if include_optional: return TimelineTimelineModule( typename = 'TimelineTweet', - client_event_info = { }, + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), display_type = 'Vertical', entry_type = 'TimelineTimelineItem', feedback_info = twitter_openapi_python_generated.models.feedback_info.FeedbackInfo( + client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( + component = '', + details = { }, + element = '', ), feedback_keys = [ '' ], ), @@ -65,7 +72,10 @@ def make_instance(self, include_optional) -> TimelineTimelineModule: else: return TimelineTimelineModule( typename = 'TimelineTweet', - client_event_info = { }, + 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_tombstone.py b/twitter_openapi_python_generated/test/test_timeline_tombstone.py new file mode 100644 index 00000000..f86cf53a --- /dev/null +++ b/twitter_openapi_python_generated/test/test_timeline_tombstone.py @@ -0,0 +1,68 @@ +# 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_tombstone import TimelineTombstone + +class TestTimelineTombstone(unittest.TestCase): + """TimelineTombstone unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TimelineTombstone: + """Test TimelineTombstone + 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 `TimelineTombstone` + """ + model = TimelineTombstone() + if include_optional: + return TimelineTombstone( + typename = 'TimelineTweet', + item_type = 'TimelineTweet', + tombstone_display_type = 'Inline', + tombstone_info = twitter_openapi_python_generated.models.tombstone_info.TombstoneInfo( + rich_text = twitter_openapi_python_generated.models.tombstone_rich_text.TombstoneRichText( + entities = [ + twitter_openapi_python_generated.models.tombstone_entity.TombstoneEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.tombstone_ref.TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + rtl = True, + text = '', ), + text = '', ) + ) + else: + return TimelineTombstone( + ) + """ + + def testTimelineTombstone(self): + """Test TimelineTombstone""" + # 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_tombstone_entity.py b/twitter_openapi_python_generated/test/test_tombstone_entity.py new file mode 100644 index 00000000..03bd755d --- /dev/null +++ b/twitter_openapi_python_generated/test/test_tombstone_entity.py @@ -0,0 +1,57 @@ +# 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.tombstone_entity import TombstoneEntity + +class TestTombstoneEntity(unittest.TestCase): + """TombstoneEntity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TombstoneEntity: + """Test TombstoneEntity + 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 `TombstoneEntity` + """ + model = TombstoneEntity() + if include_optional: + return TombstoneEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.tombstone_ref.TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56 + ) + else: + return TombstoneEntity( + ) + """ + + def testTombstoneEntity(self): + """Test TombstoneEntity""" + # 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_tombstone_info.py b/twitter_openapi_python_generated/test/test_tombstone_info.py new file mode 100644 index 00000000..b6f7f840 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_tombstone_info.py @@ -0,0 +1,64 @@ +# 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.tombstone_info import TombstoneInfo + +class TestTombstoneInfo(unittest.TestCase): + """TombstoneInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TombstoneInfo: + """Test TombstoneInfo + 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 `TombstoneInfo` + """ + model = TombstoneInfo() + if include_optional: + return TombstoneInfo( + rich_text = twitter_openapi_python_generated.models.tombstone_rich_text.TombstoneRichText( + entities = [ + twitter_openapi_python_generated.models.tombstone_entity.TombstoneEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.tombstone_ref.TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + rtl = True, + text = '', ), + text = '' + ) + else: + return TombstoneInfo( + ) + """ + + def testTombstoneInfo(self): + """Test TombstoneInfo""" + # 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_tombstone_ref.py b/twitter_openapi_python_generated/test/test_tombstone_ref.py new file mode 100644 index 00000000..e27b2cd0 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_tombstone_ref.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.tombstone_ref import TombstoneRef + +class TestTombstoneRef(unittest.TestCase): + """TombstoneRef unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TombstoneRef: + """Test TombstoneRef + 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 `TombstoneRef` + """ + model = TombstoneRef() + if include_optional: + return TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl' + ) + else: + return TombstoneRef( + ) + """ + + def testTombstoneRef(self): + """Test TombstoneRef""" + # 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_tombstone_rich_text.py b/twitter_openapi_python_generated/test/test_tombstone_rich_text.py new file mode 100644 index 00000000..890532ec --- /dev/null +++ b/twitter_openapi_python_generated/test/test_tombstone_rich_text.py @@ -0,0 +1,62 @@ +# 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.tombstone_rich_text import TombstoneRichText + +class TestTombstoneRichText(unittest.TestCase): + """TombstoneRichText unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TombstoneRichText: + """Test TombstoneRichText + 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 `TombstoneRichText` + """ + model = TombstoneRichText() + if include_optional: + return TombstoneRichText( + entities = [ + twitter_openapi_python_generated.models.tombstone_entity.TombstoneEntity( + from_index = 56, + ref = twitter_openapi_python_generated.models.tombstone_ref.TombstoneRef( + type = 'TimelineUrl', + url = '', + url_type = 'ExternalUrl', ), + to_index = 56, ) + ], + rtl = True, + text = '' + ) + else: + return TombstoneRichText( + ) + """ + + def testTombstoneRichText(self): + """Test TombstoneRichText""" + # 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_tweet.py b/twitter_openapi_python_generated/test/test_tweet.py index 0ada3f60..639171f2 100644 --- a/twitter_openapi_python_generated/test/test_tweet.py +++ b/twitter_openapi_python_generated/test/test_tweet.py @@ -294,6 +294,7 @@ def make_instance(self, include_optional) -> Tweet: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], diff --git a/twitter_openapi_python_generated/test/test_tweet_union.py b/twitter_openapi_python_generated/test/test_tweet_union.py index 247b1b58..235655a5 100644 --- a/twitter_openapi_python_generated/test/test_tweet_union.py +++ b/twitter_openapi_python_generated/test/test_tweet_union.py @@ -294,6 +294,7 @@ def make_instance(self, include_optional) -> TweetUnion: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], 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 60f8ec14..1f25fc2d 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 @@ -264,6 +264,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], @@ -724,6 +725,7 @@ def make_instance(self, include_optional) -> TweetWithVisibilityResults: edit_prespective = twitter_openapi_python_generated.models.tweet_edit_prespective.TweetEditPrespective( favorited = True, retweeted = True, ), + grok_analysis_button = True, grok_analysis_followups = [ '' ], diff --git a/twitter_openapi_python_generated/test/test_user.py b/twitter_openapi_python_generated/test/test_user.py index cecf31ba..dd26bb19 100644 --- a/twitter_openapi_python_generated/test/test_user.py +++ b/twitter_openapi_python_generated/test/test_user.py @@ -103,6 +103,7 @@ def make_instance(self, include_optional) -> User: visibility = 'Self', year = 56, year_visibility = 'Self', ), ), + parody_commentary_fan_label = 'None', premium_gifting_eligible = True, professional = twitter_openapi_python_generated.models.user_professional.UserProfessional( category = [ diff --git a/twitter_openapi_python_generated/test/test_user_union.py b/twitter_openapi_python_generated/test/test_user_union.py index ca5a5c79..c8f22f12 100644 --- a/twitter_openapi_python_generated/test/test_user_union.py +++ b/twitter_openapi_python_generated/test/test_user_union.py @@ -103,6 +103,7 @@ def make_instance(self, include_optional) -> UserUnion: visibility = 'Self', year = 56, year_visibility = 'Self', ), ), + parody_commentary_fan_label = 'None', premium_gifting_eligible = True, professional = twitter_openapi_python_generated.models.user_professional.UserProfessional( category = [ diff --git a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml index 4cacc9ed..5a1590f2 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.28 +packageVersion: 0.0.29 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 653ea864..8b2d05d1 160000 --- a/twitter_openapi_python_generated/twitter-openapi +++ b/twitter_openapi_python_generated/twitter-openapi @@ -1 +1 @@ -Subproject commit 653ea8643fde76286223971c13a6e8d731755eeb +Subproject commit 8b2d05d1525404a29730f740a259026502be7cbd 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 96a4650f..b112c382 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.28" +__version__ = "0.0.29" # import apis into sdk package from twitter_openapi_python_generated.api.default_api import DefaultApi @@ -228,11 +228,16 @@ from twitter_openapi_python_generated.models.timeline_timeline_cursor import TimelineTimelineCursor from twitter_openapi_python_generated.models.timeline_timeline_item import TimelineTimelineItem from twitter_openapi_python_generated.models.timeline_timeline_module import TimelineTimelineModule +from twitter_openapi_python_generated.models.timeline_tombstone import TimelineTombstone from twitter_openapi_python_generated.models.timeline_topic_context import TimelineTopicContext 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 +from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef +from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText from twitter_openapi_python_generated.models.topic_context import TopicContext from twitter_openapi_python_generated.models.tracing import Tracing from twitter_openapi_python_generated.models.trend_results import TrendResults 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 334afb79..45836aa2 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.28/python' + self.user_agent = 'OpenAPI-Generator/0.0.29/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 c0393725..c8392d8f 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py @@ -743,7 +743,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.28".\ + "SDK Package Version: 0.0.29".\ 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 680f43e8..83b9edca 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 @@ -202,11 +202,16 @@ from twitter_openapi_python_generated.models.timeline_timeline_cursor import TimelineTimelineCursor from twitter_openapi_python_generated.models.timeline_timeline_item import TimelineTimelineItem from twitter_openapi_python_generated.models.timeline_timeline_module import TimelineTimelineModule +from twitter_openapi_python_generated.models.timeline_tombstone import TimelineTombstone from twitter_openapi_python_generated.models.timeline_topic_context import TimelineTopicContext 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 +from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef +from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText from twitter_openapi_python_generated.models.topic_context import TopicContext from twitter_openapi_python_generated.models.tracing import Tracing from twitter_openapi_python_generated.models.trend_results import TrendResults 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 91dd0eaa..8817f499 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 @@ -33,6 +33,7 @@ class ContentItemType(str, Enum): TIMELINEPROMPT = 'TimelinePrompt' TIMELINEMESSAGEPROMPT = 'TimelineMessagePrompt' TIMELINECOMMUNITY = 'TimelineCommunity' + TIMELINETOMBSTONE = 'TimelineTombstone' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_info.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_info.py index dac400bd..f26ec71c 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_info.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_info.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,9 @@ class FeedbackInfo(BaseModel): """ FeedbackInfo """ # noqa: E501 + client_event_info: Optional[ClientEventInfo] = Field(default=None, alias="clientEventInfo") feedback_keys: Optional[List[StrictStr]] = Field(default=None, alias="feedbackKeys") - __properties: ClassVar[List[str]] = ["feedbackKeys"] + __properties: ClassVar[List[str]] = ["clientEventInfo", "feedbackKeys"] 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 client_event_info + if self.client_event_info: + _dict['clientEventInfo'] = self.client_event_info.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({ + "clientEventInfo": ClientEventInfo.from_dict(obj["clientEventInfo"]) if obj.get("clientEventInfo") is not None else None, "feedbackKeys": obj.get("feedbackKeys") }) return _obj 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 18488944..7dd61259 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 @@ -22,13 +22,14 @@ from twitter_openapi_python_generated.models.timeline_message_prompt import TimelineMessagePrompt 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 from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet from twitter_openapi_python_generated.models.timeline_user import TimelineUser from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTweet", "TimelineUser"] +ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTweet", "TimelineUser"] class ItemContentUnion(BaseModel): """ @@ -46,8 +47,10 @@ class ItemContentUnion(BaseModel): oneof_schema_5_validator: Optional[TimelineMessagePrompt] = None # data type: TimelineCommunity oneof_schema_6_validator: Optional[TimelineCommunity] = None - actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTweet, TimelineUser]] = None - one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTweet", "TimelineUser" } + # data type: TimelineTombstone + oneof_schema_7_validator: Optional[TimelineTombstone] = None + actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTweet, TimelineUser]] = None + one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTweet", "TimelineUser" } model_config = ConfigDict( validate_assignment=True, @@ -103,12 +106,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineCommunity`") else: match += 1 + # validate data type: TimelineTombstone + if not isinstance(v, TimelineTombstone): + error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineTombstone`") + 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, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return v @@ -148,6 +156,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TimelineTimelineCursor.from_json(json_str) return instance + # check if data type is `TimelineTombstone` + if _data_type == "TimelineTombstone": + instance.actual_instance = TimelineTombstone.from_json(json_str) + return instance + # check if data type is `TimelineTweet` if _data_type == "TimelineTweet": instance.actual_instance = TimelineTweet.from_json(json_str) @@ -194,13 +207,19 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into TimelineTombstone + try: + instance.actual_instance = TimelineTombstone.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, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return instance @@ -214,7 +233,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, TimelineTweet, TimelineUser]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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/timeline_timeline_module.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_timeline_module.py index 892e5715..99ccb199 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo from twitter_openapi_python_generated.models.content_entry_type import ContentEntryType from twitter_openapi_python_generated.models.display_type import DisplayType from twitter_openapi_python_generated.models.feedback_info import FeedbackInfo @@ -32,7 +33,7 @@ class TimelineTimelineModule(BaseModel): TimelineTimelineModule """ # noqa: E501 typename: StrictStr = Field(alias="__typename") - client_event_info: Dict[str, Any] = Field(alias="clientEventInfo") + client_event_info: ClientEventInfo = Field(alias="clientEventInfo") display_type: DisplayType = Field(alias="displayType") entry_type: ContentEntryType = Field(alias="entryType") feedback_info: Optional[FeedbackInfo] = Field(default=None, alias="feedbackInfo") @@ -81,6 +82,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 client_event_info + if self.client_event_info: + _dict['clientEventInfo'] = self.client_event_info.to_dict() # override the default output from pydantic by calling `to_dict()` of feedback_info if self.feedback_info: _dict['feedbackInfo'] = self.feedback_info.to_dict() @@ -104,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "__typename": obj.get("__typename"), - "clientEventInfo": obj.get("clientEventInfo"), + "clientEventInfo": ClientEventInfo.from_dict(obj["clientEventInfo"]) if obj.get("clientEventInfo") is not None else None, "displayType": obj.get("displayType"), "entryType": obj.get("entryType"), "feedbackInfo": FeedbackInfo.from_dict(obj["feedbackInfo"]) if obj.get("feedbackInfo") is not None else None, diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_tombstone.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_tombstone.py new file mode 100644 index 00000000..be0ee941 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_tombstone.py @@ -0,0 +1,110 @@ +# 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.content_item_type import ContentItemType +from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class TimelineTombstone(BaseModel): + """ + TimelineTombstone + """ # noqa: E501 + typename: Optional[TypeName] = Field(default=None, alias="__typename") + item_type: Optional[ContentItemType] = Field(default=None, alias="itemType") + tombstone_display_type: Optional[StrictStr] = Field(default=None, alias="tombstoneDisplayType") + tombstone_info: Optional[TombstoneInfo] = Field(default=None, alias="tombstoneInfo") + __properties: ClassVar[List[str]] = ["__typename", "itemType", "tombstoneDisplayType", "tombstoneInfo"] + + @field_validator('tombstone_display_type') + def tombstone_display_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Inline']): + raise ValueError("must be one of enum values ('Inline')") + 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 TimelineTombstone 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 tombstone_info + if self.tombstone_info: + _dict['tombstoneInfo'] = self.tombstone_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TimelineTombstone 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"), + "itemType": obj.get("itemType"), + "tombstoneDisplayType": obj.get("tombstoneDisplayType"), + "tombstoneInfo": TombstoneInfo.from_dict(obj["tombstoneInfo"]) if obj.get("tombstoneInfo") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_entity.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_entity.py new file mode 100644 index 00000000..f493912e --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_entity.py @@ -0,0 +1,96 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef +from typing import Optional, Set +from typing_extensions import Self + +class TombstoneEntity(BaseModel): + """ + TombstoneEntity + """ # noqa: E501 + from_index: Optional[StrictInt] = Field(default=None, alias="fromIndex") + ref: Optional[TombstoneRef] = None + to_index: Optional[StrictInt] = Field(default=None, alias="toIndex") + __properties: ClassVar[List[str]] = ["fromIndex", "ref", "toIndex"] + + 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 TombstoneEntity 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 ref + if self.ref: + _dict['ref'] = self.ref.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TombstoneEntity from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fromIndex": obj.get("fromIndex"), + "ref": TombstoneRef.from_dict(obj["ref"]) if obj.get("ref") is not None else None, + "toIndex": obj.get("toIndex") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_info.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_info.py new file mode 100644 index 00000000..1216629d --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_info.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, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText +from typing import Optional, Set +from typing_extensions import Self + +class TombstoneInfo(BaseModel): + """ + TombstoneInfo + """ # noqa: E501 + rich_text: Optional[TombstoneRichText] = Field(default=None, alias="richText") + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["richText", "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 TombstoneInfo 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 rich_text + if self.rich_text: + _dict['richText'] = self.rich_text.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TombstoneInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "richText": TombstoneRichText.from_dict(obj["richText"]) if obj.get("richText") is not None else None, + "text": obj.get("text") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_ref.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_ref.py new file mode 100644 index 00000000..6dccd6f8 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_ref.py @@ -0,0 +1,112 @@ +# 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TombstoneRef(BaseModel): + """ + TombstoneRef + """ # noqa: E501 + type: Optional[StrictStr] = None + url: Optional[StrictStr] = None + url_type: Optional[StrictStr] = Field(default=None, alias="urlType") + __properties: ClassVar[List[str]] = ["type", "url", "urlType"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TimelineUrl']): + raise ValueError("must be one of enum values ('TimelineUrl')") + return value + + @field_validator('url_type') + def url_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['ExternalUrl']): + raise ValueError("must be one of enum values ('ExternalUrl')") + 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 TombstoneRef 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 TombstoneRef 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"), + "url": obj.get("url"), + "urlType": obj.get("urlType") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_rich_text.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_rich_text.py new file mode 100644 index 00000000..bc737535 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/tombstone_rich_text.py @@ -0,0 +1,100 @@ +# 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 twitter_openapi_python_generated.models.tombstone_entity import TombstoneEntity +from typing import Optional, Set +from typing_extensions import Self + +class TombstoneRichText(BaseModel): + """ + TombstoneRichText + """ # noqa: E501 + entities: Optional[List[TombstoneEntity]] = None + rtl: Optional[StrictBool] = None + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["entities", "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 TombstoneRichText 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 each item in entities (list) + _items = [] + if self.entities: + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) + _dict['entities'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TombstoneRichText from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "entities": [TombstoneEntity.from_dict(_item) for _item in obj["entities"]] if obj.get("entities") is not None else None, + "rtl": obj.get("rtl"), + "text": obj.get("text") + }) + return _obj + + 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 89721cea..b7287bad 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 @@ -55,6 +55,7 @@ class Tweet(BaseModel): core: Optional[UserResultCore] = None edit_control: Optional[TweetEditControl] = None edit_prespective: Optional[TweetEditPrespective] = None + grok_analysis_button: Optional[StrictBool] = None grok_analysis_followups: Optional[List[StrictStr]] = None grok_share_attachment: Optional[GrokShareAttachment] = None has_birdwatch_notes: Optional[StrictBool] = None @@ -72,7 +73,7 @@ class Tweet(BaseModel): unified_card: Optional[UnifiedCard] = None unmention_data: Optional[Dict[str, Any]] = None views: Optional[TweetView] = None - __properties: ClassVar[List[str]] = ["__typename", "article", "author_community_relationship", "birdwatch_pivot", "card", "community_relationship", "community_results", "core", "edit_control", "edit_prespective", "grok_analysis_followups", "grok_share_attachment", "has_birdwatch_notes", "is_translatable", "legacy", "note_tweet", "previous_counts", "quick_promote_eligibility", "quotedRefResult", "quoted_status_result", "rest_id", "source", "superFollowsReplyUserResult", "trend_results", "unified_card", "unmention_data", "views"] + __properties: ClassVar[List[str]] = ["__typename", "article", "author_community_relationship", "birdwatch_pivot", "card", "community_relationship", "community_results", "core", "edit_control", "edit_prespective", "grok_analysis_button", "grok_analysis_followups", "grok_share_attachment", "has_birdwatch_notes", "is_translatable", "legacy", "note_tweet", "previous_counts", "quick_promote_eligibility", "quotedRefResult", "quoted_status_result", "rest_id", "source", "superFollowsReplyUserResult", "trend_results", "unified_card", "unmention_data", "views"] @field_validator('rest_id') def rest_id_validate_regular_expression(cls, value): @@ -199,6 +200,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "core": UserResultCore.from_dict(obj["core"]) if obj.get("core") is not None else None, "edit_control": TweetEditControl.from_dict(obj["edit_control"]) if obj.get("edit_control") is not None else None, "edit_prespective": TweetEditPrespective.from_dict(obj["edit_prespective"]) if obj.get("edit_prespective") is not None else None, + "grok_analysis_button": obj.get("grok_analysis_button"), "grok_analysis_followups": obj.get("grok_analysis_followups"), "grok_share_attachment": GrokShareAttachment.from_dict(obj["grok_share_attachment"]) if obj.get("grok_share_attachment") is not None else None, "has_birdwatch_notes": obj.get("has_birdwatch_notes"), 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 2020c817..8d9f25fa 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 @@ -38,6 +38,7 @@ class TypeName(str, Enum): TIMELINEPROMPT = 'TimelinePrompt' TIMELINEMESSAGEPROMPT = 'TimelineMessagePrompt' TIMELINECOMMUNITY = 'TimelineCommunity' + TIMELINETOMBSTONE = 'TimelineTombstone' 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 bd9a67bb..7c9ba84c 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 @@ -49,6 +49,7 @@ class User(BaseModel): is_profile_translatable: Optional[StrictBool] = None legacy: UserLegacy legacy_extended_profile: Optional[UserLegacyExtendedProfile] = None + parody_commentary_fan_label: Optional[StrictStr] = None premium_gifting_eligible: Optional[StrictBool] = None professional: Optional[UserProfessional] = None profile_image_shape: StrictStr @@ -59,7 +60,7 @@ class User(BaseModel): tipjar_settings: Optional[UserTipJarSettings] = None user_seed_tweet_count: Optional[StrictInt] = None verification_info: Optional[UserVerificationInfo] = None - __properties: ClassVar[List[str]] = ["__typename", "affiliates_highlighted_label", "business_account", "creator_subscriptions_count", "has_graduated_access", "has_hidden_likes_on_profile", "has_hidden_subscriptions_on_profile", "has_nft_avatar", "highlights_info", "id", "is_blue_verified", "is_profile_translatable", "legacy", "legacy_extended_profile", "premium_gifting_eligible", "professional", "profile_image_shape", "rest_id", "super_follow_eligible", "super_followed_by", "super_following", "tipjar_settings", "user_seed_tweet_count", "verification_info"] + __properties: ClassVar[List[str]] = ["__typename", "affiliates_highlighted_label", "business_account", "creator_subscriptions_count", "has_graduated_access", "has_hidden_likes_on_profile", "has_hidden_subscriptions_on_profile", "has_nft_avatar", "highlights_info", "id", "is_blue_verified", "is_profile_translatable", "legacy", "legacy_extended_profile", "parody_commentary_fan_label", "premium_gifting_eligible", "professional", "profile_image_shape", "rest_id", "super_follow_eligible", "super_followed_by", "super_following", "tipjar_settings", "user_seed_tweet_count", "verification_info"] @field_validator('id') def id_validate_regular_expression(cls, value): @@ -68,6 +69,16 @@ def id_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)?$/") return value + @field_validator('parody_commentary_fan_label') + def parody_commentary_fan_label_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['None', 'Parody']): + raise ValueError("must be one of enum values ('None', 'Parody')") + return value + @field_validator('profile_image_shape') def profile_image_shape_validate_enum(cls, value): """Validates the enum""" @@ -165,6 +176,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_profile_translatable": obj.get("is_profile_translatable"), "legacy": UserLegacy.from_dict(obj["legacy"]) if obj.get("legacy") is not None else None, "legacy_extended_profile": UserLegacyExtendedProfile.from_dict(obj["legacy_extended_profile"]) if obj.get("legacy_extended_profile") is not None else None, + "parody_commentary_fan_label": obj.get("parody_commentary_fan_label"), "premium_gifting_eligible": obj.get("premium_gifting_eligible"), "professional": UserProfessional.from_dict(obj["professional"]) if obj.get("professional") is not None else None, "profile_image_shape": obj.get("profile_image_shape"), From 1a28adeef7fbfca60505dade633601595557f4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 2 Feb 2025 02:26:36 +0900 Subject: [PATCH 2/3] update 0.0.31 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 116 -> 116 bytes twitter_openapi_python/setup.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index afcf4a86..7717f288 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.29" +version = "0.0.31" description = "Twitter OpenAPI" authors = ["fa0311 "] license = "proprietary" # or "AGPL-3.0-only" @@ -14,7 +14,7 @@ include = ["twitter_openapi_python/py.typed"] python = "^3.7" pydantic = ">=2.6" -twitter-openapi-python-generated = "0.0.27" +twitter-openapi-python-generated = "0.0.29" [tool.poetry.dev-dependencies] diff --git a/twitter_openapi_python/requirements.txt b/twitter_openapi_python/requirements.txt index 08e52b9891e944bd014c232b4e4b66f41acec5e7..0501af9a5db50a3efede7e55d1d96b842da695a3 100644 GIT binary patch delta 7 OcmXRZnNY-J$p8Qf`vN8a delta 7 OcmXRZnNY-J&Hw-k_W~pU diff --git a/twitter_openapi_python/setup.py b/twitter_openapi_python/setup.py index 2c3143e1..619f5206 100644 --- a/twitter_openapi_python/setup.py +++ b/twitter_openapi_python/setup.py @@ -5,10 +5,10 @@ from setuptools import find_packages, setup NAME = "twitter_openapi_python" -VERSION = "0.0.29" +VERSION = "0.0.31" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ - "twitter_openapi_python_generated == 0.0.27", + "twitter_openapi_python_generated == 0.0.29", "pydantic >= 2.6", ] GITHUB_RAW_URL = ( From 27a90daa2189b68789b74757a95f469e99edb7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 2 Feb 2025 02:28:46 +0900 Subject: [PATCH 3/3] update 0.0.32 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 +- .../twitter_openapi_python/client.py | 19 +++++++------------ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index 7717f288..04f20276 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.31" +version = "0.0.32" 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 619f5206..8f260b1c 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.31" +VERSION = "0.0.32" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "twitter_openapi_python_generated == 0.0.29", diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py index 47a80a1b..22d87499 100644 --- a/twitter_openapi_python/twitter_openapi_python/client.py +++ b/twitter_openapi_python/twitter_openapi_python/client.py @@ -58,10 +58,12 @@ def get_v11_post_api(self) -> V11PostApiUtils: class TwitterOpenapiPython: - hash: str = "4b27150977e1bdd807de8969dc0ddd7918ac9923" + hash: str = "8b2d05d1525404a29730f740a259026502be7cbd" 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 = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" + access_token: str = ( + "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" + ) twitter_url: str = "https://x.com/home" additional_browser_headers = {} additional_api_headers = {} @@ -73,9 +75,7 @@ def get_header(self) -> tuple[dict[str, str], dict[str, str]]: ignore = ["host", "connection"] def getHader(name: str) -> dict[str, str]: - return { - key: value for key, value in data[name].items() if key not in ignore - } + return {key: value for key, value in data[name].items() if key not in ignore} return ( { @@ -107,17 +107,12 @@ def remove_prefix(self, text: str) -> str: def kebab_to_upper_camel(self, text: dict[str, Any]) -> dict[str, Any]: res = {} for key, value in text.items(): - new_key = "".join( - [x.capitalize() for x in self.remove_prefix(key).split("-")] - ) + new_key = "".join([x.capitalize() for x in self.remove_prefix(key).split("-")]) res[new_key] = value return res def cookie_normalize(self, cookie: list[str]) -> dict[str, str]: - return { - x.split("; ")[0].split("=")[0]: x.split("; ")[0].split("=")[1] - for x in cookie - } + return {x.split("; ")[0].split("=")[0]: x.split("; ")[0].split("=")[1] for x in cookie} def cookie_to_str(self, cookie: dict[str, str]) -> str: return "; ".join([f"{key}={value}" for key, value in cookie.items()])