From 81e0c2d65c42db70ff6e05f5a9a6b24fcad83390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 11 Mar 2025 23:06:23 +0900 Subject: [PATCH 1/5] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .../.github/workflows/python.yml | 2 +- .../.openapi-generator/FILES | 12 + .../.openapi-generator/VERSION | 2 +- twitter_openapi_python_generated/README.md | 9 +- .../docs/DefaultApi.md | 240 ------------- .../docs/ItemContentUnion.md | 7 + .../docs/ModuleItem.md | 1 + .../docs/OtherApi.md | 2 - .../docs/PostApi.md | 16 - .../docs/ThumbnailImage.md | 31 ++ .../docs/TimelineTrend.md | 37 ++ .../docs/TrendImage.md | 29 ++ .../docs/TrendMetadata.md | 29 ++ .../docs/TweetApi.md | 74 ++-- .../docs/UserApi.md | 4 - .../docs/UserListApi.md | 14 +- .../docs/UsersApi.md | 2 - .../docs/V11GetApi.md | 4 - .../docs/V11PostApi.md | 4 - .../docs/V20GetApi.md | 2 - .../pyproject.toml | 4 +- twitter_openapi_python_generated/setup.py | 4 +- .../test/test_content_union.py | 1 + .../test/test_default_api.py | 6 - .../test/test_instruction_union.py | 2 + .../test/test_item_content_union.py | 62 +++- .../test/test_module_item.py | 1 + .../test/test_thumbnail_image.py | 54 +++ .../test/test_timeline_add_to_module.py | 2 + .../test/test_timeline_timeline_module.py | 1 + .../test/test_timeline_trend.py | 115 ++++++ .../test/test_trend_image.py | 52 +++ .../test/test_trend_metadata.py | 60 ++++ .../tools/openapi-generator-config.yaml | 2 +- .../tools/win/init.ps1 | 2 +- .../twitter-openapi | 2 +- .../__init__.py | 6 +- .../api/default_api.py | 335 ------------------ .../api_client.py | 4 +- .../configuration.py | 13 +- .../exceptions.py | 17 + .../models/__init__.py | 4 + .../models/item_content_union.py | 35 +- .../models/module_item.py | 8 +- .../models/thumbnail_image.py | 92 +++++ .../models/timeline_trend.py | 130 +++++++ .../models/trend_image.py | 88 +++++ .../models/trend_metadata.py | 92 +++++ .../twitter_openapi_python_generated/rest.py | 1 + 49 files changed, 1011 insertions(+), 705 deletions(-) create mode 100644 twitter_openapi_python_generated/docs/ThumbnailImage.md create mode 100644 twitter_openapi_python_generated/docs/TimelineTrend.md create mode 100644 twitter_openapi_python_generated/docs/TrendImage.md create mode 100644 twitter_openapi_python_generated/docs/TrendMetadata.md create mode 100644 twitter_openapi_python_generated/test/test_thumbnail_image.py create mode 100644 twitter_openapi_python_generated/test/test_timeline_trend.py create mode 100644 twitter_openapi_python_generated/test/test_trend_image.py create mode 100644 twitter_openapi_python_generated/test/test_trend_metadata.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/thumbnail_image.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_image.py create mode 100644 twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py diff --git a/twitter_openapi_python_generated/.github/workflows/python.yml b/twitter_openapi_python_generated/.github/workflows/python.yml index fa2ca5ff..def06bdd 100644 --- a/twitter_openapi_python_generated/.github/workflows/python.yml +++ b/twitter_openapi_python_generated/.github/workflows/python.yml @@ -28,4 +28,4 @@ jobs: pip install -r test-requirements.txt - name: Test with pytest run: | - pytest --cov={{packageName}} + pytest --cov=twitter_openapi_python_generated diff --git a/twitter_openapi_python_generated/.openapi-generator/FILES b/twitter_openapi_python_generated/.openapi-generator/FILES index 67fe2444..f2957719 100644 --- a/twitter_openapi_python_generated/.openapi-generator/FILES +++ b/twitter_openapi_python_generated/.openapi-generator/FILES @@ -171,6 +171,7 @@ docs/Text.md docs/TextEntity.md docs/TextEntityRef.md docs/TextHighlight.md +docs/ThumbnailImage.md docs/Timeline.md docs/TimelineAddEntries.md docs/TimelineAddEntry.md @@ -195,6 +196,7 @@ docs/TimelineTimelineItem.md docs/TimelineTimelineModule.md docs/TimelineTombstone.md docs/TimelineTopicContext.md +docs/TimelineTrend.md docs/TimelineTweet.md docs/TimelineUser.md docs/TimelineV2.md @@ -205,6 +207,8 @@ docs/TombstoneRef.md docs/TombstoneRichText.md docs/TopicContext.md docs/Tracing.md +docs/TrendImage.md +docs/TrendMetadata.md docs/TrendResults.md docs/Tweet.md docs/TweetApi.md @@ -470,6 +474,7 @@ test/test_text.py test/test_text_entity.py test/test_text_entity_ref.py test/test_text_highlight.py +test/test_thumbnail_image.py test/test_timeline.py test/test_timeline_add_entries.py test/test_timeline_add_entry.py @@ -494,6 +499,7 @@ 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_trend.py test/test_timeline_tweet.py test/test_timeline_user.py test/test_timeline_v2.py @@ -504,6 +510,8 @@ test/test_tombstone_ref.py test/test_tombstone_rich_text.py test/test_topic_context.py test/test_tracing.py +test/test_trend_image.py +test/test_trend_metadata.py test/test_trend_results.py test/test_tweet.py test/test_tweet_api.py @@ -777,6 +785,7 @@ twitter_openapi_python_generated/models/text.py twitter_openapi_python_generated/models/text_entity.py twitter_openapi_python_generated/models/text_entity_ref.py twitter_openapi_python_generated/models/text_highlight.py +twitter_openapi_python_generated/models/thumbnail_image.py twitter_openapi_python_generated/models/timeline.py twitter_openapi_python_generated/models/timeline_add_entries.py twitter_openapi_python_generated/models/timeline_add_entry.py @@ -801,6 +810,7 @@ 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_trend.py twitter_openapi_python_generated/models/timeline_tweet.py twitter_openapi_python_generated/models/timeline_user.py twitter_openapi_python_generated/models/timeline_v2.py @@ -811,6 +821,8 @@ 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_image.py +twitter_openapi_python_generated/models/trend_metadata.py twitter_openapi_python_generated/models/trend_results.py twitter_openapi_python_generated/models/tweet.py twitter_openapi_python_generated/models/tweet_card.py diff --git a/twitter_openapi_python_generated/.openapi-generator/VERSION b/twitter_openapi_python_generated/.openapi-generator/VERSION index 758bb9c8..5f84a81d 100644 --- a/twitter_openapi_python_generated/.openapi-generator/VERSION +++ b/twitter_openapi_python_generated/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0 +7.12.0 diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md index e13a45b3..ef3c61a2 100644 --- a/twitter_openapi_python_generated/README.md +++ b/twitter_openapi_python_generated/README.md @@ -4,8 +4,8 @@ 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.29 -- Generator version: 7.10.0 +- Package version: 0.0.30 +- Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -228,7 +228,6 @@ All URIs are relative to *https://x.com/i/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**get_profile_spotlights_query**](docs/DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery | -*DefaultApi* | [**get_tweet_result_by_rest_id**](docs/DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId | *OtherApi* | [**other**](docs/OtherApi.md#other) | **GET** /other | *PostApi* | [**post_create_bookmark**](docs/PostApi.md#post_create_bookmark) | **POST** /graphql/{pathQueryId}/CreateBookmark | *PostApi* | [**post_create_retweet**](docs/PostApi.md#post_create_retweet) | **POST** /graphql/{pathQueryId}/CreateRetweet | @@ -431,6 +430,7 @@ Class | Method | HTTP request | Description - [TextEntity](docs/TextEntity.md) - [TextEntityRef](docs/TextEntityRef.md) - [TextHighlight](docs/TextHighlight.md) + - [ThumbnailImage](docs/ThumbnailImage.md) - [Timeline](docs/Timeline.md) - [TimelineAddEntries](docs/TimelineAddEntries.md) - [TimelineAddEntry](docs/TimelineAddEntry.md) @@ -455,6 +455,7 @@ Class | Method | HTTP request | Description - [TimelineTimelineModule](docs/TimelineTimelineModule.md) - [TimelineTombstone](docs/TimelineTombstone.md) - [TimelineTopicContext](docs/TimelineTopicContext.md) + - [TimelineTrend](docs/TimelineTrend.md) - [TimelineTweet](docs/TimelineTweet.md) - [TimelineUser](docs/TimelineUser.md) - [TimelineV2](docs/TimelineV2.md) @@ -465,6 +466,8 @@ Class | Method | HTTP request | Description - [TombstoneRichText](docs/TombstoneRichText.md) - [TopicContext](docs/TopicContext.md) - [Tracing](docs/Tracing.md) + - [TrendImage](docs/TrendImage.md) + - [TrendMetadata](docs/TrendMetadata.md) - [TrendResults](docs/TrendResults.md) - [Tweet](docs/Tweet.md) - [TweetCard](docs/TweetCard.md) diff --git a/twitter_openapi_python_generated/docs/DefaultApi.md b/twitter_openapi_python_generated/docs/DefaultApi.md index 13b94df5..aaf7fe96 100644 --- a/twitter_openapi_python_generated/docs/DefaultApi.md +++ b/twitter_openapi_python_generated/docs/DefaultApi.md @@ -5,14 +5,11 @@ All URIs are relative to *https://x.com/i/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_profile_spotlights_query**](DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery | -[**get_tweet_result_by_rest_id**](DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId | # **get_profile_spotlights_query** > ProfileResponse get_profile_spotlights_query(path_query_id, variables, features) - - get user by screen name ### Example @@ -243,240 +240,3 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_tweet_result_by_rest_id** -> TweetResultByRestIdResponse get_tweet_result_by_rest_id(path_query_id, variables, features, field_toggles) - - - -get TweetResultByRestId - -### Example - -* Api Key Authentication (Accept): -* Api Key Authentication (ClientLanguage): -* Api Key Authentication (Priority): -* Api Key Authentication (Referer): -* Api Key Authentication (SecFetchDest): -* Api Key Authentication (SecChUaPlatform): -* Api Key Authentication (SecFetchMode): -* Api Key Authentication (CsrfToken): -* Api Key Authentication (ClientUuid): -* Bearer Authentication (BearerAuth): -* Api Key Authentication (GuestToken): -* Api Key Authentication (SecChUa): -* Api Key Authentication (CookieGt0): -* Api Key Authentication (ClientTransactionId): -* Api Key Authentication (ActiveUser): -* Api Key Authentication (CookieCt0): -* Api Key Authentication (UserAgent): -* Api Key Authentication (AcceptLanguage): -* Api Key Authentication (SecFetchSite): -* Api Key Authentication (AuthType): -* Api Key Authentication (CookieAuthToken): -* Api Key Authentication (SecChUaMobile): -* Api Key Authentication (AcceptEncoding): - -```python -import twitter_openapi_python_generated -from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse -from twitter_openapi_python_generated.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://x.com/i/api -# See configuration.py for a list of all supported configuration parameters. -configuration = twitter_openapi_python_generated.Configuration( - host = "https://x.com/i/api" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: Accept -configuration.api_key['Accept'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Accept'] = 'Bearer' - -# Configure API key authorization: ClientLanguage -configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' - -# Configure API key authorization: Priority -configuration.api_key['Priority'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Priority'] = 'Bearer' - -# Configure API key authorization: Referer -configuration.api_key['Referer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Referer'] = 'Bearer' - -# Configure API key authorization: SecFetchDest -configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' - -# Configure API key authorization: SecChUaPlatform -configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' - -# Configure API key authorization: SecFetchMode -configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' - -# Configure API key authorization: CsrfToken -configuration.api_key['CsrfToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['CsrfToken'] = 'Bearer' - -# Configure API key authorization: ClientUuid -configuration.api_key['ClientUuid'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ClientUuid'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = twitter_openapi_python_generated.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Configure API key authorization: GuestToken -configuration.api_key['GuestToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['GuestToken'] = 'Bearer' - -# Configure API key authorization: SecChUa -configuration.api_key['SecChUa'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecChUa'] = 'Bearer' - -# Configure API key authorization: CookieGt0 -configuration.api_key['CookieGt0'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['CookieGt0'] = 'Bearer' - -# Configure API key authorization: ClientTransactionId -configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' - -# Configure API key authorization: ActiveUser -configuration.api_key['ActiveUser'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ActiveUser'] = 'Bearer' - -# Configure API key authorization: CookieCt0 -configuration.api_key['CookieCt0'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['CookieCt0'] = 'Bearer' - -# Configure API key authorization: UserAgent -configuration.api_key['UserAgent'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['UserAgent'] = 'Bearer' - -# Configure API key authorization: AcceptLanguage -configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' - -# Configure API key authorization: SecFetchSite -configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' - -# Configure API key authorization: AuthType -configuration.api_key['AuthType'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['AuthType'] = 'Bearer' - -# Configure API key authorization: CookieAuthToken -configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' - -# Configure API key authorization: SecChUaMobile -configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' - -# Configure API key authorization: AcceptEncoding -configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' - -# Enter a context with an instance of the API client -with twitter_openapi_python_generated.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = twitter_openapi_python_generated.DefaultApi(api_client) - path_query_id = '7xflPyRiUxGVbJd4uWmbfg' # str | (default to '7xflPyRiUxGVbJd4uWmbfg') - variables = '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}' # str | (default to '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}') - features = '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}') - field_toggles = '{"withArticleRichContentState": true, "withArticlePlainText": false}' # str | (default to '{"withArticleRichContentState": true, "withArticlePlainText": false}') - - try: - api_response = api_instance.get_tweet_result_by_rest_id(path_query_id, variables, features, field_toggles) - print("The response of DefaultApi->get_tweet_result_by_rest_id:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefaultApi->get_tweet_result_by_rest_id: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to '7xflPyRiUxGVbJd4uWmbfg'] - **variables** | **str**| | [default to '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}'] - **features** | **str**| | [default to '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}'] - **field_toggles** | **str**| | [default to '{"withArticleRichContentState": true, "withArticlePlainText": false}'] - -### Return type - -[**TweetResultByRestIdResponse**](TweetResultByRestIdResponse.md) - -### Authorization - -[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/twitter_openapi_python_generated/docs/ItemContentUnion.md b/twitter_openapi_python_generated/docs/ItemContentUnion.md index 617190e7..bb345535 100644 --- a/twitter_openapi_python_generated/docs/ItemContentUnion.md +++ b/twitter_openapi_python_generated/docs/ItemContentUnion.md @@ -22,6 +22,13 @@ Name | Type | Description | Notes **user_results** | [**UserResults**](UserResults.md) | | **tombstone_display_type** | **str** | | [optional] **tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional] +**images** | [**List[TrendImage]**](TrendImage.md) | | +**is_ai_trend** | **bool** | | [optional] +**name** | **str** | | +**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional] +**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | +**trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | | +**trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | ## Example diff --git a/twitter_openapi_python_generated/docs/ModuleItem.md b/twitter_openapi_python_generated/docs/ModuleItem.md index bba55e40..f19ec2e9 100644 --- a/twitter_openapi_python_generated/docs/ModuleItem.md +++ b/twitter_openapi_python_generated/docs/ModuleItem.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**dispensable** | **bool** | | [optional] **entry_id** | **str** | | **item** | [**ModuleEntry**](ModuleEntry.md) | | diff --git a/twitter_openapi_python_generated/docs/OtherApi.md b/twitter_openapi_python_generated/docs/OtherApi.md index 59455b30..cb8cc226 100644 --- a/twitter_openapi_python_generated/docs/OtherApi.md +++ b/twitter_openapi_python_generated/docs/OtherApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **other** > OtherObjectAll other() - - This is not an actual endpoint ### Example diff --git a/twitter_openapi_python_generated/docs/PostApi.md b/twitter_openapi_python_generated/docs/PostApi.md index 40d4a34d..7fa242b0 100644 --- a/twitter_openapi_python_generated/docs/PostApi.md +++ b/twitter_openapi_python_generated/docs/PostApi.md @@ -17,8 +17,6 @@ Method | HTTP request | Description # **post_create_bookmark** > CreateBookmarkResponse post_create_bookmark(path_query_id, post_create_bookmark_request) - - create Bookmark ### Example @@ -251,8 +249,6 @@ Name | Type | Description | Notes # **post_create_retweet** > CreateRetweetResponse post_create_retweet(path_query_id, post_create_retweet_request) - - create Retweet ### Example @@ -485,8 +481,6 @@ Name | Type | Description | Notes # **post_create_tweet** > CreateTweetResponse post_create_tweet(path_query_id, post_create_tweet_request) - - create Tweet ### Example @@ -719,8 +713,6 @@ Name | Type | Description | Notes # **post_delete_bookmark** > DeleteBookmarkResponse post_delete_bookmark(path_query_id, post_delete_bookmark_request) - - delete Bookmark ### Example @@ -953,8 +945,6 @@ Name | Type | Description | Notes # **post_delete_retweet** > DeleteRetweetResponse post_delete_retweet(path_query_id, post_delete_retweet_request) - - delete Retweet ### Example @@ -1187,8 +1177,6 @@ Name | Type | Description | Notes # **post_delete_tweet** > DeleteTweetResponse post_delete_tweet(path_query_id, post_delete_tweet_request) - - delete Retweet ### Example @@ -1421,8 +1409,6 @@ Name | Type | Description | Notes # **post_favorite_tweet** > FavoriteTweetResponse post_favorite_tweet(path_query_id, post_favorite_tweet_request) - - favorite Tweet ### Example @@ -1655,8 +1641,6 @@ Name | Type | Description | Notes # **post_unfavorite_tweet** > UnfavoriteTweetResponse post_unfavorite_tweet(path_query_id, post_unfavorite_tweet_request) - - unfavorite Tweet ### Example diff --git a/twitter_openapi_python_generated/docs/ThumbnailImage.md b/twitter_openapi_python_generated/docs/ThumbnailImage.md new file mode 100644 index 00000000..7c73d638 --- /dev/null +++ b/twitter_openapi_python_generated/docs/ThumbnailImage.md @@ -0,0 +1,31 @@ +# ThumbnailImage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**original_img_height** | **int** | | [optional] +**original_img_url** | **str** | | [optional] +**original_img_width** | **int** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage + +# TODO update the JSON string below +json = "{}" +# create an instance of ThumbnailImage from a JSON string +thumbnail_image_instance = ThumbnailImage.from_json(json) +# print the JSON string representation of the object +print(ThumbnailImage.to_json()) + +# convert the object into a dict +thumbnail_image_dict = thumbnail_image_instance.to_dict() +# create an instance of ThumbnailImage from a dict +thumbnail_image_from_dict = ThumbnailImage.from_dict(thumbnail_image_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/TimelineTrend.md b/twitter_openapi_python_generated/docs/TimelineTrend.md new file mode 100644 index 00000000..805c9683 --- /dev/null +++ b/twitter_openapi_python_generated/docs/TimelineTrend.md @@ -0,0 +1,37 @@ +# TimelineTrend + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typename** | [**TypeName**](TypeName.md) | | +**images** | [**List[TrendImage]**](TrendImage.md) | | +**is_ai_trend** | **bool** | | [optional] +**item_type** | [**ContentItemType**](ContentItemType.md) | | +**name** | **str** | | +**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional] +**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | +**trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | | +**trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | + +## Example + +```python +from twitter_openapi_python_generated.models.timeline_trend import TimelineTrend + +# TODO update the JSON string below +json = "{}" +# create an instance of TimelineTrend from a JSON string +timeline_trend_instance = TimelineTrend.from_json(json) +# print the JSON string representation of the object +print(TimelineTrend.to_json()) + +# convert the object into a dict +timeline_trend_dict = timeline_trend_instance.to_dict() +# create an instance of TimelineTrend from a dict +timeline_trend_from_dict = TimelineTrend.from_dict(timeline_trend_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/TrendImage.md b/twitter_openapi_python_generated/docs/TrendImage.md new file mode 100644 index 00000000..3fd86344 --- /dev/null +++ b/twitter_openapi_python_generated/docs/TrendImage.md @@ -0,0 +1,29 @@ +# TrendImage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.trend_image import TrendImage + +# TODO update the JSON string below +json = "{}" +# create an instance of TrendImage from a JSON string +trend_image_instance = TrendImage.from_json(json) +# print the JSON string representation of the object +print(TrendImage.to_json()) + +# convert the object into a dict +trend_image_dict = trend_image_instance.to_dict() +# create an instance of TrendImage from a dict +trend_image_from_dict = TrendImage.from_dict(trend_image_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/TrendMetadata.md b/twitter_openapi_python_generated/docs/TrendMetadata.md new file mode 100644 index 00000000..aebd6e4b --- /dev/null +++ b/twitter_openapi_python_generated/docs/TrendMetadata.md @@ -0,0 +1,29 @@ +# TrendMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | [optional] + +## Example + +```python +from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of TrendMetadata from a JSON string +trend_metadata_instance = TrendMetadata.from_json(json) +# print the JSON string representation of the object +print(TrendMetadata.to_json()) + +# convert the object into a dict +trend_metadata_dict = trend_metadata_instance.to_dict() +# create an instance of TrendMetadata from a dict +trend_metadata_from_dict = TrendMetadata.from_dict(trend_metadata_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/TweetApi.md b/twitter_openapi_python_generated/docs/TweetApi.md index c3e26723..6ece1010 100644 --- a/twitter_openapi_python_generated/docs/TweetApi.md +++ b/twitter_openapi_python_generated/docs/TweetApi.md @@ -20,8 +20,6 @@ Method | HTTP request | Description # **get_bookmarks** > BookmarksResponse get_bookmarks(path_query_id, variables, features) - - get bookmarks ### Example @@ -208,9 +206,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 = 'L7vvM2UluPgWOW4GDvWyvw' # str | (default to 'L7vvM2UluPgWOW4GDvWyvw') + path_query_id = '1vFR5f4iSCQZLzjdSsNYwA' # str | (default to '1vFR5f4iSCQZLzjdSsNYwA') variables = '{"count": 20, "includePromotedContent": true}' # str | (default to '{"count": 20, "includePromotedContent": true}') - features = '{"graphql_timeline_v2_bookmark_timeline": 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, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_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 '{"graphql_timeline_v2_bookmark_timeline": 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, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_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 = '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_bookmarks(path_query_id, variables, features) @@ -227,9 +225,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'L7vvM2UluPgWOW4GDvWyvw'] + **path_query_id** | **str**| | [default to '1vFR5f4iSCQZLzjdSsNYwA'] **variables** | **str**| | [default to '{"count": 20, "includePromotedContent": true}'] - **features** | **str**| | [default to '{"graphql_timeline_v2_bookmark_timeline": 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, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_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 '{"graphql_timeline_v2_bookmark_timeline": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -255,8 +253,6 @@ Name | Type | Description | Notes # **get_home_latest_timeline** > TimelineResponse get_home_latest_timeline(path_query_id, variables, features) - - get tweet list of timeline ### Example @@ -445,7 +441,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_home_latest_timeline(path_query_id, variables, features) @@ -464,7 +460,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -490,8 +486,6 @@ Name | Type | Description | Notes # **get_home_timeline** > TimelineResponse get_home_timeline(path_query_id, variables, features) - - get tweet list of timeline ### Example @@ -680,7 +674,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_home_timeline(path_query_id, variables, features) @@ -699,7 +693,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -725,8 +719,6 @@ Name | Type | Description | Notes # **get_likes** > UserTweetsResponse get_likes(path_query_id, variables, features, field_toggles) - - get user likes tweets ### Example @@ -913,9 +905,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 = '8RCkxWhvFsJ8XZeNf_z5IQ' # str | (default to '8RCkxWhvFsJ8XZeNf_z5IQ') + path_query_id = 'Jb0jbeTT4W5Bcuo7IpFa4Q' # str | (default to 'Jb0jbeTT4W5Bcuo7IpFa4Q') variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": 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": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -933,9 +925,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to '8RCkxWhvFsJ8XZeNf_z5IQ'] + **path_query_id** | **str**| | [default to 'Jb0jbeTT4W5Bcuo7IpFa4Q'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": 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": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -962,8 +954,6 @@ Name | Type | Description | Notes # **get_list_latest_tweets_timeline** > ListLatestTweetsTimelineResponse get_list_latest_tweets_timeline(path_query_id, variables, features) - - get tweet list of timeline ### Example @@ -1152,7 +1142,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_list_latest_tweets_timeline(path_query_id, variables, features) @@ -1171,7 +1161,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -1197,8 +1187,6 @@ Name | Type | Description | Notes # **get_search_timeline** > SearchTimelineResponse get_search_timeline(path_query_id, variables, features) - - search tweet list. product:[Top, Latest, People, Photos, Videos] ### Example @@ -1387,7 +1375,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_search_timeline(path_query_id, variables, features) @@ -1406,7 +1394,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type @@ -1432,8 +1420,6 @@ Name | Type | Description | Notes # **get_tweet_detail** > TweetDetailResponse get_tweet_detail(path_query_id, variables, features, field_toggles) - - get TweetDetail ### Example @@ -1622,7 +1608,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}' # str | (default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}') try: @@ -1642,7 +1628,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticleRichContentState": true, "withArticlePlainText": false, "withGrokAnalyze": false, "withDisallowedReplyControls": false}'] ### Return type @@ -1669,8 +1655,6 @@ Name | Type | Description | Notes # **get_user_highlights_tweets** > UserHighlightsTweetsResponse get_user_highlights_tweets(path_query_id, variables, features, field_toggles) - - get user highlights tweets ### Example @@ -1906,8 +1890,6 @@ Name | Type | Description | Notes # **get_user_media** > UserTweetsResponse get_user_media(path_query_id, variables, features, field_toggles) - - get user media tweets ### Example @@ -2096,7 +2078,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) path_query_id = 'ophTtKkfXcUKnXlxh9fU5w' # str | (default to 'ophTtKkfXcUKnXlxh9fU5w') variables = '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2116,7 +2098,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path_query_id** | **str**| | [default to 'ophTtKkfXcUKnXlxh9fU5w'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2143,8 +2125,6 @@ Name | Type | Description | Notes # **get_user_tweets** > UserTweetsResponse get_user_tweets(path_query_id, variables, features, field_toggles) - - get user tweets ### Example @@ -2333,7 +2313,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.TweetApi(api_client) path_query_id = 'Y9WM4Id6UcGFE8Z-hbnixw' # str | (default to 'Y9WM4Id6UcGFE8Z-hbnixw') variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2353,7 +2333,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path_query_id** | **str**| | [default to 'Y9WM4Id6UcGFE8Z-hbnixw'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type @@ -2380,8 +2360,6 @@ Name | Type | Description | Notes # **get_user_tweets_and_replies** > UserTweetsResponse get_user_tweets_and_replies(path_query_id, variables, features, field_toggles) - - get user replies tweets ### Example @@ -2568,9 +2546,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 = 'bZ1YnUB32SSAfKXRwDM3jw' # str | (default to 'bZ1YnUB32SSAfKXRwDM3jw') + path_query_id = 'pZXwh96YGRqmBbbxu7Vk2Q' # str | (default to 'pZXwh96YGRqmBbbxu7Vk2Q') variables = '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' # str | (default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}') - features = '{"profile_label_improvements_pcf_label_in_post_enabled": 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": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') field_toggles = '{"withArticlePlainText": false}' # str | (default to '{"withArticlePlainText": false}') try: @@ -2588,9 +2566,9 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path_query_id** | **str**| | [default to 'bZ1YnUB32SSAfKXRwDM3jw'] + **path_query_id** | **str**| | [default to 'pZXwh96YGRqmBbbxu7Vk2Q'] **variables** | **str**| | [default to '{"userId": "44196397", "count": 40, "includePromotedContent": true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'] - **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": 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": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] **field_toggles** | **str**| | [default to '{"withArticlePlainText": false}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UserApi.md b/twitter_openapi_python_generated/docs/UserApi.md index e6e0ee0e..9a133353 100644 --- a/twitter_openapi_python_generated/docs/UserApi.md +++ b/twitter_openapi_python_generated/docs/UserApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **get_user_by_rest_id** > UserResponse get_user_by_rest_id(path_query_id, variables, features) - - get user by rest id ### Example @@ -246,8 +244,6 @@ Name | Type | Description | Notes # **get_user_by_screen_name** > UserResponse get_user_by_screen_name(path_query_id, variables, features, field_toggles) - - get user by screen name ### Example diff --git a/twitter_openapi_python_generated/docs/UserListApi.md b/twitter_openapi_python_generated/docs/UserListApi.md index af873e25..ef3d64bf 100644 --- a/twitter_openapi_python_generated/docs/UserListApi.md +++ b/twitter_openapi_python_generated/docs/UserListApi.md @@ -14,8 +14,6 @@ Method | HTTP request | Description # **get_favoriters** > TweetFavoritersResponse get_favoriters(path_query_id, variables, features) - - get tweet favoriters ### Example @@ -249,8 +247,6 @@ Name | Type | Description | Notes # **get_followers** > FollowResponse get_followers(path_query_id, variables, features) - - get user list of followers ### Example @@ -484,8 +480,6 @@ Name | Type | Description | Notes # **get_followers_you_know** > FollowResponse get_followers_you_know(path_query_id, variables, features) - - get followers you know ### Example @@ -719,8 +713,6 @@ Name | Type | Description | Notes # **get_following** > FollowResponse get_following(path_query_id, variables, features) - - get user list of following ### Example @@ -954,8 +946,6 @@ Name | Type | Description | Notes # **get_retweeters** > TweetRetweetersResponse get_retweeters(path_query_id, variables, features) - - get tweet retweeters ### Example @@ -1144,7 +1134,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client: api_instance = twitter_openapi_python_generated.UserListApi(api_client) 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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') + features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}') try: api_response = api_instance.get_retweeters(path_query_id, variables, features) @@ -1163,7 +1153,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": true, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] + **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "rweb_tipjar_consumption_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame": false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "tweet_awards_web_tipping_enabled": false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled": false}'] ### Return type diff --git a/twitter_openapi_python_generated/docs/UsersApi.md b/twitter_openapi_python_generated/docs/UsersApi.md index ce2f4c57..12097755 100644 --- a/twitter_openapi_python_generated/docs/UsersApi.md +++ b/twitter_openapi_python_generated/docs/UsersApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **get_users_by_rest_ids** > UsersResponse get_users_by_rest_ids(path_query_id, variables, features) - - get users by rest ids ### Example diff --git a/twitter_openapi_python_generated/docs/V11GetApi.md b/twitter_openapi_python_generated/docs/V11GetApi.md index 279291d0..49ba5793 100644 --- a/twitter_openapi_python_generated/docs/V11GetApi.md +++ b/twitter_openapi_python_generated/docs/V11GetApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **get_friends_following_list** > get_friends_following_list(include_profile_interstitial_type, include_blocking, include_blocked_by, include_followed_by, include_want_retweets, include_mute_edge, include_can_dm, include_can_media_tag, include_ext_has_nft_avatar, include_ext_is_blue_verified, include_ext_verified_type, include_ext_profile_image_shape, skip_status, cursor, user_id, count, with_total_count) - - get friends following list ### Example @@ -271,8 +269,6 @@ void (empty response body) # **get_search_typeahead** > get_search_typeahead(include_ext_is_blue_verified, include_ext_verified_type, include_ext_profile_image_shape, q, src, result_type) - - get search typeahead ### Example diff --git a/twitter_openapi_python_generated/docs/V11PostApi.md b/twitter_openapi_python_generated/docs/V11PostApi.md index 811bf032..48c0987c 100644 --- a/twitter_openapi_python_generated/docs/V11PostApi.md +++ b/twitter_openapi_python_generated/docs/V11PostApi.md @@ -11,8 +11,6 @@ Method | HTTP request | Description # **post_create_friendships** > post_create_friendships(include_blocked_by, include_blocking, include_can_dm, include_can_media_tag, include_ext_has_nft_avatar, include_ext_is_blue_verified, include_ext_profile_image_shape, include_ext_verified_type, include_followed_by, include_mute_edge, include_profile_interstitial_type, include_want_retweets, skip_status, user_id) - - post create friendships ### Example @@ -265,8 +263,6 @@ void (empty response body) # **post_destroy_friendships** > post_destroy_friendships(include_blocked_by, include_blocking, include_can_dm, include_can_media_tag, include_ext_has_nft_avatar, include_ext_is_blue_verified, include_ext_profile_image_shape, include_ext_verified_type, include_followed_by, include_mute_edge, include_profile_interstitial_type, include_want_retweets, skip_status, user_id) - - post destroy friendships ### Example diff --git a/twitter_openapi_python_generated/docs/V20GetApi.md b/twitter_openapi_python_generated/docs/V20GetApi.md index 1359d736..6c674100 100644 --- a/twitter_openapi_python_generated/docs/V20GetApi.md +++ b/twitter_openapi_python_generated/docs/V20GetApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **get_search_adaptive** > get_search_adaptive(include_profile_interstitial_type, include_blocking, include_blocked_by, include_followed_by, include_want_retweets, include_mute_edge, include_can_dm, include_can_media_tag, include_ext_has_nft_avatar, include_ext_is_blue_verified, include_ext_verified_type, include_ext_profile_image_shape, skip_status, cards_platform, include_cards, include_ext_alt_text, include_ext_limited_action_results, include_quote_count, include_reply_count, tweet_mode, include_ext_views, include_entities, include_user_entities, include_ext_media_color, include_ext_media_availability, include_ext_sensitive_media_warning, include_ext_trusted_friends_metadata, send_error_codes, simple_quoted_tweet, q, query_source, count, request_context, pc, spelling_corrections, include_ext_edit_control, ext) - - get search adaptive ### Example diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml index 5a7b5d90..39c271c7 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.29" +version = "0.0.30" description = "Twitter OpenAPI" authors = ["OpenAPI Generator Community "] license = "custom license or AGPL-3.0-or-later" @@ -12,7 +12,7 @@ include = ["twitter_openapi_python_generated/py.typed"] [tool.poetry.dependencies] python = "^3.8" -urllib3 = ">= 1.25.3 < 3.0.0" +urllib3 = ">= 2.1.0 < 3.0.0" python-dateutil = ">= 2.8.2" pydantic = ">= 2" typing-extensions = ">= 4.7.1" diff --git a/twitter_openapi_python_generated/setup.py b/twitter_openapi_python_generated/setup.py index 4e4f05e4..07d47cbc 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.29" +VERSION = "0.0.30" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", @@ -48,4 +48,4 @@ Twitter OpenAPI(Swagger) specification """, # noqa: E501 package_data={"twitter_openapi_python_generated": ["py.typed"]}, -) +) \ No newline at end of file diff --git a/twitter_openapi_python_generated/test/test_content_union.py b/twitter_openapi_python_generated/test/test_content_union.py index 98990991..aa058487 100644 --- a/twitter_openapi_python_generated/test/test_content_union.py +++ b/twitter_openapi_python_generated/test/test_content_union.py @@ -56,6 +56,7 @@ def make_instance(self, include_optional) -> ContentUnion: header = { }, items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( diff --git a/twitter_openapi_python_generated/test/test_default_api.py b/twitter_openapi_python_generated/test/test_default_api.py index 0a47afdb..f08efb28 100644 --- a/twitter_openapi_python_generated/test/test_default_api.py +++ b/twitter_openapi_python_generated/test/test_default_api.py @@ -33,12 +33,6 @@ def test_get_profile_spotlights_query(self) -> None: """ pass - def test_get_tweet_result_by_rest_id(self) -> None: - """Test case for get_tweet_result_by_rest_id - - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/twitter_openapi_python_generated/test/test_instruction_union.py b/twitter_openapi_python_generated/test/test_instruction_union.py index fa075ed4..b0ecbf6f 100644 --- a/twitter_openapi_python_generated/test/test_instruction_union.py +++ b/twitter_openapi_python_generated/test/test_instruction_union.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> InstructionUnion: module_entry_id = '', module_items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( @@ -139,6 +140,7 @@ def make_instance(self, include_optional) -> InstructionUnion: module_entry_id = '', module_items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( 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 adec78b6..ab8eede5 100644 --- a/twitter_openapi_python_generated/test/test_item_content_union.py +++ b/twitter_openapi_python_generated/test/test_item_content_union.py @@ -75,7 +75,38 @@ def make_instance(self, include_optional) -> ItemContentUnion: ], rtl = True, text = '', ), - text = '', ) + text = '', ), + images = [ + twitter_openapi_python_generated.models.trend_image.TrendImage( + url = '', ) + ], + is_ai_trend = True, + name = '', + social_context = None, + thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( + url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), ), + trend_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ) ) else: return ItemContentUnion( @@ -90,6 +121,35 @@ def make_instance(self, include_optional) -> ItemContentUnion: user_display_type = 'User', user_results = twitter_openapi_python_generated.models.user_results.UserResults( result = null, ), + images = [ + twitter_openapi_python_generated.models.trend_image.TrendImage( + url = '', ) + ], + name = '', + thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( + url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), ), + trend_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), ) """ diff --git a/twitter_openapi_python_generated/test/test_module_item.py b/twitter_openapi_python_generated/test/test_module_item.py index a13be007..2ab0dbee 100644 --- a/twitter_openapi_python_generated/test/test_module_item.py +++ b/twitter_openapi_python_generated/test/test_module_item.py @@ -36,6 +36,7 @@ def make_instance(self, include_optional) -> ModuleItem: model = ModuleItem() if include_optional: return ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( diff --git a/twitter_openapi_python_generated/test/test_thumbnail_image.py b/twitter_openapi_python_generated/test/test_thumbnail_image.py new file mode 100644 index 00000000..669507aa --- /dev/null +++ b/twitter_openapi_python_generated/test/test_thumbnail_image.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.thumbnail_image import ThumbnailImage + +class TestThumbnailImage(unittest.TestCase): + """ThumbnailImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ThumbnailImage: + """Test ThumbnailImage + 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 `ThumbnailImage` + """ + model = ThumbnailImage() + if include_optional: + return ThumbnailImage( + original_img_height = 56, + original_img_url = '', + original_img_width = 56 + ) + else: + return ThumbnailImage( + ) + """ + + def testThumbnailImage(self): + """Test ThumbnailImage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/twitter_openapi_python_generated/test/test_timeline_add_to_module.py b/twitter_openapi_python_generated/test/test_timeline_add_to_module.py index 147b5258..29a6ae1a 100644 --- a/twitter_openapi_python_generated/test/test_timeline_add_to_module.py +++ b/twitter_openapi_python_generated/test/test_timeline_add_to_module.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> TimelineAddToModule: module_entry_id = '', module_items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( @@ -59,6 +60,7 @@ def make_instance(self, include_optional) -> TimelineAddToModule: module_entry_id = '', module_items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( 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 e3870644..16c30e43 100644 --- a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py +++ b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py @@ -55,6 +55,7 @@ def make_instance(self, include_optional) -> TimelineTimelineModule: header = { }, items = [ twitter_openapi_python_generated.models.module_item.ModuleItem( + dispensable = True, entry_id = '25375e030fccba00917317c574773100bf03b5f', item = twitter_openapi_python_generated.models.module_entry.ModuleEntry( client_event_info = twitter_openapi_python_generated.models.client_event_info.ClientEventInfo( diff --git a/twitter_openapi_python_generated/test/test_timeline_trend.py b/twitter_openapi_python_generated/test/test_timeline_trend.py new file mode 100644 index 00000000..c52c4268 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_timeline_trend.py @@ -0,0 +1,115 @@ +# 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_trend import TimelineTrend + +class TestTimelineTrend(unittest.TestCase): + """TimelineTrend unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TimelineTrend: + """Test TimelineTrend + 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 `TimelineTrend` + """ + model = TimelineTrend() + if include_optional: + return TimelineTrend( + typename = 'TimelineTweet', + images = [ + twitter_openapi_python_generated.models.trend_image.TrendImage( + url = '', ) + ], + is_ai_trend = True, + item_type = 'TimelineTweet', + name = '', + social_context = None, + thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( + url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), ), + trend_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ) + ) + else: + return TimelineTrend( + typename = 'TimelineTweet', + images = [ + twitter_openapi_python_generated.models.trend_image.TrendImage( + url = '', ) + ], + item_type = 'TimelineTweet', + name = '', + thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage( + original_img_height = 56, + original_img_url = '', + original_img_width = 56, ), + trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata( + url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), ), + trend_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url = '', + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ), + ) + """ + + def testTimelineTrend(self): + """Test TimelineTrend""" + # 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_trend_image.py b/twitter_openapi_python_generated/test/test_trend_image.py new file mode 100644 index 00000000..da1d44e0 --- /dev/null +++ b/twitter_openapi_python_generated/test/test_trend_image.py @@ -0,0 +1,52 @@ +# 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.trend_image import TrendImage + +class TestTrendImage(unittest.TestCase): + """TrendImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TrendImage: + """Test TrendImage + 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 `TrendImage` + """ + model = TrendImage() + if include_optional: + return TrendImage( + url = '' + ) + else: + return TrendImage( + ) + """ + + def testTrendImage(self): + """Test TrendImage""" + # 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_trend_metadata.py b/twitter_openapi_python_generated/test/test_trend_metadata.py new file mode 100644 index 00000000..b86d1efa --- /dev/null +++ b/twitter_openapi_python_generated/test/test_trend_metadata.py @@ -0,0 +1,60 @@ +# 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.trend_metadata import TrendMetadata + +class TestTrendMetadata(unittest.TestCase): + """TrendMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TrendMetadata: + """Test TrendMetadata + 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 `TrendMetadata` + """ + model = TrendMetadata() + if include_optional: + return TrendMetadata( + url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl( + url_type = 'DeepLink', + urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions( + request_params = [ + twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams( + key = '', + value = '', ) + ], + title = '', ), ) + ) + else: + return TrendMetadata( + ) + """ + + def testTrendMetadata(self): + """Test TrendMetadata""" + # 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/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml index 5a1590f2..a7f26cbe 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.29 +packageVersion: 0.0.30 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/tools/win/init.ps1 b/twitter_openapi_python_generated/tools/win/init.ps1 index 36891a23..8847b61e 100644 --- a/twitter_openapi_python_generated/tools/win/init.ps1 +++ b/twitter_openapi_python_generated/tools/win/init.ps1 @@ -1 +1 @@ -Invoke-WebRequest -OutFile tools/openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.10.0/openapi-generator-cli-7.10.0.jar +Invoke-WebRequest -OutFile tools/openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar diff --git a/twitter_openapi_python_generated/twitter-openapi b/twitter_openapi_python_generated/twitter-openapi index 8b2d05d1..a3216654 160000 --- a/twitter_openapi_python_generated/twitter-openapi +++ b/twitter_openapi_python_generated/twitter-openapi @@ -1 +1 @@ -Subproject commit 8b2d05d1525404a29730f740a259026502be7cbd +Subproject commit a321665475ab77887bd17c2d45dca919eedf10bd 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 b112c382..1d8b217f 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.29" +__version__ = "0.0.30" # import apis into sdk package from twitter_openapi_python_generated.api.default_api import DefaultApi @@ -206,6 +206,7 @@ from twitter_openapi_python_generated.models.text_entity import TextEntity from twitter_openapi_python_generated.models.text_entity_ref import TextEntityRef from twitter_openapi_python_generated.models.text_highlight import TextHighlight +from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage from twitter_openapi_python_generated.models.timeline import Timeline from twitter_openapi_python_generated.models.timeline_add_entries import TimelineAddEntries from twitter_openapi_python_generated.models.timeline_add_entry import TimelineAddEntry @@ -230,6 +231,7 @@ 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_trend import TimelineTrend from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet from twitter_openapi_python_generated.models.timeline_user import TimelineUser from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 @@ -240,6 +242,8 @@ 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_image import TrendImage +from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata from twitter_openapi_python_generated.models.trend_results import TrendResults from twitter_openapi_python_generated.models.tweet import Tweet from twitter_openapi_python_generated.models.tweet_card import TweetCard diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py index 37329a36..1306fa90 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py @@ -19,7 +19,6 @@ from pydantic import StrictStr from twitter_openapi_python_generated.models.profile_response import ProfileResponse -from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized from twitter_openapi_python_generated.api_response import ApiResponse @@ -354,337 +353,3 @@ def _get_profile_spotlights_query_serialize( ) - - - @validate_call - def get_tweet_result_by_rest_id( - self, - path_query_id: StrictStr, - variables: StrictStr, - features: StrictStr, - field_toggles: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TweetResultByRestIdResponse: - """get_tweet_result_by_rest_id - - get TweetResultByRestId - - :param path_query_id: (required) - :type path_query_id: str - :param variables: (required) - :type variables: str - :param features: (required) - :type features: str - :param field_toggles: (required) - :type field_toggles: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tweet_result_by_rest_id_serialize( - path_query_id=path_query_id, - variables=variables, - features=features, - field_toggles=field_toggles, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TweetResultByRestIdResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_tweet_result_by_rest_id_with_http_info( - self, - path_query_id: StrictStr, - variables: StrictStr, - features: StrictStr, - field_toggles: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TweetResultByRestIdResponse]: - """get_tweet_result_by_rest_id - - get TweetResultByRestId - - :param path_query_id: (required) - :type path_query_id: str - :param variables: (required) - :type variables: str - :param features: (required) - :type features: str - :param field_toggles: (required) - :type field_toggles: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tweet_result_by_rest_id_serialize( - path_query_id=path_query_id, - variables=variables, - features=features, - field_toggles=field_toggles, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TweetResultByRestIdResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_tweet_result_by_rest_id_without_preload_content( - self, - path_query_id: StrictStr, - variables: StrictStr, - features: StrictStr, - field_toggles: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_tweet_result_by_rest_id - - get TweetResultByRestId - - :param path_query_id: (required) - :type path_query_id: str - :param variables: (required) - :type variables: str - :param features: (required) - :type features: str - :param field_toggles: (required) - :type field_toggles: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tweet_result_by_rest_id_serialize( - path_query_id=path_query_id, - variables=variables, - features=features, - field_toggles=field_toggles, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TweetResultByRestIdResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_tweet_result_by_rest_id_serialize( - self, - path_query_id, - variables, - features, - field_toggles, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if path_query_id is not None: - _path_params['pathQueryId'] = path_query_id - # process the query parameters - if variables is not None: - - _query_params.append(('variables', variables)) - - if features is not None: - - _query_params.append(('features', features)) - - if field_toggles is not None: - - _query_params.append(('fieldToggles', field_toggles)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'Accept', - 'ClientLanguage', - 'Priority', - 'Referer', - 'SecFetchDest', - 'SecChUaPlatform', - 'SecFetchMode', - 'CsrfToken', - 'ClientUuid', - 'BearerAuth', - 'GuestToken', - 'SecChUa', - 'CookieGt0', - 'ClientTransactionId', - 'ActiveUser', - 'CookieCt0', - 'UserAgent', - 'AcceptLanguage', - 'SecFetchSite', - 'AuthType', - 'CookieAuthToken', - 'SecChUaMobile', - 'AcceptEncoding' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/graphql/{pathQueryId}/TweetResultByRestId', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - 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 45836aa2..7af71e3c 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.29/python' + self.user_agent = 'OpenAPI-Generator/0.0.30/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -518,7 +518,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' 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 c8392d8f..901f11f6 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -184,6 +184,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: @@ -217,13 +219,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -301,6 +304,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ @@ -743,7 +750,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.1\n"\ - "SDK Package Version: 0.0.29".\ + "SDK Package Version: 0.0.30".\ 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/exceptions.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/exceptions.py index 506adcd9..9bc3dc8f 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/exceptions.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/exceptions.py @@ -151,6 +151,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -189,6 +196,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" 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 83b9edca..868e93f5 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 @@ -180,6 +180,7 @@ from twitter_openapi_python_generated.models.text_entity import TextEntity from twitter_openapi_python_generated.models.text_entity_ref import TextEntityRef from twitter_openapi_python_generated.models.text_highlight import TextHighlight +from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage from twitter_openapi_python_generated.models.timeline import Timeline from twitter_openapi_python_generated.models.timeline_add_entries import TimelineAddEntries from twitter_openapi_python_generated.models.timeline_add_entry import TimelineAddEntry @@ -204,6 +205,7 @@ 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_trend import TimelineTrend from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet from twitter_openapi_python_generated.models.timeline_user import TimelineUser from twitter_openapi_python_generated.models.timeline_v2 import TimelineV2 @@ -214,6 +216,8 @@ 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_image import TrendImage +from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata from twitter_openapi_python_generated.models.trend_results import TrendResults from twitter_openapi_python_generated.models.tweet import Tweet from twitter_openapi_python_generated.models.tweet_card import TweetCard 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 7dd61259..b1681447 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 @@ -23,13 +23,14 @@ 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_trend import TimelineTrend 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", "TimelineTombstone", "TimelineTweet", "TimelineUser"] +ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser"] class ItemContentUnion(BaseModel): """ @@ -49,8 +50,10 @@ class ItemContentUnion(BaseModel): oneof_schema_6_validator: Optional[TimelineCommunity] = None # 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" } + # data type: TimelineTrend + oneof_schema_8_validator: Optional[TimelineTrend] = None + actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]] = None + one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineUser" } model_config = ConfigDict( validate_assignment=True, @@ -111,12 +114,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineTombstone`") else: match += 1 + # validate data type: TimelineTrend + if not isinstance(v, TimelineTrend): + error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineTrend`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return v @@ -161,6 +169,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = TimelineTombstone.from_json(json_str) return instance + # check if data type is `TimelineTrend` + if _data_type == "TimelineTrend": + instance.actual_instance = TimelineTrend.from_json(json_str) + return instance + # check if data type is `TimelineTweet` if _data_type == "TimelineTweet": instance.actual_instance = TimelineTweet.from_json(json_str) @@ -213,13 +226,19 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into TimelineTrend + try: + instance.actual_instance = TimelineTrend.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, 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, TimelineTrend, TimelineTweet, TimelineUser. Details: " + ", ".join(error_messages)) else: return instance @@ -233,7 +252,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTweet, TimelineUser]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineUser]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py index a7239923..6b55c5c2 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_item.py @@ -18,8 +18,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, field_validator -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from twitter_openapi_python_generated.models.module_entry import ModuleEntry from typing import Optional, Set @@ -29,9 +29,10 @@ class ModuleItem(BaseModel): """ ModuleItem """ # noqa: E501 + dispensable: Optional[StrictBool] = None entry_id: Annotated[str, Field(strict=True)] = Field(alias="entryId") item: ModuleEntry - __properties: ClassVar[List[str]] = ["entryId", "item"] + __properties: ClassVar[List[str]] = ["dispensable", "entryId", "item"] @field_validator('entry_id') def entry_id_validate_regular_expression(cls, value): @@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "dispensable": obj.get("dispensable"), "entryId": obj.get("entryId"), "item": ModuleEntry.from_dict(obj["item"]) if obj.get("item") is not None else None }) diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/thumbnail_image.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/thumbnail_image.py new file mode 100644 index 00000000..f25e545c --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/thumbnail_image.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ThumbnailImage(BaseModel): + """ + ThumbnailImage + """ # noqa: E501 + original_img_height: Optional[StrictInt] = None + original_img_url: Optional[StrictStr] = None + original_img_width: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["original_img_height", "original_img_url", "original_img_width"] + + 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 ThumbnailImage 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 ThumbnailImage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "original_img_height": obj.get("original_img_height"), + "original_img_url": obj.get("original_img_url"), + "original_img_width": obj.get("original_img_width") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py new file mode 100644 index 00000000..5766f8f9 --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py @@ -0,0 +1,130 @@ +# 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, StrictBool, StrictStr +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.social_context_landing_url import SocialContextLandingUrl +from twitter_openapi_python_generated.models.social_context_union import SocialContextUnion +from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage +from twitter_openapi_python_generated.models.trend_image import TrendImage +from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata +from twitter_openapi_python_generated.models.type_name import TypeName +from typing import Optional, Set +from typing_extensions import Self + +class TimelineTrend(BaseModel): + """ + TimelineTrend + """ # noqa: E501 + typename: TypeName = Field(alias="__typename") + images: List[TrendImage] + is_ai_trend: Optional[StrictBool] = None + item_type: ContentItemType = Field(alias="itemType") + name: StrictStr + social_context: Optional[SocialContextUnion] = None + thumbnail_image: ThumbnailImage + trend_metadata: TrendMetadata + trend_url: SocialContextLandingUrl + __properties: ClassVar[List[str]] = ["__typename", "images", "is_ai_trend", "itemType", "name", "social_context", "thumbnail_image", "trend_metadata", "trend_url"] + + 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 TimelineTrend 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 images (list) + _items = [] + if self.images: + for _item_images in self.images: + if _item_images: + _items.append(_item_images.to_dict()) + _dict['images'] = _items + # override the default output from pydantic by calling `to_dict()` of social_context + if self.social_context: + _dict['social_context'] = self.social_context.to_dict() + # override the default output from pydantic by calling `to_dict()` of thumbnail_image + if self.thumbnail_image: + _dict['thumbnail_image'] = self.thumbnail_image.to_dict() + # override the default output from pydantic by calling `to_dict()` of trend_metadata + if self.trend_metadata: + _dict['trend_metadata'] = self.trend_metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of trend_url + if self.trend_url: + _dict['trend_url'] = self.trend_url.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TimelineTrend 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"), + "images": [TrendImage.from_dict(_item) for _item in obj["images"]] if obj.get("images") is not None else None, + "is_ai_trend": obj.get("is_ai_trend"), + "itemType": obj.get("itemType"), + "name": obj.get("name"), + "social_context": SocialContextUnion.from_dict(obj["social_context"]) if obj.get("social_context") is not None else None, + "thumbnail_image": ThumbnailImage.from_dict(obj["thumbnail_image"]) if obj.get("thumbnail_image") is not None else None, + "trend_metadata": TrendMetadata.from_dict(obj["trend_metadata"]) if obj.get("trend_metadata") is not None else None, + "trend_url": SocialContextLandingUrl.from_dict(obj["trend_url"]) if obj.get("trend_url") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_image.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_image.py new file mode 100644 index 00000000..51b563bb --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_image.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TrendImage(BaseModel): + """ + TrendImage + """ # noqa: E501 + url: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["url"] + + 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 TrendImage 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 TrendImage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": obj.get("url") + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py new file mode 100644 index 00000000..dc16e9bc --- /dev/null +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Twitter OpenAPI + + Twitter OpenAPI(Swagger) specification + + The version of the OpenAPI document: 0.0.1 + Contact: yuki@yuki0311.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from twitter_openapi_python_generated.models.social_context_landing_url import SocialContextLandingUrl +from typing import Optional, Set +from typing_extensions import Self + +class TrendMetadata(BaseModel): + """ + TrendMetadata + """ # noqa: E501 + url: Optional[SocialContextLandingUrl] = None + __properties: ClassVar[List[str]] = ["url"] + + 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 TrendMetadata 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 url + if self.url: + _dict['url'] = self.url.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TrendMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": SocialContextLandingUrl.from_dict(obj["url"]) if obj.get("url") is not None else None + }) + return _obj + + diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/rest.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/rest.py index da2ffa1f..bb4e05e1 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/rest.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/rest.py @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( From 43c3a97f4167b7c6aab152e52eb2eabc18dae985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 11 Mar 2025 23:10:47 +0900 Subject: [PATCH 2/5] update 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 ++-- .../twitter_openapi_python/client.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index 04f20276..eda9e487 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.32" +version = "0.0.33" 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.29" +twitter-openapi-python-generated = "0.0.30" [tool.poetry.dev-dependencies] diff --git a/twitter_openapi_python/requirements.txt b/twitter_openapi_python/requirements.txt index 0501af9a5db50a3efede7e55d1d96b842da695a3..f8db0f896438431f7fdfb97324f796e3e0d5ec86 100644 GIT binary patch delta 9 QcmXRZnNYxD%wWI(01u4= 2.6", ] GITHUB_RAW_URL = ( diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py index 22d87499..08180b4e 100644 --- a/twitter_openapi_python/twitter_openapi_python/client.py +++ b/twitter_openapi_python/twitter_openapi_python/client.py @@ -58,7 +58,7 @@ def get_v11_post_api(self) -> V11PostApiUtils: class TwitterOpenapiPython: - hash: str = "8b2d05d1525404a29730f740a259026502be7cbd" + hash: str = "a321665475ab77887bd17c2d45dca919eedf10bd" 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 = ( From 6db567aa9f4f7c467f83794b57d7a675fa46da55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 12 Mar 2025 03:06:37 +0900 Subject: [PATCH 3/5] generated 0.0.31 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter_openapi_python_generated/README.md | 3 +- .../docs/DefaultApi.md | 236 ++++++++++++++++++ .../docs/TypeName.md | 2 + .../pyproject.toml | 4 +- twitter_openapi_python_generated/setup.py | 2 +- .../test/test_default_api.py | 6 + .../tools/openapi-generator-config.yaml | 2 +- .../twitter-openapi | 2 +- 8 files changed, 251 insertions(+), 6 deletions(-) diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md index ef3c61a2..62713ff0 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.30 +- Package version: 0.0.31 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -228,6 +228,7 @@ All URIs are relative to *https://x.com/i/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**get_profile_spotlights_query**](docs/DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery | +*DefaultApi* | [**get_tweet_result_by_rest_id**](docs/DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId | *OtherApi* | [**other**](docs/OtherApi.md#other) | **GET** /other | *PostApi* | [**post_create_bookmark**](docs/PostApi.md#post_create_bookmark) | **POST** /graphql/{pathQueryId}/CreateBookmark | *PostApi* | [**post_create_retweet**](docs/PostApi.md#post_create_retweet) | **POST** /graphql/{pathQueryId}/CreateRetweet | diff --git a/twitter_openapi_python_generated/docs/DefaultApi.md b/twitter_openapi_python_generated/docs/DefaultApi.md index aaf7fe96..46a20ea4 100644 --- a/twitter_openapi_python_generated/docs/DefaultApi.md +++ b/twitter_openapi_python_generated/docs/DefaultApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://x.com/i/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_profile_spotlights_query**](DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery | +[**get_tweet_result_by_rest_id**](DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId | # **get_profile_spotlights_query** @@ -240,3 +241,238 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_tweet_result_by_rest_id** +> TweetResultByRestIdResponse get_tweet_result_by_rest_id(path_query_id, variables, features, field_toggles) + +get TweetResultByRestId + +### Example + +* Api Key Authentication (Accept): +* Api Key Authentication (ClientLanguage): +* Api Key Authentication (Priority): +* Api Key Authentication (Referer): +* Api Key Authentication (SecFetchDest): +* Api Key Authentication (SecChUaPlatform): +* Api Key Authentication (SecFetchMode): +* Api Key Authentication (CsrfToken): +* Api Key Authentication (ClientUuid): +* Bearer Authentication (BearerAuth): +* Api Key Authentication (GuestToken): +* Api Key Authentication (SecChUa): +* Api Key Authentication (CookieGt0): +* Api Key Authentication (ClientTransactionId): +* Api Key Authentication (ActiveUser): +* Api Key Authentication (CookieCt0): +* Api Key Authentication (UserAgent): +* Api Key Authentication (AcceptLanguage): +* Api Key Authentication (SecFetchSite): +* Api Key Authentication (AuthType): +* Api Key Authentication (CookieAuthToken): +* Api Key Authentication (SecChUaMobile): +* Api Key Authentication (AcceptEncoding): + +```python +import twitter_openapi_python_generated +from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse +from twitter_openapi_python_generated.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://x.com/i/api +# See configuration.py for a list of all supported configuration parameters. +configuration = twitter_openapi_python_generated.Configuration( + host = "https://x.com/i/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Accept +configuration.api_key['Accept'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Accept'] = 'Bearer' + +# Configure API key authorization: ClientLanguage +configuration.api_key['ClientLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientLanguage'] = 'Bearer' + +# Configure API key authorization: Priority +configuration.api_key['Priority'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Priority'] = 'Bearer' + +# Configure API key authorization: Referer +configuration.api_key['Referer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Referer'] = 'Bearer' + +# Configure API key authorization: SecFetchDest +configuration.api_key['SecFetchDest'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchDest'] = 'Bearer' + +# Configure API key authorization: SecChUaPlatform +configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer' + +# Configure API key authorization: SecFetchMode +configuration.api_key['SecFetchMode'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchMode'] = 'Bearer' + +# Configure API key authorization: CsrfToken +configuration.api_key['CsrfToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CsrfToken'] = 'Bearer' + +# Configure API key authorization: ClientUuid +configuration.api_key['ClientUuid'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientUuid'] = 'Bearer' + +# Configure Bearer authorization: BearerAuth +configuration = twitter_openapi_python_generated.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: GuestToken +configuration.api_key['GuestToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['GuestToken'] = 'Bearer' + +# Configure API key authorization: SecChUa +configuration.api_key['SecChUa'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUa'] = 'Bearer' + +# Configure API key authorization: CookieGt0 +configuration.api_key['CookieGt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieGt0'] = 'Bearer' + +# Configure API key authorization: ClientTransactionId +configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer' + +# Configure API key authorization: ActiveUser +configuration.api_key['ActiveUser'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ActiveUser'] = 'Bearer' + +# Configure API key authorization: CookieCt0 +configuration.api_key['CookieCt0'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieCt0'] = 'Bearer' + +# Configure API key authorization: UserAgent +configuration.api_key['UserAgent'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['UserAgent'] = 'Bearer' + +# Configure API key authorization: AcceptLanguage +configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer' + +# Configure API key authorization: SecFetchSite +configuration.api_key['SecFetchSite'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecFetchSite'] = 'Bearer' + +# Configure API key authorization: AuthType +configuration.api_key['AuthType'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AuthType'] = 'Bearer' + +# Configure API key authorization: CookieAuthToken +configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer' + +# Configure API key authorization: SecChUaMobile +configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer' + +# Configure API key authorization: AcceptEncoding +configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer' + +# Enter a context with an instance of the API client +with twitter_openapi_python_generated.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = twitter_openapi_python_generated.DefaultApi(api_client) + path_query_id = '7xflPyRiUxGVbJd4uWmbfg' # str | (default to '7xflPyRiUxGVbJd4uWmbfg') + variables = '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}' # str | (default to '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}') + features = '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}') + field_toggles = '{"withArticleRichContentState": true, "withArticlePlainText": false}' # str | (default to '{"withArticleRichContentState": true, "withArticlePlainText": false}') + + try: + api_response = api_instance.get_tweet_result_by_rest_id(path_query_id, variables, features, field_toggles) + print("The response of DefaultApi->get_tweet_result_by_rest_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->get_tweet_result_by_rest_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path_query_id** | **str**| | [default to '7xflPyRiUxGVbJd4uWmbfg'] + **variables** | **str**| | [default to '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent": false, "withVoice": false}'] + **features** | **str**| | [default to '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled": true, "tweetypie_unmention_optimization_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, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_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, "responsive_web_enhance_cards_enabled": false}'] + **field_toggles** | **str**| | [default to '{"withArticleRichContentState": true, "withArticlePlainText": false}'] + +### Return type + +[**TweetResultByRestIdResponse**](TweetResultByRestIdResponse.md) + +### Authorization + +[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/twitter_openapi_python_generated/docs/TypeName.md b/twitter_openapi_python_generated/docs/TypeName.md index d990568b..db833fff 100644 --- a/twitter_openapi_python_generated/docs/TypeName.md +++ b/twitter_openapi_python_generated/docs/TypeName.md @@ -27,6 +27,8 @@ * `TIMELINETOMBSTONE` (value: `'TimelineTombstone'`) +* `TIMELINETREND` (value: `'TimelineTrend'`) + * `TWEETUNAVAILABLE` (value: `'TweetUnavailable'`) * `TWEETPREVIEWDISPLAY` (value: `'TweetPreviewDisplay'`) diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml index 39c271c7..7c4a54d0 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.30" +version = "0.0.31" description = "Twitter OpenAPI" authors = ["OpenAPI Generator Community "] license = "custom license or AGPL-3.0-or-later" @@ -12,7 +12,7 @@ include = ["twitter_openapi_python_generated/py.typed"] [tool.poetry.dependencies] python = "^3.8" -urllib3 = ">= 2.1.0 < 3.0.0" +urllib3 = ">= 1.25.3, < 3.0.0" python-dateutil = ">= 2.8.2" pydantic = ">= 2" typing-extensions = ">= 4.7.1" diff --git a/twitter_openapi_python_generated/setup.py b/twitter_openapi_python_generated/setup.py index 07d47cbc..db8d1b92 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.30" +VERSION = "0.0.31" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/twitter_openapi_python_generated/test/test_default_api.py b/twitter_openapi_python_generated/test/test_default_api.py index f08efb28..0a47afdb 100644 --- a/twitter_openapi_python_generated/test/test_default_api.py +++ b/twitter_openapi_python_generated/test/test_default_api.py @@ -33,6 +33,12 @@ def test_get_profile_spotlights_query(self) -> None: """ pass + def test_get_tweet_result_by_rest_id(self) -> None: + """Test case for get_tweet_result_by_rest_id + + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml index a7f26cbe..0117a8f2 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.30 +packageVersion: 0.0.31 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 a3216654..227f4e37 160000 --- a/twitter_openapi_python_generated/twitter-openapi +++ b/twitter_openapi_python_generated/twitter-openapi @@ -1 +1 @@ -Subproject commit a321665475ab77887bd17c2d45dca919eedf10bd +Subproject commit 227f4e3716dbb034500945c378bd7874b611f8f5 From 722726e0185014e22ca537fb95d335f17283c98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 12 Mar 2025 03:12:16 +0900 Subject: [PATCH 4/5] update 0.0.35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter_openapi_python/pyproject.toml | 5 +++-- twitter_openapi_python/requirements.txt | Bin 116 -> 170 bytes twitter_openapi_python/setup.py | 5 +++-- .../twitter_openapi_python/client.py | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index eda9e487..638c192c 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.33" +version = "0.0.35" description = "Twitter OpenAPI" authors = ["fa0311 "] license = "proprietary" # or "AGPL-3.0-only" @@ -13,8 +13,9 @@ include = ["twitter_openapi_python/py.typed"] [tool.poetry.dependencies] python = "^3.7" pydantic = ">=2.6" +urllib3 = ">= 2.1.0 < 3.0.0" -twitter-openapi-python-generated = "0.0.30" +twitter-openapi-python-generated = "0.0.31" [tool.poetry.dev-dependencies] diff --git a/twitter_openapi_python/requirements.txt b/twitter_openapi_python/requirements.txt index f8db0f896438431f7fdfb97324f796e3e0d5ec86..d628c2f01388b3e1888250105fb692ef919b67d0 100644 GIT binary patch delta 62 zcmXR}#WpSd80;8qfus?G9)lqe8!+eqc{V_74CaAE E091Vlpa1{> delta 8 PcmZ3*STdoA$$$X>4HW`Z diff --git a/twitter_openapi_python/setup.py b/twitter_openapi_python/setup.py index 6e6217ed..267333c7 100644 --- a/twitter_openapi_python/setup.py +++ b/twitter_openapi_python/setup.py @@ -5,11 +5,12 @@ from setuptools import find_packages, setup NAME = "twitter_openapi_python" -VERSION = "0.0.33" +VERSION = "0.0.35" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ - "twitter_openapi_python_generated == 0.0.30", + "twitter_openapi_python_generated == 0.0.31", "pydantic >= 2.6", + "urllib3 >= 2.1.0, < 3.0.0" ] GITHUB_RAW_URL = ( "https://raw.githubusercontent.com/fa0311/twitter_openapi_python/refs/heads/master/twitter_openapi_python/" diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py index 08180b4e..755abbca 100644 --- a/twitter_openapi_python/twitter_openapi_python/client.py +++ b/twitter_openapi_python/twitter_openapi_python/client.py @@ -58,7 +58,7 @@ def get_v11_post_api(self) -> V11PostApiUtils: class TwitterOpenapiPython: - hash: str = "a321665475ab77887bd17c2d45dca919eedf10bd" + hash: str = "227f4e3716dbb034500945c378bd7874b611f8f5" 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 = ( From 11015d46c913f0b05c8bcfff92efdbd64bb967d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 12 Mar 2025 03:12:42 +0900 Subject: [PATCH 5/5] generated 0.0.31 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .../__init__.py | 2 +- .../api/default_api.py | 335 ++++++++++++++++++ .../api_client.py | 2 +- .../configuration.py | 2 +- .../models/type_name.py | 1 + 5 files changed, 339 insertions(+), 3 deletions(-) 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 1d8b217f..c533dabd 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.30" +__version__ = "0.0.31" # import apis into sdk package from twitter_openapi_python_generated.api.default_api import DefaultApi diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py index 1306fa90..37329a36 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py @@ -19,6 +19,7 @@ from pydantic import StrictStr from twitter_openapi_python_generated.models.profile_response import ProfileResponse +from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized from twitter_openapi_python_generated.api_response import ApiResponse @@ -353,3 +354,337 @@ def _get_profile_spotlights_query_serialize( ) + + + @validate_call + def get_tweet_result_by_rest_id( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + field_toggles: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TweetResultByRestIdResponse: + """get_tweet_result_by_rest_id + + get TweetResultByRestId + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param field_toggles: (required) + :type field_toggles: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_tweet_result_by_rest_id_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + field_toggles=field_toggles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TweetResultByRestIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_tweet_result_by_rest_id_with_http_info( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + field_toggles: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TweetResultByRestIdResponse]: + """get_tweet_result_by_rest_id + + get TweetResultByRestId + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param field_toggles: (required) + :type field_toggles: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_tweet_result_by_rest_id_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + field_toggles=field_toggles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TweetResultByRestIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_tweet_result_by_rest_id_without_preload_content( + self, + path_query_id: StrictStr, + variables: StrictStr, + features: StrictStr, + field_toggles: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_tweet_result_by_rest_id + + get TweetResultByRestId + + :param path_query_id: (required) + :type path_query_id: str + :param variables: (required) + :type variables: str + :param features: (required) + :type features: str + :param field_toggles: (required) + :type field_toggles: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_tweet_result_by_rest_id_serialize( + path_query_id=path_query_id, + variables=variables, + features=features, + field_toggles=field_toggles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TweetResultByRestIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_tweet_result_by_rest_id_serialize( + self, + path_query_id, + variables, + features, + field_toggles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if path_query_id is not None: + _path_params['pathQueryId'] = path_query_id + # process the query parameters + if variables is not None: + + _query_params.append(('variables', variables)) + + if features is not None: + + _query_params.append(('features', features)) + + if field_toggles is not None: + + _query_params.append(('fieldToggles', field_toggles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Accept', + 'ClientLanguage', + 'Priority', + 'Referer', + 'SecFetchDest', + 'SecChUaPlatform', + 'SecFetchMode', + 'CsrfToken', + 'ClientUuid', + 'BearerAuth', + 'GuestToken', + 'SecChUa', + 'CookieGt0', + 'ClientTransactionId', + 'ActiveUser', + 'CookieCt0', + 'UserAgent', + 'AcceptLanguage', + 'SecFetchSite', + 'AuthType', + 'CookieAuthToken', + 'SecChUaMobile', + 'AcceptEncoding' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/graphql/{pathQueryId}/TweetResultByRestId', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + 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 7af71e3c..b0ffc5e4 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.30/python' + self.user_agent = 'OpenAPI-Generator/0.0.31/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 901f11f6..f48b11ee 100644 --- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py +++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py @@ -750,7 +750,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.1\n"\ - "SDK Package Version: 0.0.30".\ + "SDK Package Version: 0.0.31".\ 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/type_name.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py index 8d9f25fa..f2fa525d 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 @@ -39,6 +39,7 @@ class TypeName(str, Enum): TIMELINEMESSAGEPROMPT = 'TimelineMessagePrompt' TIMELINECOMMUNITY = 'TimelineCommunity' TIMELINETOMBSTONE = 'TimelineTombstone' + TIMELINETREND = 'TimelineTrend' TWEETUNAVAILABLE = 'TweetUnavailable' TWEETPREVIEWDISPLAY = 'TweetPreviewDisplay' TWEET = 'Tweet'