twitter-openapi-python-generated 0.0.34__py3-none-any.whl → 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- twitter_openapi_python_generated/__init__.py +279 -7
- twitter_openapi_python_generated/api/post_api.py +2079 -203
- twitter_openapi_python_generated/api/tweet_api.py +3207 -231
- twitter_openapi_python_generated/api/user_api.py +969 -66
- twitter_openapi_python_generated/api/user_list_api.py +1907 -0
- twitter_openapi_python_generated/api_client.py +47 -9
- twitter_openapi_python_generated/configuration.py +55 -6
- twitter_openapi_python_generated/models/__init__.py +139 -3
- twitter_openapi_python_generated/models/ad_metadata_container.py +104 -0
- twitter_openapi_python_generated/models/additional_media_info.py +3 -1
- twitter_openapi_python_generated/models/affiliates_highlighted_label.py +93 -0
- twitter_openapi_python_generated/models/api_image.py +108 -0
- twitter_openapi_python_generated/models/api_media.py +110 -0
- twitter_openapi_python_generated/models/article_cover_media.py +2 -5
- twitter_openapi_python_generated/models/article_cover_media_info.py +3 -3
- twitter_openapi_python_generated/models/article_result.py +3 -7
- twitter_openapi_python_generated/models/badge_counts.py +97 -0
- twitter_openapi_python_generated/models/birdwatch_entity_ref.py +3 -1
- twitter_openapi_python_generated/models/birdwatch_pivot.py +2 -2
- twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +1 -2
- twitter_openapi_python_generated/models/birdwatch_pivot_note.py +2 -5
- twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +1 -2
- twitter_openapi_python_generated/models/bookmarks_response.py +1 -2
- twitter_openapi_python_generated/models/cashtag_attachment.py +89 -0
- twitter_openapi_python_generated/models/cashtag_info.py +93 -0
- twitter_openapi_python_generated/models/click_tracking_info.py +96 -0
- twitter_openapi_python_generated/models/client_event_info.py +6 -2
- twitter_openapi_python_generated/models/client_event_info_details.py +99 -0
- twitter_openapi_python_generated/models/community.py +21 -15
- twitter_openapi_python_generated/models/community_about_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/community_banner_media.py +95 -0
- twitter_openapi_python_generated/models/community_banner_media_info.py +108 -0
- twitter_openapi_python_generated/models/community_discovery_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/community_discovery_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/community_discovery_timeline_viewer.py +93 -0
- twitter_openapi_python_generated/models/community_join_action_result_union.py +3 -2
- twitter_openapi_python_generated/models/community_media_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/community_moderation_state.py +90 -0
- twitter_openapi_python_generated/models/community_relationship.py +8 -7
- twitter_openapi_python_generated/models/community_rule.py +2 -5
- twitter_openapi_python_generated/models/community_tweets_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/community_union.py +3 -2
- twitter_openapi_python_generated/models/community_viewer_relationship.py +95 -0
- twitter_openapi_python_generated/models/connect_tab_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/connect_tab_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/content_disclosure_ai_generated_disclosure.py +2 -2
- twitter_openapi_python_generated/models/content_item_type.py +3 -0
- twitter_openapi_python_generated/models/content_union.py +3 -2
- twitter_openapi_python_generated/models/conversation_control.py +10 -11
- twitter_openapi_python_generated/models/conversation_details.py +96 -0
- twitter_openapi_python_generated/models/conversation_metadata.py +92 -0
- twitter_openapi_python_generated/models/conversation_owner.py +96 -0
- twitter_openapi_python_generated/models/conversation_owner_core.py +89 -0
- twitter_openapi_python_generated/models/conversation_owner_results.py +93 -0
- twitter_openapi_python_generated/models/cover_cta.py +1 -2
- twitter_openapi_python_generated/models/create_bookmark_response.py +1 -2
- twitter_openapi_python_generated/models/create_draft_tweet_response.py +102 -0
- twitter_openapi_python_generated/models/create_draft_tweet_response_data.py +93 -0
- twitter_openapi_python_generated/models/create_draft_tweet_response_tweet.py +97 -0
- twitter_openapi_python_generated/models/create_retweet_response.py +1 -2
- twitter_openapi_python_generated/models/create_tweet_response.py +1 -2
- twitter_openapi_python_generated/models/cta_limited_action_prompt.py +110 -0
- twitter_openapi_python_generated/models/cta_limited_action_prompt_text.py +91 -0
- twitter_openapi_python_generated/models/deepsearch_header.py +96 -0
- twitter_openapi_python_generated/models/deepsearch_step.py +99 -0
- twitter_openapi_python_generated/models/deepsearch_web_result.py +89 -0
- twitter_openapi_python_generated/models/delete_bookmark_response.py +1 -2
- twitter_openapi_python_generated/models/delete_draft_tweets_response.py +102 -0
- twitter_openapi_python_generated/models/delete_draft_tweets_response_data.py +89 -0
- twitter_openapi_python_generated/models/delete_list_response.py +102 -0
- twitter_openapi_python_generated/models/delete_list_response_data.py +89 -0
- twitter_openapi_python_generated/models/delete_retweet.py +1 -2
- twitter_openapi_python_generated/models/delete_retweet_response.py +1 -2
- twitter_openapi_python_generated/models/delete_tweet_response.py +1 -2
- twitter_openapi_python_generated/models/draft_list.py +96 -0
- twitter_openapi_python_generated/models/draft_tweet.py +109 -0
- twitter_openapi_python_generated/models/draft_tweet_create_request.py +99 -0
- twitter_openapi_python_generated/models/draft_tweet_user.py +100 -0
- twitter_openapi_python_generated/models/draft_tweet_user_results.py +93 -0
- twitter_openapi_python_generated/models/draft_tweets_viewer.py +93 -0
- twitter_openapi_python_generated/models/entities.py +34 -15
- twitter_openapi_python_generated/models/error_extensions.py +1 -1
- twitter_openapi_python_generated/models/error_response.py +3 -5
- twitter_openapi_python_generated/models/explore_page.py +95 -0
- twitter_openapi_python_generated/models/explore_page_body.py +104 -0
- twitter_openapi_python_generated/models/explore_page_response.py +102 -0
- twitter_openapi_python_generated/models/explore_page_response_data.py +93 -0
- twitter_openapi_python_generated/models/explore_timeline.py +105 -0
- twitter_openapi_python_generated/models/explore_timeline_scribe_config.py +91 -0
- twitter_openapi_python_generated/models/extended_entities.py +1 -2
- twitter_openapi_python_generated/models/favorite_tweet_response.py +1 -2
- twitter_openapi_python_generated/models/feedback_action.py +136 -0
- twitter_openapi_python_generated/models/feedback_action_entry.py +95 -0
- twitter_openapi_python_generated/models/feedback_client_event_info.py +93 -0
- twitter_openapi_python_generated/models/feedback_info.py +8 -6
- twitter_openapi_python_generated/models/fetch_draft_tweets_response.py +102 -0
- twitter_openapi_python_generated/models/fetch_draft_tweets_response_data.py +93 -0
- twitter_openapi_python_generated/models/fetch_scheduled_tweets_response.py +102 -0
- twitter_openapi_python_generated/models/fetch_scheduled_tweets_response_data.py +93 -0
- twitter_openapi_python_generated/models/follow_response.py +1 -2
- twitter_openapi_python_generated/models/generic_timeline_by_id_response.py +102 -0
- twitter_openapi_python_generated/models/generic_timeline_by_id_response_data.py +93 -0
- twitter_openapi_python_generated/models/grok_share_attachment.py +1 -2
- twitter_openapi_python_generated/models/grok_share_attachment_item.py +9 -2
- twitter_openapi_python_generated/models/grok_translated_bio.py +101 -0
- twitter_openapi_python_generated/models/grok_translated_bio_with_availability.py +97 -0
- twitter_openapi_python_generated/models/grok_translated_community_note.py +1 -2
- twitter_openapi_python_generated/models/hashtag.py +91 -0
- twitter_openapi_python_generated/models/highlight.py +1 -2
- twitter_openapi_python_generated/models/instruction_union.py +3 -2
- twitter_openapi_python_generated/models/item_content_union.py +68 -10
- twitter_openapi_python_generated/models/jetfuel_attachment.py +91 -0
- twitter_openapi_python_generated/models/key_value.py +91 -0
- twitter_openapi_python_generated/models/landing_url.py +98 -0
- twitter_openapi_python_generated/models/limited_action.py +95 -0
- twitter_openapi_python_generated/models/limited_action_results.py +96 -0
- twitter_openapi_python_generated/models/limited_action_results_data.py +1 -8
- twitter_openapi_python_generated/models/list_banner_media.py +93 -0
- twitter_openapi_python_generated/models/list_banner_media_info.py +99 -0
- twitter_openapi_python_generated/models/list_banner_media_results.py +93 -0
- twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/list_members_list.py +93 -0
- twitter_openapi_python_generated/models/list_members_response.py +102 -0
- twitter_openapi_python_generated/models/list_members_response_data.py +93 -0
- twitter_openapi_python_generated/models/list_recommended_users_list.py +93 -0
- twitter_openapi_python_generated/models/list_recommended_users_response.py +102 -0
- twitter_openapi_python_generated/models/list_recommended_users_response_data.py +93 -0
- twitter_openapi_python_generated/models/list_response.py +102 -0
- twitter_openapi_python_generated/models/list_response_data.py +93 -0
- twitter_openapi_python_generated/models/list_subscribers_list.py +93 -0
- twitter_openapi_python_generated/models/list_subscribers_response.py +102 -0
- twitter_openapi_python_generated/models/list_subscribers_response_data.py +93 -0
- twitter_openapi_python_generated/models/media.py +16 -17
- twitter_openapi_python_generated/models/{article_cover_media_color_info.py → media_color_info.py} +8 -9
- twitter_openapi_python_generated/models/{article_cover_media_color_info_palette.py → media_color_info_palette.py} +7 -7
- twitter_openapi_python_generated/models/{article_cover_media_color_info_palette_rgb.py → media_color_info_palette_rgb.py} +4 -4
- twitter_openapi_python_generated/models/media_extended.py +13 -16
- twitter_openapi_python_generated/models/media_original_info.py +1 -2
- twitter_openapi_python_generated/models/media_salient_rect.py +95 -0
- twitter_openapi_python_generated/models/media_video_info.py +1 -2
- twitter_openapi_python_generated/models/module_footer.py +104 -0
- twitter_openapi_python_generated/models/module_header.py +100 -0
- twitter_openapi_python_generated/models/module_item.py +2 -5
- twitter_openapi_python_generated/models/module_metadata.py +93 -0
- twitter_openapi_python_generated/models/note_tweet_result_data.py +2 -5
- twitter_openapi_python_generated/models/note_tweet_result_media.py +1 -2
- twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py +2 -5
- twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +1 -2
- twitter_openapi_python_generated/models/notifications_result.py +2 -5
- twitter_openapi_python_generated/models/notifications_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/post_create_bookmark_request.py +1 -1
- twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +2 -2
- twitter_openapi_python_generated/models/post_create_draft_tweet_request.py +95 -0
- twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables.py +93 -0
- twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables_post_tweet_request.py +97 -0
- twitter_openapi_python_generated/models/post_create_list_request.py +101 -0
- twitter_openapi_python_generated/models/post_create_list_request_features.py +97 -0
- twitter_openapi_python_generated/models/post_create_list_request_variables.py +93 -0
- twitter_openapi_python_generated/models/post_create_retweet_request.py +1 -1
- twitter_openapi_python_generated/models/post_create_retweet_request_variables.py +3 -3
- twitter_openapi_python_generated/models/post_create_tweet_request.py +2 -2
- twitter_openapi_python_generated/models/post_create_tweet_request_features.py +43 -41
- twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +4 -4
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py +2 -2
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +3 -4
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py +2 -2
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_reply.py +2 -2
- twitter_openapi_python_generated/models/post_cta_title_text.py +1 -2
- twitter_openapi_python_generated/models/post_delete_bookmark_request.py +1 -1
- twitter_openapi_python_generated/models/post_delete_draft_tweets_request.py +95 -0
- twitter_openapi_python_generated/models/post_delete_draft_tweets_request_variables.py +89 -0
- twitter_openapi_python_generated/models/post_delete_list_request.py +95 -0
- twitter_openapi_python_generated/models/post_delete_list_request_variables.py +89 -0
- twitter_openapi_python_generated/models/post_delete_retweet_request.py +1 -1
- twitter_openapi_python_generated/models/post_delete_retweet_request_variables.py +3 -3
- twitter_openapi_python_generated/models/post_delete_tweet_request.py +2 -2
- twitter_openapi_python_generated/models/post_favorite_tweet_request.py +1 -1
- twitter_openapi_python_generated/models/post_list_add_member_request.py +101 -0
- twitter_openapi_python_generated/models/post_list_add_member_request_variables.py +91 -0
- twitter_openapi_python_generated/models/post_list_remove_member_request.py +101 -0
- twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +1 -1
- twitter_openapi_python_generated/models/primary_community_topic.py +2 -5
- twitter_openapi_python_generated/models/profile_bio.py +11 -3
- twitter_openapi_python_generated/models/profile_bio_entities.py +98 -0
- twitter_openapi_python_generated/models/profile_bio_entities_urls.py +96 -0
- twitter_openapi_python_generated/models/profile_response.py +1 -2
- twitter_openapi_python_generated/models/promoted_metadata.py +109 -0
- twitter_openapi_python_generated/models/reader_mode_config.py +89 -0
- twitter_openapi_python_generated/models/retweet.py +4 -7
- twitter_openapi_python_generated/models/scheduled_tweets_viewer.py +89 -0
- twitter_openapi_python_generated/models/scribe_config.py +89 -0
- twitter_openapi_python_generated/models/search_timeline_response.py +1 -2
- twitter_openapi_python_generated/models/self_thread.py +2 -5
- twitter_openapi_python_generated/models/session.py +8 -20
- twitter_openapi_python_generated/models/smarttag_tag.py +6 -2
- twitter_openapi_python_generated/models/smarttag_tag_info.py +93 -0
- twitter_openapi_python_generated/models/social_context_union.py +3 -2
- twitter_openapi_python_generated/models/symbol.py +97 -0
- twitter_openapi_python_generated/models/text.py +1 -2
- twitter_openapi_python_generated/models/timeline.py +13 -6
- twitter_openapi_python_generated/models/timeline_add_entries.py +1 -2
- twitter_openapi_python_generated/models/timeline_add_entry.py +4 -10
- twitter_openapi_python_generated/models/timeline_add_to_module.py +1 -2
- twitter_openapi_python_generated/models/timeline_frame.py +97 -0
- twitter_openapi_python_generated/models/timeline_half_cover.py +1 -2
- twitter_openapi_python_generated/models/timeline_label.py +101 -0
- twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +2 -5
- twitter_openapi_python_generated/models/timeline_metadata.py +99 -0
- twitter_openapi_python_generated/models/timeline_response.py +1 -2
- twitter_openapi_python_generated/models/timeline_response_objects.py +96 -0
- twitter_openapi_python_generated/models/timeline_show_alert.py +19 -18
- twitter_openapi_python_generated/models/timeline_show_alert_color_config.py +93 -0
- twitter_openapi_python_generated/models/timeline_show_alert_icon_display_info.py +91 -0
- twitter_openapi_python_generated/models/timeline_show_alert_rich_text.py +3 -3
- twitter_openapi_python_generated/models/timeline_timeline_item.py +6 -2
- twitter_openapi_python_generated/models/timeline_timeline_module.py +19 -8
- twitter_openapi_python_generated/models/timeline_trend.py +16 -4
- twitter_openapi_python_generated/models/timeline_tweet.py +6 -2
- twitter_openapi_python_generated/models/timeline_twitter_list.py +101 -0
- twitter_openapi_python_generated/models/timelines_details.py +93 -0
- twitter_openapi_python_generated/models/tombstone_rich_text.py +1 -2
- twitter_openapi_python_generated/models/tracing.py +2 -5
- twitter_openapi_python_generated/models/trend_metadata.py +4 -2
- twitter_openapi_python_generated/models/trend_results.py +2 -5
- twitter_openapi_python_generated/models/tweet.py +23 -6
- twitter_openapi_python_generated/models/tweet_card_legacy.py +2 -4
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data.py +6 -2
- twitter_openapi_python_generated/models/tweet_card_platform_device.py +2 -5
- twitter_openapi_python_generated/models/tweet_detail_response.py +1 -2
- twitter_openapi_python_generated/models/tweet_edit_control.py +6 -15
- twitter_openapi_python_generated/models/tweet_edit_control_initial.py +4 -10
- twitter_openapi_python_generated/models/tweet_favoriters_response.py +1 -2
- twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +1 -2
- twitter_openapi_python_generated/models/tweet_interstitial_text.py +1 -2
- twitter_openapi_python_generated/models/tweet_legacy.py +21 -38
- twitter_openapi_python_generated/models/tweet_limited_action_results.py +1 -2
- twitter_openapi_python_generated/models/tweet_preview_display_tweet.py +5 -11
- twitter_openapi_python_generated/models/tweet_preview_display_tweet_view_count.py +2 -5
- twitter_openapi_python_generated/models/tweet_result_by_rest_id_response.py +1 -2
- twitter_openapi_python_generated/models/tweet_retweeters_response.py +1 -2
- twitter_openapi_python_generated/models/tweet_union.py +3 -2
- twitter_openapi_python_generated/models/tweet_view.py +2 -5
- twitter_openapi_python_generated/models/tweet_with_visibility_results.py +6 -2
- twitter_openapi_python_generated/models/twitter_list.py +160 -0
- twitter_openapi_python_generated/models/type_name.py +7 -0
- twitter_openapi_python_generated/models/unfavorite_tweet_response.py +1 -2
- twitter_openapi_python_generated/models/urt_endpoint_options.py +3 -4
- twitter_openapi_python_generated/models/user.py +81 -15
- twitter_openapi_python_generated/models/user_action_counts.py +89 -0
- twitter_openapi_python_generated/models/user_banner.py +89 -0
- twitter_openapi_python_generated/models/user_core.py +3 -6
- twitter_openapi_python_generated/models/user_highlights_tweets_response.py +1 -2
- twitter_openapi_python_generated/models/user_label.py +128 -0
- twitter_openapi_python_generated/models/user_label_badge.py +89 -0
- twitter_openapi_python_generated/models/user_label_mention_results.py +93 -0
- twitter_openapi_python_generated/models/user_label_mention_user.py +106 -0
- twitter_openapi_python_generated/models/user_label_mention_user_core.py +89 -0
- twitter_openapi_python_generated/models/user_label_text.py +98 -0
- twitter_openapi_python_generated/models/user_label_text_entity.py +97 -0
- twitter_openapi_python_generated/models/user_label_text_entity_ref.py +104 -0
- twitter_openapi_python_generated/models/user_label_url.py +98 -0
- twitter_openapi_python_generated/models/user_legacy.py +9 -8
- twitter_openapi_python_generated/models/user_mention.py +115 -0
- twitter_openapi_python_generated/models/user_notifications_settings.py +89 -0
- twitter_openapi_python_generated/models/user_pinned_items.py +90 -0
- twitter_openapi_python_generated/models/user_professional.py +10 -9
- twitter_openapi_python_generated/models/user_profile_metadata.py +89 -0
- twitter_openapi_python_generated/models/user_profile_translation.py +89 -0
- twitter_openapi_python_generated/models/user_relationship_counts.py +91 -0
- twitter_openapi_python_generated/models/user_relationship_perspectives.py +6 -2
- twitter_openapi_python_generated/models/user_response.py +1 -2
- twitter_openapi_python_generated/models/user_result_by_screen_name.py +2 -5
- twitter_openapi_python_generated/models/user_result_by_screen_name_result.py +8 -12
- twitter_openapi_python_generated/models/user_result_core.py +3 -1
- twitter_openapi_python_generated/models/user_results.py +3 -1
- twitter_openapi_python_generated/models/user_tweet_counts.py +91 -0
- twitter_openapi_python_generated/models/user_tweets_response.py +1 -2
- twitter_openapi_python_generated/models/user_union.py +6 -3
- twitter_openapi_python_generated/models/user_value.py +8 -9
- twitter_openapi_python_generated/models/user_verification_info_reason.py +2 -5
- twitter_openapi_python_generated/models/user_verification_info_reason_description.py +1 -2
- twitter_openapi_python_generated/models/user_website.py +89 -0
- twitter_openapi_python_generated/models/users_response.py +1 -2
- twitter_openapi_python_generated/models/users_response_data.py +1 -2
- twitter_openapi_python_generated/models/viewer_badge_counts_response.py +102 -0
- twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py +93 -0
- twitter_openapi_python_generated/models/viewer_badge_counts_result.py +96 -0
- twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py +93 -0
- twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py +93 -0
- twitter_openapi_python_generated/rest.py +79 -8
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/METADATA +980 -816
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/RECORD +296 -160
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/WHEEL +1 -1
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/licenses/LICENSE +31 -31
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/licenses/LICENSE.AGPL +660 -660
- {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.1.0.dist-info}/top_level.txt +0 -0
|
@@ -19,19 +19,29 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
21
|
from twitter_openapi_python_generated.models.create_bookmark_response import CreateBookmarkResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.create_draft_tweet_response import CreateDraftTweetResponse
|
|
22
23
|
from twitter_openapi_python_generated.models.create_retweet_response import CreateRetweetResponse
|
|
23
24
|
from twitter_openapi_python_generated.models.create_tweet_response import CreateTweetResponse
|
|
24
25
|
from twitter_openapi_python_generated.models.delete_bookmark_response import DeleteBookmarkResponse
|
|
26
|
+
from twitter_openapi_python_generated.models.delete_draft_tweets_response import DeleteDraftTweetsResponse
|
|
27
|
+
from twitter_openapi_python_generated.models.delete_list_response import DeleteListResponse
|
|
25
28
|
from twitter_openapi_python_generated.models.delete_retweet_response import DeleteRetweetResponse
|
|
26
29
|
from twitter_openapi_python_generated.models.delete_tweet_response import DeleteTweetResponse
|
|
27
30
|
from twitter_openapi_python_generated.models.favorite_tweet_response import FavoriteTweetResponse
|
|
31
|
+
from twitter_openapi_python_generated.models.list_response import ListResponse
|
|
28
32
|
from twitter_openapi_python_generated.models.post_create_bookmark_request import PostCreateBookmarkRequest
|
|
33
|
+
from twitter_openapi_python_generated.models.post_create_draft_tweet_request import PostCreateDraftTweetRequest
|
|
34
|
+
from twitter_openapi_python_generated.models.post_create_list_request import PostCreateListRequest
|
|
29
35
|
from twitter_openapi_python_generated.models.post_create_retweet_request import PostCreateRetweetRequest
|
|
30
36
|
from twitter_openapi_python_generated.models.post_create_tweet_request import PostCreateTweetRequest
|
|
31
37
|
from twitter_openapi_python_generated.models.post_delete_bookmark_request import PostDeleteBookmarkRequest
|
|
38
|
+
from twitter_openapi_python_generated.models.post_delete_draft_tweets_request import PostDeleteDraftTweetsRequest
|
|
39
|
+
from twitter_openapi_python_generated.models.post_delete_list_request import PostDeleteListRequest
|
|
32
40
|
from twitter_openapi_python_generated.models.post_delete_retweet_request import PostDeleteRetweetRequest
|
|
33
41
|
from twitter_openapi_python_generated.models.post_delete_tweet_request import PostDeleteTweetRequest
|
|
34
42
|
from twitter_openapi_python_generated.models.post_favorite_tweet_request import PostFavoriteTweetRequest
|
|
43
|
+
from twitter_openapi_python_generated.models.post_list_add_member_request import PostListAddMemberRequest
|
|
44
|
+
from twitter_openapi_python_generated.models.post_list_remove_member_request import PostListRemoveMemberRequest
|
|
35
45
|
from twitter_openapi_python_generated.models.post_unfavorite_tweet_request import PostUnfavoriteTweetRequest
|
|
36
46
|
from twitter_openapi_python_generated.models.unfavorite_tweet_response import UnfavoriteTweetResponse
|
|
37
47
|
|
|
@@ -364,11 +374,1708 @@ class PostApi:
|
|
|
364
374
|
|
|
365
375
|
|
|
366
376
|
|
|
377
|
+
@validate_call
|
|
378
|
+
def post_create_draft_tweet(
|
|
379
|
+
self,
|
|
380
|
+
path_query_id: StrictStr,
|
|
381
|
+
post_create_draft_tweet_request: Annotated[PostCreateDraftTweetRequest, Field(description="body")],
|
|
382
|
+
_request_timeout: Union[
|
|
383
|
+
None,
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Tuple[
|
|
386
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
388
|
+
]
|
|
389
|
+
] = None,
|
|
390
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_content_type: Optional[StrictStr] = None,
|
|
392
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
393
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
394
|
+
) -> CreateDraftTweetResponse:
|
|
395
|
+
"""post_create_draft_tweet
|
|
396
|
+
|
|
397
|
+
save a draft
|
|
398
|
+
|
|
399
|
+
:param path_query_id: (required)
|
|
400
|
+
:type path_query_id: str
|
|
401
|
+
:param post_create_draft_tweet_request: body (required)
|
|
402
|
+
:type post_create_draft_tweet_request: PostCreateDraftTweetRequest
|
|
403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
404
|
+
number provided, it will be total request
|
|
405
|
+
timeout. It can also be a pair (tuple) of
|
|
406
|
+
(connection, read) timeouts.
|
|
407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
409
|
+
request; this effectively ignores the
|
|
410
|
+
authentication in the spec for a single request.
|
|
411
|
+
:type _request_auth: dict, optional
|
|
412
|
+
:param _content_type: force content-type for the request.
|
|
413
|
+
:type _content_type: str, Optional
|
|
414
|
+
:param _headers: set to override the headers for a single
|
|
415
|
+
request; this effectively ignores the headers
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _headers: dict, optional
|
|
418
|
+
:param _host_index: set to override the host_index for a single
|
|
419
|
+
request; this effectively ignores the host_index
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _host_index: int, optional
|
|
422
|
+
:return: Returns the result object.
|
|
423
|
+
""" # noqa: E501
|
|
424
|
+
|
|
425
|
+
_param = self._post_create_draft_tweet_serialize(
|
|
426
|
+
path_query_id=path_query_id,
|
|
427
|
+
post_create_draft_tweet_request=post_create_draft_tweet_request,
|
|
428
|
+
_request_auth=_request_auth,
|
|
429
|
+
_content_type=_content_type,
|
|
430
|
+
_headers=_headers,
|
|
431
|
+
_host_index=_host_index
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
435
|
+
'200': "CreateDraftTweetResponse",
|
|
436
|
+
}
|
|
437
|
+
response_data = self.api_client.call_api(
|
|
438
|
+
*_param,
|
|
439
|
+
_request_timeout=_request_timeout
|
|
440
|
+
)
|
|
441
|
+
response_data.read()
|
|
442
|
+
return self.api_client.response_deserialize(
|
|
443
|
+
response_data=response_data,
|
|
444
|
+
response_types_map=_response_types_map,
|
|
445
|
+
).data
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
@validate_call
|
|
449
|
+
def post_create_draft_tweet_with_http_info(
|
|
450
|
+
self,
|
|
451
|
+
path_query_id: StrictStr,
|
|
452
|
+
post_create_draft_tweet_request: Annotated[PostCreateDraftTweetRequest, Field(description="body")],
|
|
453
|
+
_request_timeout: Union[
|
|
454
|
+
None,
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
456
|
+
Tuple[
|
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
458
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
459
|
+
]
|
|
460
|
+
] = None,
|
|
461
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
462
|
+
_content_type: Optional[StrictStr] = None,
|
|
463
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
464
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
465
|
+
) -> ApiResponse[CreateDraftTweetResponse]:
|
|
466
|
+
"""post_create_draft_tweet
|
|
467
|
+
|
|
468
|
+
save a draft
|
|
469
|
+
|
|
470
|
+
:param path_query_id: (required)
|
|
471
|
+
:type path_query_id: str
|
|
472
|
+
:param post_create_draft_tweet_request: body (required)
|
|
473
|
+
:type post_create_draft_tweet_request: PostCreateDraftTweetRequest
|
|
474
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
475
|
+
number provided, it will be total request
|
|
476
|
+
timeout. It can also be a pair (tuple) of
|
|
477
|
+
(connection, read) timeouts.
|
|
478
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
479
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
480
|
+
request; this effectively ignores the
|
|
481
|
+
authentication in the spec for a single request.
|
|
482
|
+
:type _request_auth: dict, optional
|
|
483
|
+
:param _content_type: force content-type for the request.
|
|
484
|
+
:type _content_type: str, Optional
|
|
485
|
+
:param _headers: set to override the headers for a single
|
|
486
|
+
request; this effectively ignores the headers
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _headers: dict, optional
|
|
489
|
+
:param _host_index: set to override the host_index for a single
|
|
490
|
+
request; this effectively ignores the host_index
|
|
491
|
+
in the spec for a single request.
|
|
492
|
+
:type _host_index: int, optional
|
|
493
|
+
:return: Returns the result object.
|
|
494
|
+
""" # noqa: E501
|
|
495
|
+
|
|
496
|
+
_param = self._post_create_draft_tweet_serialize(
|
|
497
|
+
path_query_id=path_query_id,
|
|
498
|
+
post_create_draft_tweet_request=post_create_draft_tweet_request,
|
|
499
|
+
_request_auth=_request_auth,
|
|
500
|
+
_content_type=_content_type,
|
|
501
|
+
_headers=_headers,
|
|
502
|
+
_host_index=_host_index
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
+
'200': "CreateDraftTweetResponse",
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
response_data.read()
|
|
513
|
+
return self.api_client.response_deserialize(
|
|
514
|
+
response_data=response_data,
|
|
515
|
+
response_types_map=_response_types_map,
|
|
516
|
+
)
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
@validate_call
|
|
520
|
+
def post_create_draft_tweet_without_preload_content(
|
|
521
|
+
self,
|
|
522
|
+
path_query_id: StrictStr,
|
|
523
|
+
post_create_draft_tweet_request: Annotated[PostCreateDraftTweetRequest, Field(description="body")],
|
|
524
|
+
_request_timeout: Union[
|
|
525
|
+
None,
|
|
526
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
527
|
+
Tuple[
|
|
528
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
529
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
530
|
+
]
|
|
531
|
+
] = None,
|
|
532
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
533
|
+
_content_type: Optional[StrictStr] = None,
|
|
534
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
535
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
536
|
+
) -> RESTResponseType:
|
|
537
|
+
"""post_create_draft_tweet
|
|
538
|
+
|
|
539
|
+
save a draft
|
|
540
|
+
|
|
541
|
+
:param path_query_id: (required)
|
|
542
|
+
:type path_query_id: str
|
|
543
|
+
:param post_create_draft_tweet_request: body (required)
|
|
544
|
+
:type post_create_draft_tweet_request: PostCreateDraftTweetRequest
|
|
545
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
546
|
+
number provided, it will be total request
|
|
547
|
+
timeout. It can also be a pair (tuple) of
|
|
548
|
+
(connection, read) timeouts.
|
|
549
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
550
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
551
|
+
request; this effectively ignores the
|
|
552
|
+
authentication in the spec for a single request.
|
|
553
|
+
:type _request_auth: dict, optional
|
|
554
|
+
:param _content_type: force content-type for the request.
|
|
555
|
+
:type _content_type: str, Optional
|
|
556
|
+
:param _headers: set to override the headers for a single
|
|
557
|
+
request; this effectively ignores the headers
|
|
558
|
+
in the spec for a single request.
|
|
559
|
+
:type _headers: dict, optional
|
|
560
|
+
:param _host_index: set to override the host_index for a single
|
|
561
|
+
request; this effectively ignores the host_index
|
|
562
|
+
in the spec for a single request.
|
|
563
|
+
:type _host_index: int, optional
|
|
564
|
+
:return: Returns the result object.
|
|
565
|
+
""" # noqa: E501
|
|
566
|
+
|
|
567
|
+
_param = self._post_create_draft_tweet_serialize(
|
|
568
|
+
path_query_id=path_query_id,
|
|
569
|
+
post_create_draft_tweet_request=post_create_draft_tweet_request,
|
|
570
|
+
_request_auth=_request_auth,
|
|
571
|
+
_content_type=_content_type,
|
|
572
|
+
_headers=_headers,
|
|
573
|
+
_host_index=_host_index
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
577
|
+
'200': "CreateDraftTweetResponse",
|
|
578
|
+
}
|
|
579
|
+
response_data = self.api_client.call_api(
|
|
580
|
+
*_param,
|
|
581
|
+
_request_timeout=_request_timeout
|
|
582
|
+
)
|
|
583
|
+
return response_data.response
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def _post_create_draft_tweet_serialize(
|
|
587
|
+
self,
|
|
588
|
+
path_query_id,
|
|
589
|
+
post_create_draft_tweet_request,
|
|
590
|
+
_request_auth,
|
|
591
|
+
_content_type,
|
|
592
|
+
_headers,
|
|
593
|
+
_host_index,
|
|
594
|
+
) -> RequestSerialized:
|
|
595
|
+
|
|
596
|
+
_host = None
|
|
597
|
+
|
|
598
|
+
_collection_formats: Dict[str, str] = {
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
_path_params: Dict[str, str] = {}
|
|
602
|
+
_query_params: List[Tuple[str, str]] = []
|
|
603
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
604
|
+
_form_params: List[Tuple[str, str]] = []
|
|
605
|
+
_files: Dict[
|
|
606
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
607
|
+
] = {}
|
|
608
|
+
_body_params: Optional[bytes] = None
|
|
609
|
+
|
|
610
|
+
# process the path parameters
|
|
611
|
+
if path_query_id is not None:
|
|
612
|
+
_path_params['pathQueryId'] = path_query_id
|
|
613
|
+
# process the query parameters
|
|
614
|
+
# process the header parameters
|
|
615
|
+
# process the form parameters
|
|
616
|
+
# process the body parameter
|
|
617
|
+
if post_create_draft_tweet_request is not None:
|
|
618
|
+
_body_params = post_create_draft_tweet_request
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
# set the HTTP header `Accept`
|
|
622
|
+
if 'Accept' not in _header_params:
|
|
623
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
624
|
+
[
|
|
625
|
+
'application/json'
|
|
626
|
+
]
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
# set the HTTP header `Content-Type`
|
|
630
|
+
if _content_type:
|
|
631
|
+
_header_params['Content-Type'] = _content_type
|
|
632
|
+
else:
|
|
633
|
+
_default_content_type = (
|
|
634
|
+
self.api_client.select_header_content_type(
|
|
635
|
+
[
|
|
636
|
+
'application/json'
|
|
637
|
+
]
|
|
638
|
+
)
|
|
639
|
+
)
|
|
640
|
+
if _default_content_type is not None:
|
|
641
|
+
_header_params['Content-Type'] = _default_content_type
|
|
642
|
+
|
|
643
|
+
# authentication setting
|
|
644
|
+
_auth_settings: List[str] = [
|
|
645
|
+
'Accept',
|
|
646
|
+
'ClientLanguage',
|
|
647
|
+
'Priority',
|
|
648
|
+
'Referer',
|
|
649
|
+
'SecFetchDest',
|
|
650
|
+
'SecChUaPlatform',
|
|
651
|
+
'SecFetchMode',
|
|
652
|
+
'CsrfToken',
|
|
653
|
+
'ClientUuid',
|
|
654
|
+
'BearerAuth',
|
|
655
|
+
'GuestToken',
|
|
656
|
+
'SecChUa',
|
|
657
|
+
'CookieGt0',
|
|
658
|
+
'ClientTransactionId',
|
|
659
|
+
'ActiveUser',
|
|
660
|
+
'CookieCt0',
|
|
661
|
+
'UserAgent',
|
|
662
|
+
'AcceptLanguage',
|
|
663
|
+
'SecFetchSite',
|
|
664
|
+
'AuthType',
|
|
665
|
+
'CookieAuthToken',
|
|
666
|
+
'SecChUaMobile',
|
|
667
|
+
'AcceptEncoding'
|
|
668
|
+
]
|
|
669
|
+
|
|
670
|
+
return self.api_client.param_serialize(
|
|
671
|
+
method='POST',
|
|
672
|
+
resource_path='/graphql/{pathQueryId}/CreateDraftTweet',
|
|
673
|
+
path_params=_path_params,
|
|
674
|
+
query_params=_query_params,
|
|
675
|
+
header_params=_header_params,
|
|
676
|
+
body=_body_params,
|
|
677
|
+
post_params=_form_params,
|
|
678
|
+
files=_files,
|
|
679
|
+
auth_settings=_auth_settings,
|
|
680
|
+
collection_formats=_collection_formats,
|
|
681
|
+
_host=_host,
|
|
682
|
+
_request_auth=_request_auth
|
|
683
|
+
)
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
@validate_call
|
|
689
|
+
def post_create_list(
|
|
690
|
+
self,
|
|
691
|
+
path_query_id: StrictStr,
|
|
692
|
+
post_create_list_request: Annotated[PostCreateListRequest, Field(description="body")],
|
|
693
|
+
_request_timeout: Union[
|
|
694
|
+
None,
|
|
695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
696
|
+
Tuple[
|
|
697
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
698
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
699
|
+
]
|
|
700
|
+
] = None,
|
|
701
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
702
|
+
_content_type: Optional[StrictStr] = None,
|
|
703
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
704
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
705
|
+
) -> ListResponse:
|
|
706
|
+
"""post_create_list
|
|
707
|
+
|
|
708
|
+
create list
|
|
709
|
+
|
|
710
|
+
:param path_query_id: (required)
|
|
711
|
+
:type path_query_id: str
|
|
712
|
+
:param post_create_list_request: body (required)
|
|
713
|
+
:type post_create_list_request: PostCreateListRequest
|
|
714
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
715
|
+
number provided, it will be total request
|
|
716
|
+
timeout. It can also be a pair (tuple) of
|
|
717
|
+
(connection, read) timeouts.
|
|
718
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
719
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
720
|
+
request; this effectively ignores the
|
|
721
|
+
authentication in the spec for a single request.
|
|
722
|
+
:type _request_auth: dict, optional
|
|
723
|
+
:param _content_type: force content-type for the request.
|
|
724
|
+
:type _content_type: str, Optional
|
|
725
|
+
:param _headers: set to override the headers for a single
|
|
726
|
+
request; this effectively ignores the headers
|
|
727
|
+
in the spec for a single request.
|
|
728
|
+
:type _headers: dict, optional
|
|
729
|
+
:param _host_index: set to override the host_index for a single
|
|
730
|
+
request; this effectively ignores the host_index
|
|
731
|
+
in the spec for a single request.
|
|
732
|
+
:type _host_index: int, optional
|
|
733
|
+
:return: Returns the result object.
|
|
734
|
+
""" # noqa: E501
|
|
735
|
+
|
|
736
|
+
_param = self._post_create_list_serialize(
|
|
737
|
+
path_query_id=path_query_id,
|
|
738
|
+
post_create_list_request=post_create_list_request,
|
|
739
|
+
_request_auth=_request_auth,
|
|
740
|
+
_content_type=_content_type,
|
|
741
|
+
_headers=_headers,
|
|
742
|
+
_host_index=_host_index
|
|
743
|
+
)
|
|
744
|
+
|
|
745
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
746
|
+
'200': "ListResponse",
|
|
747
|
+
}
|
|
748
|
+
response_data = self.api_client.call_api(
|
|
749
|
+
*_param,
|
|
750
|
+
_request_timeout=_request_timeout
|
|
751
|
+
)
|
|
752
|
+
response_data.read()
|
|
753
|
+
return self.api_client.response_deserialize(
|
|
754
|
+
response_data=response_data,
|
|
755
|
+
response_types_map=_response_types_map,
|
|
756
|
+
).data
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
@validate_call
|
|
760
|
+
def post_create_list_with_http_info(
|
|
761
|
+
self,
|
|
762
|
+
path_query_id: StrictStr,
|
|
763
|
+
post_create_list_request: Annotated[PostCreateListRequest, Field(description="body")],
|
|
764
|
+
_request_timeout: Union[
|
|
765
|
+
None,
|
|
766
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
767
|
+
Tuple[
|
|
768
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
769
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
770
|
+
]
|
|
771
|
+
] = None,
|
|
772
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
773
|
+
_content_type: Optional[StrictStr] = None,
|
|
774
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
775
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
776
|
+
) -> ApiResponse[ListResponse]:
|
|
777
|
+
"""post_create_list
|
|
778
|
+
|
|
779
|
+
create list
|
|
780
|
+
|
|
781
|
+
:param path_query_id: (required)
|
|
782
|
+
:type path_query_id: str
|
|
783
|
+
:param post_create_list_request: body (required)
|
|
784
|
+
:type post_create_list_request: PostCreateListRequest
|
|
785
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
786
|
+
number provided, it will be total request
|
|
787
|
+
timeout. It can also be a pair (tuple) of
|
|
788
|
+
(connection, read) timeouts.
|
|
789
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
790
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
791
|
+
request; this effectively ignores the
|
|
792
|
+
authentication in the spec for a single request.
|
|
793
|
+
:type _request_auth: dict, optional
|
|
794
|
+
:param _content_type: force content-type for the request.
|
|
795
|
+
:type _content_type: str, Optional
|
|
796
|
+
:param _headers: set to override the headers for a single
|
|
797
|
+
request; this effectively ignores the headers
|
|
798
|
+
in the spec for a single request.
|
|
799
|
+
:type _headers: dict, optional
|
|
800
|
+
:param _host_index: set to override the host_index for a single
|
|
801
|
+
request; this effectively ignores the host_index
|
|
802
|
+
in the spec for a single request.
|
|
803
|
+
:type _host_index: int, optional
|
|
804
|
+
:return: Returns the result object.
|
|
805
|
+
""" # noqa: E501
|
|
806
|
+
|
|
807
|
+
_param = self._post_create_list_serialize(
|
|
808
|
+
path_query_id=path_query_id,
|
|
809
|
+
post_create_list_request=post_create_list_request,
|
|
810
|
+
_request_auth=_request_auth,
|
|
811
|
+
_content_type=_content_type,
|
|
812
|
+
_headers=_headers,
|
|
813
|
+
_host_index=_host_index
|
|
814
|
+
)
|
|
815
|
+
|
|
816
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
817
|
+
'200': "ListResponse",
|
|
818
|
+
}
|
|
819
|
+
response_data = self.api_client.call_api(
|
|
820
|
+
*_param,
|
|
821
|
+
_request_timeout=_request_timeout
|
|
822
|
+
)
|
|
823
|
+
response_data.read()
|
|
824
|
+
return self.api_client.response_deserialize(
|
|
825
|
+
response_data=response_data,
|
|
826
|
+
response_types_map=_response_types_map,
|
|
827
|
+
)
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
@validate_call
|
|
831
|
+
def post_create_list_without_preload_content(
|
|
832
|
+
self,
|
|
833
|
+
path_query_id: StrictStr,
|
|
834
|
+
post_create_list_request: Annotated[PostCreateListRequest, Field(description="body")],
|
|
835
|
+
_request_timeout: Union[
|
|
836
|
+
None,
|
|
837
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
838
|
+
Tuple[
|
|
839
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
840
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
841
|
+
]
|
|
842
|
+
] = None,
|
|
843
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
844
|
+
_content_type: Optional[StrictStr] = None,
|
|
845
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
846
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
847
|
+
) -> RESTResponseType:
|
|
848
|
+
"""post_create_list
|
|
849
|
+
|
|
850
|
+
create list
|
|
851
|
+
|
|
852
|
+
:param path_query_id: (required)
|
|
853
|
+
:type path_query_id: str
|
|
854
|
+
:param post_create_list_request: body (required)
|
|
855
|
+
:type post_create_list_request: PostCreateListRequest
|
|
856
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
857
|
+
number provided, it will be total request
|
|
858
|
+
timeout. It can also be a pair (tuple) of
|
|
859
|
+
(connection, read) timeouts.
|
|
860
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
861
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
862
|
+
request; this effectively ignores the
|
|
863
|
+
authentication in the spec for a single request.
|
|
864
|
+
:type _request_auth: dict, optional
|
|
865
|
+
:param _content_type: force content-type for the request.
|
|
866
|
+
:type _content_type: str, Optional
|
|
867
|
+
:param _headers: set to override the headers for a single
|
|
868
|
+
request; this effectively ignores the headers
|
|
869
|
+
in the spec for a single request.
|
|
870
|
+
:type _headers: dict, optional
|
|
871
|
+
:param _host_index: set to override the host_index for a single
|
|
872
|
+
request; this effectively ignores the host_index
|
|
873
|
+
in the spec for a single request.
|
|
874
|
+
:type _host_index: int, optional
|
|
875
|
+
:return: Returns the result object.
|
|
876
|
+
""" # noqa: E501
|
|
877
|
+
|
|
878
|
+
_param = self._post_create_list_serialize(
|
|
879
|
+
path_query_id=path_query_id,
|
|
880
|
+
post_create_list_request=post_create_list_request,
|
|
881
|
+
_request_auth=_request_auth,
|
|
882
|
+
_content_type=_content_type,
|
|
883
|
+
_headers=_headers,
|
|
884
|
+
_host_index=_host_index
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
888
|
+
'200': "ListResponse",
|
|
889
|
+
}
|
|
890
|
+
response_data = self.api_client.call_api(
|
|
891
|
+
*_param,
|
|
892
|
+
_request_timeout=_request_timeout
|
|
893
|
+
)
|
|
894
|
+
return response_data.response
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
def _post_create_list_serialize(
|
|
898
|
+
self,
|
|
899
|
+
path_query_id,
|
|
900
|
+
post_create_list_request,
|
|
901
|
+
_request_auth,
|
|
902
|
+
_content_type,
|
|
903
|
+
_headers,
|
|
904
|
+
_host_index,
|
|
905
|
+
) -> RequestSerialized:
|
|
906
|
+
|
|
907
|
+
_host = None
|
|
908
|
+
|
|
909
|
+
_collection_formats: Dict[str, str] = {
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
_path_params: Dict[str, str] = {}
|
|
913
|
+
_query_params: List[Tuple[str, str]] = []
|
|
914
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
915
|
+
_form_params: List[Tuple[str, str]] = []
|
|
916
|
+
_files: Dict[
|
|
917
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
918
|
+
] = {}
|
|
919
|
+
_body_params: Optional[bytes] = None
|
|
920
|
+
|
|
921
|
+
# process the path parameters
|
|
922
|
+
if path_query_id is not None:
|
|
923
|
+
_path_params['pathQueryId'] = path_query_id
|
|
924
|
+
# process the query parameters
|
|
925
|
+
# process the header parameters
|
|
926
|
+
# process the form parameters
|
|
927
|
+
# process the body parameter
|
|
928
|
+
if post_create_list_request is not None:
|
|
929
|
+
_body_params = post_create_list_request
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
# set the HTTP header `Accept`
|
|
933
|
+
if 'Accept' not in _header_params:
|
|
934
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
935
|
+
[
|
|
936
|
+
'application/json'
|
|
937
|
+
]
|
|
938
|
+
)
|
|
939
|
+
|
|
940
|
+
# set the HTTP header `Content-Type`
|
|
941
|
+
if _content_type:
|
|
942
|
+
_header_params['Content-Type'] = _content_type
|
|
943
|
+
else:
|
|
944
|
+
_default_content_type = (
|
|
945
|
+
self.api_client.select_header_content_type(
|
|
946
|
+
[
|
|
947
|
+
'application/json'
|
|
948
|
+
]
|
|
949
|
+
)
|
|
950
|
+
)
|
|
951
|
+
if _default_content_type is not None:
|
|
952
|
+
_header_params['Content-Type'] = _default_content_type
|
|
953
|
+
|
|
954
|
+
# authentication setting
|
|
955
|
+
_auth_settings: List[str] = [
|
|
956
|
+
'Accept',
|
|
957
|
+
'ClientLanguage',
|
|
958
|
+
'Priority',
|
|
959
|
+
'Referer',
|
|
960
|
+
'SecFetchDest',
|
|
961
|
+
'SecChUaPlatform',
|
|
962
|
+
'SecFetchMode',
|
|
963
|
+
'CsrfToken',
|
|
964
|
+
'ClientUuid',
|
|
965
|
+
'BearerAuth',
|
|
966
|
+
'GuestToken',
|
|
967
|
+
'SecChUa',
|
|
968
|
+
'CookieGt0',
|
|
969
|
+
'ClientTransactionId',
|
|
970
|
+
'ActiveUser',
|
|
971
|
+
'CookieCt0',
|
|
972
|
+
'UserAgent',
|
|
973
|
+
'AcceptLanguage',
|
|
974
|
+
'SecFetchSite',
|
|
975
|
+
'AuthType',
|
|
976
|
+
'CookieAuthToken',
|
|
977
|
+
'SecChUaMobile',
|
|
978
|
+
'AcceptEncoding'
|
|
979
|
+
]
|
|
980
|
+
|
|
981
|
+
return self.api_client.param_serialize(
|
|
982
|
+
method='POST',
|
|
983
|
+
resource_path='/graphql/{pathQueryId}/CreateList',
|
|
984
|
+
path_params=_path_params,
|
|
985
|
+
query_params=_query_params,
|
|
986
|
+
header_params=_header_params,
|
|
987
|
+
body=_body_params,
|
|
988
|
+
post_params=_form_params,
|
|
989
|
+
files=_files,
|
|
990
|
+
auth_settings=_auth_settings,
|
|
991
|
+
collection_formats=_collection_formats,
|
|
992
|
+
_host=_host,
|
|
993
|
+
_request_auth=_request_auth
|
|
994
|
+
)
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
|
|
367
999
|
@validate_call
|
|
368
1000
|
def post_create_retweet(
|
|
369
1001
|
self,
|
|
370
1002
|
path_query_id: StrictStr,
|
|
371
|
-
post_create_retweet_request: Annotated[PostCreateRetweetRequest, Field(description="body")],
|
|
1003
|
+
post_create_retweet_request: Annotated[PostCreateRetweetRequest, Field(description="body")],
|
|
1004
|
+
_request_timeout: Union[
|
|
1005
|
+
None,
|
|
1006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1007
|
+
Tuple[
|
|
1008
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1009
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1010
|
+
]
|
|
1011
|
+
] = None,
|
|
1012
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1013
|
+
_content_type: Optional[StrictStr] = None,
|
|
1014
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1015
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1016
|
+
) -> CreateRetweetResponse:
|
|
1017
|
+
"""post_create_retweet
|
|
1018
|
+
|
|
1019
|
+
create Retweet
|
|
1020
|
+
|
|
1021
|
+
:param path_query_id: (required)
|
|
1022
|
+
:type path_query_id: str
|
|
1023
|
+
:param post_create_retweet_request: body (required)
|
|
1024
|
+
:type post_create_retweet_request: PostCreateRetweetRequest
|
|
1025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1026
|
+
number provided, it will be total request
|
|
1027
|
+
timeout. It can also be a pair (tuple) of
|
|
1028
|
+
(connection, read) timeouts.
|
|
1029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1031
|
+
request; this effectively ignores the
|
|
1032
|
+
authentication in the spec for a single request.
|
|
1033
|
+
:type _request_auth: dict, optional
|
|
1034
|
+
:param _content_type: force content-type for the request.
|
|
1035
|
+
:type _content_type: str, Optional
|
|
1036
|
+
:param _headers: set to override the headers for a single
|
|
1037
|
+
request; this effectively ignores the headers
|
|
1038
|
+
in the spec for a single request.
|
|
1039
|
+
:type _headers: dict, optional
|
|
1040
|
+
:param _host_index: set to override the host_index for a single
|
|
1041
|
+
request; this effectively ignores the host_index
|
|
1042
|
+
in the spec for a single request.
|
|
1043
|
+
:type _host_index: int, optional
|
|
1044
|
+
:return: Returns the result object.
|
|
1045
|
+
""" # noqa: E501
|
|
1046
|
+
|
|
1047
|
+
_param = self._post_create_retweet_serialize(
|
|
1048
|
+
path_query_id=path_query_id,
|
|
1049
|
+
post_create_retweet_request=post_create_retweet_request,
|
|
1050
|
+
_request_auth=_request_auth,
|
|
1051
|
+
_content_type=_content_type,
|
|
1052
|
+
_headers=_headers,
|
|
1053
|
+
_host_index=_host_index
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1057
|
+
'200': "CreateRetweetResponse",
|
|
1058
|
+
}
|
|
1059
|
+
response_data = self.api_client.call_api(
|
|
1060
|
+
*_param,
|
|
1061
|
+
_request_timeout=_request_timeout
|
|
1062
|
+
)
|
|
1063
|
+
response_data.read()
|
|
1064
|
+
return self.api_client.response_deserialize(
|
|
1065
|
+
response_data=response_data,
|
|
1066
|
+
response_types_map=_response_types_map,
|
|
1067
|
+
).data
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
@validate_call
|
|
1071
|
+
def post_create_retweet_with_http_info(
|
|
1072
|
+
self,
|
|
1073
|
+
path_query_id: StrictStr,
|
|
1074
|
+
post_create_retweet_request: Annotated[PostCreateRetweetRequest, Field(description="body")],
|
|
1075
|
+
_request_timeout: Union[
|
|
1076
|
+
None,
|
|
1077
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1078
|
+
Tuple[
|
|
1079
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1080
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1081
|
+
]
|
|
1082
|
+
] = None,
|
|
1083
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1084
|
+
_content_type: Optional[StrictStr] = None,
|
|
1085
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1086
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1087
|
+
) -> ApiResponse[CreateRetweetResponse]:
|
|
1088
|
+
"""post_create_retweet
|
|
1089
|
+
|
|
1090
|
+
create Retweet
|
|
1091
|
+
|
|
1092
|
+
:param path_query_id: (required)
|
|
1093
|
+
:type path_query_id: str
|
|
1094
|
+
:param post_create_retweet_request: body (required)
|
|
1095
|
+
:type post_create_retweet_request: PostCreateRetweetRequest
|
|
1096
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1097
|
+
number provided, it will be total request
|
|
1098
|
+
timeout. It can also be a pair (tuple) of
|
|
1099
|
+
(connection, read) timeouts.
|
|
1100
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1101
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1102
|
+
request; this effectively ignores the
|
|
1103
|
+
authentication in the spec for a single request.
|
|
1104
|
+
:type _request_auth: dict, optional
|
|
1105
|
+
:param _content_type: force content-type for the request.
|
|
1106
|
+
:type _content_type: str, Optional
|
|
1107
|
+
:param _headers: set to override the headers for a single
|
|
1108
|
+
request; this effectively ignores the headers
|
|
1109
|
+
in the spec for a single request.
|
|
1110
|
+
:type _headers: dict, optional
|
|
1111
|
+
:param _host_index: set to override the host_index for a single
|
|
1112
|
+
request; this effectively ignores the host_index
|
|
1113
|
+
in the spec for a single request.
|
|
1114
|
+
:type _host_index: int, optional
|
|
1115
|
+
:return: Returns the result object.
|
|
1116
|
+
""" # noqa: E501
|
|
1117
|
+
|
|
1118
|
+
_param = self._post_create_retweet_serialize(
|
|
1119
|
+
path_query_id=path_query_id,
|
|
1120
|
+
post_create_retweet_request=post_create_retweet_request,
|
|
1121
|
+
_request_auth=_request_auth,
|
|
1122
|
+
_content_type=_content_type,
|
|
1123
|
+
_headers=_headers,
|
|
1124
|
+
_host_index=_host_index
|
|
1125
|
+
)
|
|
1126
|
+
|
|
1127
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1128
|
+
'200': "CreateRetweetResponse",
|
|
1129
|
+
}
|
|
1130
|
+
response_data = self.api_client.call_api(
|
|
1131
|
+
*_param,
|
|
1132
|
+
_request_timeout=_request_timeout
|
|
1133
|
+
)
|
|
1134
|
+
response_data.read()
|
|
1135
|
+
return self.api_client.response_deserialize(
|
|
1136
|
+
response_data=response_data,
|
|
1137
|
+
response_types_map=_response_types_map,
|
|
1138
|
+
)
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
@validate_call
|
|
1142
|
+
def post_create_retweet_without_preload_content(
|
|
1143
|
+
self,
|
|
1144
|
+
path_query_id: StrictStr,
|
|
1145
|
+
post_create_retweet_request: Annotated[PostCreateRetweetRequest, Field(description="body")],
|
|
1146
|
+
_request_timeout: Union[
|
|
1147
|
+
None,
|
|
1148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1149
|
+
Tuple[
|
|
1150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1151
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1152
|
+
]
|
|
1153
|
+
] = None,
|
|
1154
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1155
|
+
_content_type: Optional[StrictStr] = None,
|
|
1156
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1157
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1158
|
+
) -> RESTResponseType:
|
|
1159
|
+
"""post_create_retweet
|
|
1160
|
+
|
|
1161
|
+
create Retweet
|
|
1162
|
+
|
|
1163
|
+
:param path_query_id: (required)
|
|
1164
|
+
:type path_query_id: str
|
|
1165
|
+
:param post_create_retweet_request: body (required)
|
|
1166
|
+
:type post_create_retweet_request: PostCreateRetweetRequest
|
|
1167
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1168
|
+
number provided, it will be total request
|
|
1169
|
+
timeout. It can also be a pair (tuple) of
|
|
1170
|
+
(connection, read) timeouts.
|
|
1171
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1172
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1173
|
+
request; this effectively ignores the
|
|
1174
|
+
authentication in the spec for a single request.
|
|
1175
|
+
:type _request_auth: dict, optional
|
|
1176
|
+
:param _content_type: force content-type for the request.
|
|
1177
|
+
:type _content_type: str, Optional
|
|
1178
|
+
:param _headers: set to override the headers for a single
|
|
1179
|
+
request; this effectively ignores the headers
|
|
1180
|
+
in the spec for a single request.
|
|
1181
|
+
:type _headers: dict, optional
|
|
1182
|
+
:param _host_index: set to override the host_index for a single
|
|
1183
|
+
request; this effectively ignores the host_index
|
|
1184
|
+
in the spec for a single request.
|
|
1185
|
+
:type _host_index: int, optional
|
|
1186
|
+
:return: Returns the result object.
|
|
1187
|
+
""" # noqa: E501
|
|
1188
|
+
|
|
1189
|
+
_param = self._post_create_retweet_serialize(
|
|
1190
|
+
path_query_id=path_query_id,
|
|
1191
|
+
post_create_retweet_request=post_create_retweet_request,
|
|
1192
|
+
_request_auth=_request_auth,
|
|
1193
|
+
_content_type=_content_type,
|
|
1194
|
+
_headers=_headers,
|
|
1195
|
+
_host_index=_host_index
|
|
1196
|
+
)
|
|
1197
|
+
|
|
1198
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1199
|
+
'200': "CreateRetweetResponse",
|
|
1200
|
+
}
|
|
1201
|
+
response_data = self.api_client.call_api(
|
|
1202
|
+
*_param,
|
|
1203
|
+
_request_timeout=_request_timeout
|
|
1204
|
+
)
|
|
1205
|
+
return response_data.response
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
def _post_create_retweet_serialize(
|
|
1209
|
+
self,
|
|
1210
|
+
path_query_id,
|
|
1211
|
+
post_create_retweet_request,
|
|
1212
|
+
_request_auth,
|
|
1213
|
+
_content_type,
|
|
1214
|
+
_headers,
|
|
1215
|
+
_host_index,
|
|
1216
|
+
) -> RequestSerialized:
|
|
1217
|
+
|
|
1218
|
+
_host = None
|
|
1219
|
+
|
|
1220
|
+
_collection_formats: Dict[str, str] = {
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
_path_params: Dict[str, str] = {}
|
|
1224
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1225
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1226
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1227
|
+
_files: Dict[
|
|
1228
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1229
|
+
] = {}
|
|
1230
|
+
_body_params: Optional[bytes] = None
|
|
1231
|
+
|
|
1232
|
+
# process the path parameters
|
|
1233
|
+
if path_query_id is not None:
|
|
1234
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1235
|
+
# process the query parameters
|
|
1236
|
+
# process the header parameters
|
|
1237
|
+
# process the form parameters
|
|
1238
|
+
# process the body parameter
|
|
1239
|
+
if post_create_retweet_request is not None:
|
|
1240
|
+
_body_params = post_create_retweet_request
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
# set the HTTP header `Accept`
|
|
1244
|
+
if 'Accept' not in _header_params:
|
|
1245
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1246
|
+
[
|
|
1247
|
+
'application/json'
|
|
1248
|
+
]
|
|
1249
|
+
)
|
|
1250
|
+
|
|
1251
|
+
# set the HTTP header `Content-Type`
|
|
1252
|
+
if _content_type:
|
|
1253
|
+
_header_params['Content-Type'] = _content_type
|
|
1254
|
+
else:
|
|
1255
|
+
_default_content_type = (
|
|
1256
|
+
self.api_client.select_header_content_type(
|
|
1257
|
+
[
|
|
1258
|
+
'application/json'
|
|
1259
|
+
]
|
|
1260
|
+
)
|
|
1261
|
+
)
|
|
1262
|
+
if _default_content_type is not None:
|
|
1263
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1264
|
+
|
|
1265
|
+
# authentication setting
|
|
1266
|
+
_auth_settings: List[str] = [
|
|
1267
|
+
'Accept',
|
|
1268
|
+
'ClientLanguage',
|
|
1269
|
+
'Priority',
|
|
1270
|
+
'Referer',
|
|
1271
|
+
'SecFetchDest',
|
|
1272
|
+
'SecChUaPlatform',
|
|
1273
|
+
'SecFetchMode',
|
|
1274
|
+
'CsrfToken',
|
|
1275
|
+
'ClientUuid',
|
|
1276
|
+
'BearerAuth',
|
|
1277
|
+
'GuestToken',
|
|
1278
|
+
'SecChUa',
|
|
1279
|
+
'CookieGt0',
|
|
1280
|
+
'ClientTransactionId',
|
|
1281
|
+
'ActiveUser',
|
|
1282
|
+
'CookieCt0',
|
|
1283
|
+
'UserAgent',
|
|
1284
|
+
'AcceptLanguage',
|
|
1285
|
+
'SecFetchSite',
|
|
1286
|
+
'AuthType',
|
|
1287
|
+
'CookieAuthToken',
|
|
1288
|
+
'SecChUaMobile',
|
|
1289
|
+
'AcceptEncoding'
|
|
1290
|
+
]
|
|
1291
|
+
|
|
1292
|
+
return self.api_client.param_serialize(
|
|
1293
|
+
method='POST',
|
|
1294
|
+
resource_path='/graphql/{pathQueryId}/CreateRetweet',
|
|
1295
|
+
path_params=_path_params,
|
|
1296
|
+
query_params=_query_params,
|
|
1297
|
+
header_params=_header_params,
|
|
1298
|
+
body=_body_params,
|
|
1299
|
+
post_params=_form_params,
|
|
1300
|
+
files=_files,
|
|
1301
|
+
auth_settings=_auth_settings,
|
|
1302
|
+
collection_formats=_collection_formats,
|
|
1303
|
+
_host=_host,
|
|
1304
|
+
_request_auth=_request_auth
|
|
1305
|
+
)
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
@validate_call
|
|
1311
|
+
def post_create_tweet(
|
|
1312
|
+
self,
|
|
1313
|
+
path_query_id: StrictStr,
|
|
1314
|
+
post_create_tweet_request: Annotated[PostCreateTweetRequest, Field(description="body")],
|
|
1315
|
+
_request_timeout: Union[
|
|
1316
|
+
None,
|
|
1317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1318
|
+
Tuple[
|
|
1319
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1320
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1321
|
+
]
|
|
1322
|
+
] = None,
|
|
1323
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1324
|
+
_content_type: Optional[StrictStr] = None,
|
|
1325
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1326
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1327
|
+
) -> CreateTweetResponse:
|
|
1328
|
+
"""post_create_tweet
|
|
1329
|
+
|
|
1330
|
+
create Tweet
|
|
1331
|
+
|
|
1332
|
+
:param path_query_id: (required)
|
|
1333
|
+
:type path_query_id: str
|
|
1334
|
+
:param post_create_tweet_request: body (required)
|
|
1335
|
+
:type post_create_tweet_request: PostCreateTweetRequest
|
|
1336
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1337
|
+
number provided, it will be total request
|
|
1338
|
+
timeout. It can also be a pair (tuple) of
|
|
1339
|
+
(connection, read) timeouts.
|
|
1340
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1341
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1342
|
+
request; this effectively ignores the
|
|
1343
|
+
authentication in the spec for a single request.
|
|
1344
|
+
:type _request_auth: dict, optional
|
|
1345
|
+
:param _content_type: force content-type for the request.
|
|
1346
|
+
:type _content_type: str, Optional
|
|
1347
|
+
:param _headers: set to override the headers for a single
|
|
1348
|
+
request; this effectively ignores the headers
|
|
1349
|
+
in the spec for a single request.
|
|
1350
|
+
:type _headers: dict, optional
|
|
1351
|
+
:param _host_index: set to override the host_index for a single
|
|
1352
|
+
request; this effectively ignores the host_index
|
|
1353
|
+
in the spec for a single request.
|
|
1354
|
+
:type _host_index: int, optional
|
|
1355
|
+
:return: Returns the result object.
|
|
1356
|
+
""" # noqa: E501
|
|
1357
|
+
|
|
1358
|
+
_param = self._post_create_tweet_serialize(
|
|
1359
|
+
path_query_id=path_query_id,
|
|
1360
|
+
post_create_tweet_request=post_create_tweet_request,
|
|
1361
|
+
_request_auth=_request_auth,
|
|
1362
|
+
_content_type=_content_type,
|
|
1363
|
+
_headers=_headers,
|
|
1364
|
+
_host_index=_host_index
|
|
1365
|
+
)
|
|
1366
|
+
|
|
1367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1368
|
+
'200': "CreateTweetResponse",
|
|
1369
|
+
}
|
|
1370
|
+
response_data = self.api_client.call_api(
|
|
1371
|
+
*_param,
|
|
1372
|
+
_request_timeout=_request_timeout
|
|
1373
|
+
)
|
|
1374
|
+
response_data.read()
|
|
1375
|
+
return self.api_client.response_deserialize(
|
|
1376
|
+
response_data=response_data,
|
|
1377
|
+
response_types_map=_response_types_map,
|
|
1378
|
+
).data
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
@validate_call
|
|
1382
|
+
def post_create_tweet_with_http_info(
|
|
1383
|
+
self,
|
|
1384
|
+
path_query_id: StrictStr,
|
|
1385
|
+
post_create_tweet_request: Annotated[PostCreateTweetRequest, Field(description="body")],
|
|
1386
|
+
_request_timeout: Union[
|
|
1387
|
+
None,
|
|
1388
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1389
|
+
Tuple[
|
|
1390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1391
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1392
|
+
]
|
|
1393
|
+
] = None,
|
|
1394
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1395
|
+
_content_type: Optional[StrictStr] = None,
|
|
1396
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1397
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1398
|
+
) -> ApiResponse[CreateTweetResponse]:
|
|
1399
|
+
"""post_create_tweet
|
|
1400
|
+
|
|
1401
|
+
create Tweet
|
|
1402
|
+
|
|
1403
|
+
:param path_query_id: (required)
|
|
1404
|
+
:type path_query_id: str
|
|
1405
|
+
:param post_create_tweet_request: body (required)
|
|
1406
|
+
:type post_create_tweet_request: PostCreateTweetRequest
|
|
1407
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1408
|
+
number provided, it will be total request
|
|
1409
|
+
timeout. It can also be a pair (tuple) of
|
|
1410
|
+
(connection, read) timeouts.
|
|
1411
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1412
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1413
|
+
request; this effectively ignores the
|
|
1414
|
+
authentication in the spec for a single request.
|
|
1415
|
+
:type _request_auth: dict, optional
|
|
1416
|
+
:param _content_type: force content-type for the request.
|
|
1417
|
+
:type _content_type: str, Optional
|
|
1418
|
+
:param _headers: set to override the headers for a single
|
|
1419
|
+
request; this effectively ignores the headers
|
|
1420
|
+
in the spec for a single request.
|
|
1421
|
+
:type _headers: dict, optional
|
|
1422
|
+
:param _host_index: set to override the host_index for a single
|
|
1423
|
+
request; this effectively ignores the host_index
|
|
1424
|
+
in the spec for a single request.
|
|
1425
|
+
:type _host_index: int, optional
|
|
1426
|
+
:return: Returns the result object.
|
|
1427
|
+
""" # noqa: E501
|
|
1428
|
+
|
|
1429
|
+
_param = self._post_create_tweet_serialize(
|
|
1430
|
+
path_query_id=path_query_id,
|
|
1431
|
+
post_create_tweet_request=post_create_tweet_request,
|
|
1432
|
+
_request_auth=_request_auth,
|
|
1433
|
+
_content_type=_content_type,
|
|
1434
|
+
_headers=_headers,
|
|
1435
|
+
_host_index=_host_index
|
|
1436
|
+
)
|
|
1437
|
+
|
|
1438
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1439
|
+
'200': "CreateTweetResponse",
|
|
1440
|
+
}
|
|
1441
|
+
response_data = self.api_client.call_api(
|
|
1442
|
+
*_param,
|
|
1443
|
+
_request_timeout=_request_timeout
|
|
1444
|
+
)
|
|
1445
|
+
response_data.read()
|
|
1446
|
+
return self.api_client.response_deserialize(
|
|
1447
|
+
response_data=response_data,
|
|
1448
|
+
response_types_map=_response_types_map,
|
|
1449
|
+
)
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
@validate_call
|
|
1453
|
+
def post_create_tweet_without_preload_content(
|
|
1454
|
+
self,
|
|
1455
|
+
path_query_id: StrictStr,
|
|
1456
|
+
post_create_tweet_request: Annotated[PostCreateTweetRequest, Field(description="body")],
|
|
1457
|
+
_request_timeout: Union[
|
|
1458
|
+
None,
|
|
1459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1460
|
+
Tuple[
|
|
1461
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1462
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1463
|
+
]
|
|
1464
|
+
] = None,
|
|
1465
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1466
|
+
_content_type: Optional[StrictStr] = None,
|
|
1467
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1468
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1469
|
+
) -> RESTResponseType:
|
|
1470
|
+
"""post_create_tweet
|
|
1471
|
+
|
|
1472
|
+
create Tweet
|
|
1473
|
+
|
|
1474
|
+
:param path_query_id: (required)
|
|
1475
|
+
:type path_query_id: str
|
|
1476
|
+
:param post_create_tweet_request: body (required)
|
|
1477
|
+
:type post_create_tweet_request: PostCreateTweetRequest
|
|
1478
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1479
|
+
number provided, it will be total request
|
|
1480
|
+
timeout. It can also be a pair (tuple) of
|
|
1481
|
+
(connection, read) timeouts.
|
|
1482
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1483
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1484
|
+
request; this effectively ignores the
|
|
1485
|
+
authentication in the spec for a single request.
|
|
1486
|
+
:type _request_auth: dict, optional
|
|
1487
|
+
:param _content_type: force content-type for the request.
|
|
1488
|
+
:type _content_type: str, Optional
|
|
1489
|
+
:param _headers: set to override the headers for a single
|
|
1490
|
+
request; this effectively ignores the headers
|
|
1491
|
+
in the spec for a single request.
|
|
1492
|
+
:type _headers: dict, optional
|
|
1493
|
+
:param _host_index: set to override the host_index for a single
|
|
1494
|
+
request; this effectively ignores the host_index
|
|
1495
|
+
in the spec for a single request.
|
|
1496
|
+
:type _host_index: int, optional
|
|
1497
|
+
:return: Returns the result object.
|
|
1498
|
+
""" # noqa: E501
|
|
1499
|
+
|
|
1500
|
+
_param = self._post_create_tweet_serialize(
|
|
1501
|
+
path_query_id=path_query_id,
|
|
1502
|
+
post_create_tweet_request=post_create_tweet_request,
|
|
1503
|
+
_request_auth=_request_auth,
|
|
1504
|
+
_content_type=_content_type,
|
|
1505
|
+
_headers=_headers,
|
|
1506
|
+
_host_index=_host_index
|
|
1507
|
+
)
|
|
1508
|
+
|
|
1509
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1510
|
+
'200': "CreateTweetResponse",
|
|
1511
|
+
}
|
|
1512
|
+
response_data = self.api_client.call_api(
|
|
1513
|
+
*_param,
|
|
1514
|
+
_request_timeout=_request_timeout
|
|
1515
|
+
)
|
|
1516
|
+
return response_data.response
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
def _post_create_tweet_serialize(
|
|
1520
|
+
self,
|
|
1521
|
+
path_query_id,
|
|
1522
|
+
post_create_tweet_request,
|
|
1523
|
+
_request_auth,
|
|
1524
|
+
_content_type,
|
|
1525
|
+
_headers,
|
|
1526
|
+
_host_index,
|
|
1527
|
+
) -> RequestSerialized:
|
|
1528
|
+
|
|
1529
|
+
_host = None
|
|
1530
|
+
|
|
1531
|
+
_collection_formats: Dict[str, str] = {
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
_path_params: Dict[str, str] = {}
|
|
1535
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1536
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1537
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1538
|
+
_files: Dict[
|
|
1539
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1540
|
+
] = {}
|
|
1541
|
+
_body_params: Optional[bytes] = None
|
|
1542
|
+
|
|
1543
|
+
# process the path parameters
|
|
1544
|
+
if path_query_id is not None:
|
|
1545
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1546
|
+
# process the query parameters
|
|
1547
|
+
# process the header parameters
|
|
1548
|
+
# process the form parameters
|
|
1549
|
+
# process the body parameter
|
|
1550
|
+
if post_create_tweet_request is not None:
|
|
1551
|
+
_body_params = post_create_tweet_request
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
# set the HTTP header `Accept`
|
|
1555
|
+
if 'Accept' not in _header_params:
|
|
1556
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1557
|
+
[
|
|
1558
|
+
'application/json'
|
|
1559
|
+
]
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
# set the HTTP header `Content-Type`
|
|
1563
|
+
if _content_type:
|
|
1564
|
+
_header_params['Content-Type'] = _content_type
|
|
1565
|
+
else:
|
|
1566
|
+
_default_content_type = (
|
|
1567
|
+
self.api_client.select_header_content_type(
|
|
1568
|
+
[
|
|
1569
|
+
'application/json'
|
|
1570
|
+
]
|
|
1571
|
+
)
|
|
1572
|
+
)
|
|
1573
|
+
if _default_content_type is not None:
|
|
1574
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1575
|
+
|
|
1576
|
+
# authentication setting
|
|
1577
|
+
_auth_settings: List[str] = [
|
|
1578
|
+
'Accept',
|
|
1579
|
+
'ClientLanguage',
|
|
1580
|
+
'Priority',
|
|
1581
|
+
'Referer',
|
|
1582
|
+
'SecFetchDest',
|
|
1583
|
+
'SecChUaPlatform',
|
|
1584
|
+
'SecFetchMode',
|
|
1585
|
+
'CsrfToken',
|
|
1586
|
+
'ClientUuid',
|
|
1587
|
+
'BearerAuth',
|
|
1588
|
+
'GuestToken',
|
|
1589
|
+
'SecChUa',
|
|
1590
|
+
'CookieGt0',
|
|
1591
|
+
'ClientTransactionId',
|
|
1592
|
+
'ActiveUser',
|
|
1593
|
+
'CookieCt0',
|
|
1594
|
+
'UserAgent',
|
|
1595
|
+
'AcceptLanguage',
|
|
1596
|
+
'SecFetchSite',
|
|
1597
|
+
'AuthType',
|
|
1598
|
+
'CookieAuthToken',
|
|
1599
|
+
'SecChUaMobile',
|
|
1600
|
+
'AcceptEncoding'
|
|
1601
|
+
]
|
|
1602
|
+
|
|
1603
|
+
return self.api_client.param_serialize(
|
|
1604
|
+
method='POST',
|
|
1605
|
+
resource_path='/graphql/{pathQueryId}/CreateTweet',
|
|
1606
|
+
path_params=_path_params,
|
|
1607
|
+
query_params=_query_params,
|
|
1608
|
+
header_params=_header_params,
|
|
1609
|
+
body=_body_params,
|
|
1610
|
+
post_params=_form_params,
|
|
1611
|
+
files=_files,
|
|
1612
|
+
auth_settings=_auth_settings,
|
|
1613
|
+
collection_formats=_collection_formats,
|
|
1614
|
+
_host=_host,
|
|
1615
|
+
_request_auth=_request_auth
|
|
1616
|
+
)
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
@validate_call
|
|
1622
|
+
def post_delete_bookmark(
|
|
1623
|
+
self,
|
|
1624
|
+
path_query_id: StrictStr,
|
|
1625
|
+
post_delete_bookmark_request: Annotated[PostDeleteBookmarkRequest, Field(description="body")],
|
|
1626
|
+
_request_timeout: Union[
|
|
1627
|
+
None,
|
|
1628
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1629
|
+
Tuple[
|
|
1630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1631
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1632
|
+
]
|
|
1633
|
+
] = None,
|
|
1634
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1635
|
+
_content_type: Optional[StrictStr] = None,
|
|
1636
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1637
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1638
|
+
) -> DeleteBookmarkResponse:
|
|
1639
|
+
"""post_delete_bookmark
|
|
1640
|
+
|
|
1641
|
+
delete Bookmark
|
|
1642
|
+
|
|
1643
|
+
:param path_query_id: (required)
|
|
1644
|
+
:type path_query_id: str
|
|
1645
|
+
:param post_delete_bookmark_request: body (required)
|
|
1646
|
+
:type post_delete_bookmark_request: PostDeleteBookmarkRequest
|
|
1647
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1648
|
+
number provided, it will be total request
|
|
1649
|
+
timeout. It can also be a pair (tuple) of
|
|
1650
|
+
(connection, read) timeouts.
|
|
1651
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1652
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1653
|
+
request; this effectively ignores the
|
|
1654
|
+
authentication in the spec for a single request.
|
|
1655
|
+
:type _request_auth: dict, optional
|
|
1656
|
+
:param _content_type: force content-type for the request.
|
|
1657
|
+
:type _content_type: str, Optional
|
|
1658
|
+
:param _headers: set to override the headers for a single
|
|
1659
|
+
request; this effectively ignores the headers
|
|
1660
|
+
in the spec for a single request.
|
|
1661
|
+
:type _headers: dict, optional
|
|
1662
|
+
:param _host_index: set to override the host_index for a single
|
|
1663
|
+
request; this effectively ignores the host_index
|
|
1664
|
+
in the spec for a single request.
|
|
1665
|
+
:type _host_index: int, optional
|
|
1666
|
+
:return: Returns the result object.
|
|
1667
|
+
""" # noqa: E501
|
|
1668
|
+
|
|
1669
|
+
_param = self._post_delete_bookmark_serialize(
|
|
1670
|
+
path_query_id=path_query_id,
|
|
1671
|
+
post_delete_bookmark_request=post_delete_bookmark_request,
|
|
1672
|
+
_request_auth=_request_auth,
|
|
1673
|
+
_content_type=_content_type,
|
|
1674
|
+
_headers=_headers,
|
|
1675
|
+
_host_index=_host_index
|
|
1676
|
+
)
|
|
1677
|
+
|
|
1678
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1679
|
+
'200': "DeleteBookmarkResponse",
|
|
1680
|
+
}
|
|
1681
|
+
response_data = self.api_client.call_api(
|
|
1682
|
+
*_param,
|
|
1683
|
+
_request_timeout=_request_timeout
|
|
1684
|
+
)
|
|
1685
|
+
response_data.read()
|
|
1686
|
+
return self.api_client.response_deserialize(
|
|
1687
|
+
response_data=response_data,
|
|
1688
|
+
response_types_map=_response_types_map,
|
|
1689
|
+
).data
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
@validate_call
|
|
1693
|
+
def post_delete_bookmark_with_http_info(
|
|
1694
|
+
self,
|
|
1695
|
+
path_query_id: StrictStr,
|
|
1696
|
+
post_delete_bookmark_request: Annotated[PostDeleteBookmarkRequest, Field(description="body")],
|
|
1697
|
+
_request_timeout: Union[
|
|
1698
|
+
None,
|
|
1699
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1700
|
+
Tuple[
|
|
1701
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1702
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1703
|
+
]
|
|
1704
|
+
] = None,
|
|
1705
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1706
|
+
_content_type: Optional[StrictStr] = None,
|
|
1707
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1708
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1709
|
+
) -> ApiResponse[DeleteBookmarkResponse]:
|
|
1710
|
+
"""post_delete_bookmark
|
|
1711
|
+
|
|
1712
|
+
delete Bookmark
|
|
1713
|
+
|
|
1714
|
+
:param path_query_id: (required)
|
|
1715
|
+
:type path_query_id: str
|
|
1716
|
+
:param post_delete_bookmark_request: body (required)
|
|
1717
|
+
:type post_delete_bookmark_request: PostDeleteBookmarkRequest
|
|
1718
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1719
|
+
number provided, it will be total request
|
|
1720
|
+
timeout. It can also be a pair (tuple) of
|
|
1721
|
+
(connection, read) timeouts.
|
|
1722
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1723
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1724
|
+
request; this effectively ignores the
|
|
1725
|
+
authentication in the spec for a single request.
|
|
1726
|
+
:type _request_auth: dict, optional
|
|
1727
|
+
:param _content_type: force content-type for the request.
|
|
1728
|
+
:type _content_type: str, Optional
|
|
1729
|
+
:param _headers: set to override the headers for a single
|
|
1730
|
+
request; this effectively ignores the headers
|
|
1731
|
+
in the spec for a single request.
|
|
1732
|
+
:type _headers: dict, optional
|
|
1733
|
+
:param _host_index: set to override the host_index for a single
|
|
1734
|
+
request; this effectively ignores the host_index
|
|
1735
|
+
in the spec for a single request.
|
|
1736
|
+
:type _host_index: int, optional
|
|
1737
|
+
:return: Returns the result object.
|
|
1738
|
+
""" # noqa: E501
|
|
1739
|
+
|
|
1740
|
+
_param = self._post_delete_bookmark_serialize(
|
|
1741
|
+
path_query_id=path_query_id,
|
|
1742
|
+
post_delete_bookmark_request=post_delete_bookmark_request,
|
|
1743
|
+
_request_auth=_request_auth,
|
|
1744
|
+
_content_type=_content_type,
|
|
1745
|
+
_headers=_headers,
|
|
1746
|
+
_host_index=_host_index
|
|
1747
|
+
)
|
|
1748
|
+
|
|
1749
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1750
|
+
'200': "DeleteBookmarkResponse",
|
|
1751
|
+
}
|
|
1752
|
+
response_data = self.api_client.call_api(
|
|
1753
|
+
*_param,
|
|
1754
|
+
_request_timeout=_request_timeout
|
|
1755
|
+
)
|
|
1756
|
+
response_data.read()
|
|
1757
|
+
return self.api_client.response_deserialize(
|
|
1758
|
+
response_data=response_data,
|
|
1759
|
+
response_types_map=_response_types_map,
|
|
1760
|
+
)
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
@validate_call
|
|
1764
|
+
def post_delete_bookmark_without_preload_content(
|
|
1765
|
+
self,
|
|
1766
|
+
path_query_id: StrictStr,
|
|
1767
|
+
post_delete_bookmark_request: Annotated[PostDeleteBookmarkRequest, Field(description="body")],
|
|
1768
|
+
_request_timeout: Union[
|
|
1769
|
+
None,
|
|
1770
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1771
|
+
Tuple[
|
|
1772
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1773
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1774
|
+
]
|
|
1775
|
+
] = None,
|
|
1776
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1777
|
+
_content_type: Optional[StrictStr] = None,
|
|
1778
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1779
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1780
|
+
) -> RESTResponseType:
|
|
1781
|
+
"""post_delete_bookmark
|
|
1782
|
+
|
|
1783
|
+
delete Bookmark
|
|
1784
|
+
|
|
1785
|
+
:param path_query_id: (required)
|
|
1786
|
+
:type path_query_id: str
|
|
1787
|
+
:param post_delete_bookmark_request: body (required)
|
|
1788
|
+
:type post_delete_bookmark_request: PostDeleteBookmarkRequest
|
|
1789
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1790
|
+
number provided, it will be total request
|
|
1791
|
+
timeout. It can also be a pair (tuple) of
|
|
1792
|
+
(connection, read) timeouts.
|
|
1793
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1794
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1795
|
+
request; this effectively ignores the
|
|
1796
|
+
authentication in the spec for a single request.
|
|
1797
|
+
:type _request_auth: dict, optional
|
|
1798
|
+
:param _content_type: force content-type for the request.
|
|
1799
|
+
:type _content_type: str, Optional
|
|
1800
|
+
:param _headers: set to override the headers for a single
|
|
1801
|
+
request; this effectively ignores the headers
|
|
1802
|
+
in the spec for a single request.
|
|
1803
|
+
:type _headers: dict, optional
|
|
1804
|
+
:param _host_index: set to override the host_index for a single
|
|
1805
|
+
request; this effectively ignores the host_index
|
|
1806
|
+
in the spec for a single request.
|
|
1807
|
+
:type _host_index: int, optional
|
|
1808
|
+
:return: Returns the result object.
|
|
1809
|
+
""" # noqa: E501
|
|
1810
|
+
|
|
1811
|
+
_param = self._post_delete_bookmark_serialize(
|
|
1812
|
+
path_query_id=path_query_id,
|
|
1813
|
+
post_delete_bookmark_request=post_delete_bookmark_request,
|
|
1814
|
+
_request_auth=_request_auth,
|
|
1815
|
+
_content_type=_content_type,
|
|
1816
|
+
_headers=_headers,
|
|
1817
|
+
_host_index=_host_index
|
|
1818
|
+
)
|
|
1819
|
+
|
|
1820
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1821
|
+
'200': "DeleteBookmarkResponse",
|
|
1822
|
+
}
|
|
1823
|
+
response_data = self.api_client.call_api(
|
|
1824
|
+
*_param,
|
|
1825
|
+
_request_timeout=_request_timeout
|
|
1826
|
+
)
|
|
1827
|
+
return response_data.response
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
def _post_delete_bookmark_serialize(
|
|
1831
|
+
self,
|
|
1832
|
+
path_query_id,
|
|
1833
|
+
post_delete_bookmark_request,
|
|
1834
|
+
_request_auth,
|
|
1835
|
+
_content_type,
|
|
1836
|
+
_headers,
|
|
1837
|
+
_host_index,
|
|
1838
|
+
) -> RequestSerialized:
|
|
1839
|
+
|
|
1840
|
+
_host = None
|
|
1841
|
+
|
|
1842
|
+
_collection_formats: Dict[str, str] = {
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
_path_params: Dict[str, str] = {}
|
|
1846
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1847
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1848
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1849
|
+
_files: Dict[
|
|
1850
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1851
|
+
] = {}
|
|
1852
|
+
_body_params: Optional[bytes] = None
|
|
1853
|
+
|
|
1854
|
+
# process the path parameters
|
|
1855
|
+
if path_query_id is not None:
|
|
1856
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1857
|
+
# process the query parameters
|
|
1858
|
+
# process the header parameters
|
|
1859
|
+
# process the form parameters
|
|
1860
|
+
# process the body parameter
|
|
1861
|
+
if post_delete_bookmark_request is not None:
|
|
1862
|
+
_body_params = post_delete_bookmark_request
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
# set the HTTP header `Accept`
|
|
1866
|
+
if 'Accept' not in _header_params:
|
|
1867
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1868
|
+
[
|
|
1869
|
+
'application/json'
|
|
1870
|
+
]
|
|
1871
|
+
)
|
|
1872
|
+
|
|
1873
|
+
# set the HTTP header `Content-Type`
|
|
1874
|
+
if _content_type:
|
|
1875
|
+
_header_params['Content-Type'] = _content_type
|
|
1876
|
+
else:
|
|
1877
|
+
_default_content_type = (
|
|
1878
|
+
self.api_client.select_header_content_type(
|
|
1879
|
+
[
|
|
1880
|
+
'application/json'
|
|
1881
|
+
]
|
|
1882
|
+
)
|
|
1883
|
+
)
|
|
1884
|
+
if _default_content_type is not None:
|
|
1885
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1886
|
+
|
|
1887
|
+
# authentication setting
|
|
1888
|
+
_auth_settings: List[str] = [
|
|
1889
|
+
'Accept',
|
|
1890
|
+
'ClientLanguage',
|
|
1891
|
+
'Priority',
|
|
1892
|
+
'Referer',
|
|
1893
|
+
'SecFetchDest',
|
|
1894
|
+
'SecChUaPlatform',
|
|
1895
|
+
'SecFetchMode',
|
|
1896
|
+
'CsrfToken',
|
|
1897
|
+
'ClientUuid',
|
|
1898
|
+
'BearerAuth',
|
|
1899
|
+
'GuestToken',
|
|
1900
|
+
'SecChUa',
|
|
1901
|
+
'CookieGt0',
|
|
1902
|
+
'ClientTransactionId',
|
|
1903
|
+
'ActiveUser',
|
|
1904
|
+
'CookieCt0',
|
|
1905
|
+
'UserAgent',
|
|
1906
|
+
'AcceptLanguage',
|
|
1907
|
+
'SecFetchSite',
|
|
1908
|
+
'AuthType',
|
|
1909
|
+
'CookieAuthToken',
|
|
1910
|
+
'SecChUaMobile',
|
|
1911
|
+
'AcceptEncoding'
|
|
1912
|
+
]
|
|
1913
|
+
|
|
1914
|
+
return self.api_client.param_serialize(
|
|
1915
|
+
method='POST',
|
|
1916
|
+
resource_path='/graphql/{pathQueryId}/DeleteBookmark',
|
|
1917
|
+
path_params=_path_params,
|
|
1918
|
+
query_params=_query_params,
|
|
1919
|
+
header_params=_header_params,
|
|
1920
|
+
body=_body_params,
|
|
1921
|
+
post_params=_form_params,
|
|
1922
|
+
files=_files,
|
|
1923
|
+
auth_settings=_auth_settings,
|
|
1924
|
+
collection_formats=_collection_formats,
|
|
1925
|
+
_host=_host,
|
|
1926
|
+
_request_auth=_request_auth
|
|
1927
|
+
)
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
@validate_call
|
|
1933
|
+
def post_delete_draft_tweets(
|
|
1934
|
+
self,
|
|
1935
|
+
path_query_id: StrictStr,
|
|
1936
|
+
post_delete_draft_tweets_request: Annotated[PostDeleteDraftTweetsRequest, Field(description="body")],
|
|
1937
|
+
_request_timeout: Union[
|
|
1938
|
+
None,
|
|
1939
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1940
|
+
Tuple[
|
|
1941
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1942
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1943
|
+
]
|
|
1944
|
+
] = None,
|
|
1945
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1946
|
+
_content_type: Optional[StrictStr] = None,
|
|
1947
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1948
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1949
|
+
) -> DeleteDraftTweetsResponse:
|
|
1950
|
+
"""post_delete_draft_tweets
|
|
1951
|
+
|
|
1952
|
+
delete drafts
|
|
1953
|
+
|
|
1954
|
+
:param path_query_id: (required)
|
|
1955
|
+
:type path_query_id: str
|
|
1956
|
+
:param post_delete_draft_tweets_request: body (required)
|
|
1957
|
+
:type post_delete_draft_tweets_request: PostDeleteDraftTweetsRequest
|
|
1958
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1959
|
+
number provided, it will be total request
|
|
1960
|
+
timeout. It can also be a pair (tuple) of
|
|
1961
|
+
(connection, read) timeouts.
|
|
1962
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1963
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1964
|
+
request; this effectively ignores the
|
|
1965
|
+
authentication in the spec for a single request.
|
|
1966
|
+
:type _request_auth: dict, optional
|
|
1967
|
+
:param _content_type: force content-type for the request.
|
|
1968
|
+
:type _content_type: str, Optional
|
|
1969
|
+
:param _headers: set to override the headers for a single
|
|
1970
|
+
request; this effectively ignores the headers
|
|
1971
|
+
in the spec for a single request.
|
|
1972
|
+
:type _headers: dict, optional
|
|
1973
|
+
:param _host_index: set to override the host_index for a single
|
|
1974
|
+
request; this effectively ignores the host_index
|
|
1975
|
+
in the spec for a single request.
|
|
1976
|
+
:type _host_index: int, optional
|
|
1977
|
+
:return: Returns the result object.
|
|
1978
|
+
""" # noqa: E501
|
|
1979
|
+
|
|
1980
|
+
_param = self._post_delete_draft_tweets_serialize(
|
|
1981
|
+
path_query_id=path_query_id,
|
|
1982
|
+
post_delete_draft_tweets_request=post_delete_draft_tweets_request,
|
|
1983
|
+
_request_auth=_request_auth,
|
|
1984
|
+
_content_type=_content_type,
|
|
1985
|
+
_headers=_headers,
|
|
1986
|
+
_host_index=_host_index
|
|
1987
|
+
)
|
|
1988
|
+
|
|
1989
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1990
|
+
'200': "DeleteDraftTweetsResponse",
|
|
1991
|
+
}
|
|
1992
|
+
response_data = self.api_client.call_api(
|
|
1993
|
+
*_param,
|
|
1994
|
+
_request_timeout=_request_timeout
|
|
1995
|
+
)
|
|
1996
|
+
response_data.read()
|
|
1997
|
+
return self.api_client.response_deserialize(
|
|
1998
|
+
response_data=response_data,
|
|
1999
|
+
response_types_map=_response_types_map,
|
|
2000
|
+
).data
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
@validate_call
|
|
2004
|
+
def post_delete_draft_tweets_with_http_info(
|
|
2005
|
+
self,
|
|
2006
|
+
path_query_id: StrictStr,
|
|
2007
|
+
post_delete_draft_tweets_request: Annotated[PostDeleteDraftTweetsRequest, Field(description="body")],
|
|
2008
|
+
_request_timeout: Union[
|
|
2009
|
+
None,
|
|
2010
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2011
|
+
Tuple[
|
|
2012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2013
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2014
|
+
]
|
|
2015
|
+
] = None,
|
|
2016
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2017
|
+
_content_type: Optional[StrictStr] = None,
|
|
2018
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2019
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2020
|
+
) -> ApiResponse[DeleteDraftTweetsResponse]:
|
|
2021
|
+
"""post_delete_draft_tweets
|
|
2022
|
+
|
|
2023
|
+
delete drafts
|
|
2024
|
+
|
|
2025
|
+
:param path_query_id: (required)
|
|
2026
|
+
:type path_query_id: str
|
|
2027
|
+
:param post_delete_draft_tweets_request: body (required)
|
|
2028
|
+
:type post_delete_draft_tweets_request: PostDeleteDraftTweetsRequest
|
|
2029
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2030
|
+
number provided, it will be total request
|
|
2031
|
+
timeout. It can also be a pair (tuple) of
|
|
2032
|
+
(connection, read) timeouts.
|
|
2033
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2034
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2035
|
+
request; this effectively ignores the
|
|
2036
|
+
authentication in the spec for a single request.
|
|
2037
|
+
:type _request_auth: dict, optional
|
|
2038
|
+
:param _content_type: force content-type for the request.
|
|
2039
|
+
:type _content_type: str, Optional
|
|
2040
|
+
:param _headers: set to override the headers for a single
|
|
2041
|
+
request; this effectively ignores the headers
|
|
2042
|
+
in the spec for a single request.
|
|
2043
|
+
:type _headers: dict, optional
|
|
2044
|
+
:param _host_index: set to override the host_index for a single
|
|
2045
|
+
request; this effectively ignores the host_index
|
|
2046
|
+
in the spec for a single request.
|
|
2047
|
+
:type _host_index: int, optional
|
|
2048
|
+
:return: Returns the result object.
|
|
2049
|
+
""" # noqa: E501
|
|
2050
|
+
|
|
2051
|
+
_param = self._post_delete_draft_tweets_serialize(
|
|
2052
|
+
path_query_id=path_query_id,
|
|
2053
|
+
post_delete_draft_tweets_request=post_delete_draft_tweets_request,
|
|
2054
|
+
_request_auth=_request_auth,
|
|
2055
|
+
_content_type=_content_type,
|
|
2056
|
+
_headers=_headers,
|
|
2057
|
+
_host_index=_host_index
|
|
2058
|
+
)
|
|
2059
|
+
|
|
2060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2061
|
+
'200': "DeleteDraftTweetsResponse",
|
|
2062
|
+
}
|
|
2063
|
+
response_data = self.api_client.call_api(
|
|
2064
|
+
*_param,
|
|
2065
|
+
_request_timeout=_request_timeout
|
|
2066
|
+
)
|
|
2067
|
+
response_data.read()
|
|
2068
|
+
return self.api_client.response_deserialize(
|
|
2069
|
+
response_data=response_data,
|
|
2070
|
+
response_types_map=_response_types_map,
|
|
2071
|
+
)
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
@validate_call
|
|
2075
|
+
def post_delete_draft_tweets_without_preload_content(
|
|
2076
|
+
self,
|
|
2077
|
+
path_query_id: StrictStr,
|
|
2078
|
+
post_delete_draft_tweets_request: Annotated[PostDeleteDraftTweetsRequest, Field(description="body")],
|
|
372
2079
|
_request_timeout: Union[
|
|
373
2080
|
None,
|
|
374
2081
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -381,15 +2088,15 @@ class PostApi:
|
|
|
381
2088
|
_content_type: Optional[StrictStr] = None,
|
|
382
2089
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
383
2090
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
384
|
-
) ->
|
|
385
|
-
"""
|
|
2091
|
+
) -> RESTResponseType:
|
|
2092
|
+
"""post_delete_draft_tweets
|
|
386
2093
|
|
|
387
|
-
|
|
2094
|
+
delete drafts
|
|
388
2095
|
|
|
389
2096
|
:param path_query_id: (required)
|
|
390
2097
|
:type path_query_id: str
|
|
391
|
-
:param
|
|
392
|
-
:type
|
|
2098
|
+
:param post_delete_draft_tweets_request: body (required)
|
|
2099
|
+
:type post_delete_draft_tweets_request: PostDeleteDraftTweetsRequest
|
|
393
2100
|
:param _request_timeout: timeout setting for this request. If one
|
|
394
2101
|
number provided, it will be total request
|
|
395
2102
|
timeout. It can also be a pair (tuple) of
|
|
@@ -412,9 +2119,9 @@ class PostApi:
|
|
|
412
2119
|
:return: Returns the result object.
|
|
413
2120
|
""" # noqa: E501
|
|
414
2121
|
|
|
415
|
-
_param = self.
|
|
2122
|
+
_param = self._post_delete_draft_tweets_serialize(
|
|
416
2123
|
path_query_id=path_query_id,
|
|
417
|
-
|
|
2124
|
+
post_delete_draft_tweets_request=post_delete_draft_tweets_request,
|
|
418
2125
|
_request_auth=_request_auth,
|
|
419
2126
|
_content_type=_content_type,
|
|
420
2127
|
_headers=_headers,
|
|
@@ -422,7 +2129,176 @@ class PostApi:
|
|
|
422
2129
|
)
|
|
423
2130
|
|
|
424
2131
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
425
|
-
'200': "
|
|
2132
|
+
'200': "DeleteDraftTweetsResponse",
|
|
2133
|
+
}
|
|
2134
|
+
response_data = self.api_client.call_api(
|
|
2135
|
+
*_param,
|
|
2136
|
+
_request_timeout=_request_timeout
|
|
2137
|
+
)
|
|
2138
|
+
return response_data.response
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
def _post_delete_draft_tweets_serialize(
|
|
2142
|
+
self,
|
|
2143
|
+
path_query_id,
|
|
2144
|
+
post_delete_draft_tweets_request,
|
|
2145
|
+
_request_auth,
|
|
2146
|
+
_content_type,
|
|
2147
|
+
_headers,
|
|
2148
|
+
_host_index,
|
|
2149
|
+
) -> RequestSerialized:
|
|
2150
|
+
|
|
2151
|
+
_host = None
|
|
2152
|
+
|
|
2153
|
+
_collection_formats: Dict[str, str] = {
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
_path_params: Dict[str, str] = {}
|
|
2157
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2158
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2159
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2160
|
+
_files: Dict[
|
|
2161
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2162
|
+
] = {}
|
|
2163
|
+
_body_params: Optional[bytes] = None
|
|
2164
|
+
|
|
2165
|
+
# process the path parameters
|
|
2166
|
+
if path_query_id is not None:
|
|
2167
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2168
|
+
# process the query parameters
|
|
2169
|
+
# process the header parameters
|
|
2170
|
+
# process the form parameters
|
|
2171
|
+
# process the body parameter
|
|
2172
|
+
if post_delete_draft_tweets_request is not None:
|
|
2173
|
+
_body_params = post_delete_draft_tweets_request
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
# set the HTTP header `Accept`
|
|
2177
|
+
if 'Accept' not in _header_params:
|
|
2178
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2179
|
+
[
|
|
2180
|
+
'application/json'
|
|
2181
|
+
]
|
|
2182
|
+
)
|
|
2183
|
+
|
|
2184
|
+
# set the HTTP header `Content-Type`
|
|
2185
|
+
if _content_type:
|
|
2186
|
+
_header_params['Content-Type'] = _content_type
|
|
2187
|
+
else:
|
|
2188
|
+
_default_content_type = (
|
|
2189
|
+
self.api_client.select_header_content_type(
|
|
2190
|
+
[
|
|
2191
|
+
'application/json'
|
|
2192
|
+
]
|
|
2193
|
+
)
|
|
2194
|
+
)
|
|
2195
|
+
if _default_content_type is not None:
|
|
2196
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2197
|
+
|
|
2198
|
+
# authentication setting
|
|
2199
|
+
_auth_settings: List[str] = [
|
|
2200
|
+
'Accept',
|
|
2201
|
+
'ClientLanguage',
|
|
2202
|
+
'Priority',
|
|
2203
|
+
'Referer',
|
|
2204
|
+
'SecFetchDest',
|
|
2205
|
+
'SecChUaPlatform',
|
|
2206
|
+
'SecFetchMode',
|
|
2207
|
+
'CsrfToken',
|
|
2208
|
+
'ClientUuid',
|
|
2209
|
+
'BearerAuth',
|
|
2210
|
+
'GuestToken',
|
|
2211
|
+
'SecChUa',
|
|
2212
|
+
'CookieGt0',
|
|
2213
|
+
'ClientTransactionId',
|
|
2214
|
+
'ActiveUser',
|
|
2215
|
+
'CookieCt0',
|
|
2216
|
+
'UserAgent',
|
|
2217
|
+
'AcceptLanguage',
|
|
2218
|
+
'SecFetchSite',
|
|
2219
|
+
'AuthType',
|
|
2220
|
+
'CookieAuthToken',
|
|
2221
|
+
'SecChUaMobile',
|
|
2222
|
+
'AcceptEncoding'
|
|
2223
|
+
]
|
|
2224
|
+
|
|
2225
|
+
return self.api_client.param_serialize(
|
|
2226
|
+
method='POST',
|
|
2227
|
+
resource_path='/graphql/{pathQueryId}/DeleteDraftTweets',
|
|
2228
|
+
path_params=_path_params,
|
|
2229
|
+
query_params=_query_params,
|
|
2230
|
+
header_params=_header_params,
|
|
2231
|
+
body=_body_params,
|
|
2232
|
+
post_params=_form_params,
|
|
2233
|
+
files=_files,
|
|
2234
|
+
auth_settings=_auth_settings,
|
|
2235
|
+
collection_formats=_collection_formats,
|
|
2236
|
+
_host=_host,
|
|
2237
|
+
_request_auth=_request_auth
|
|
2238
|
+
)
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
@validate_call
|
|
2244
|
+
def post_delete_list(
|
|
2245
|
+
self,
|
|
2246
|
+
path_query_id: StrictStr,
|
|
2247
|
+
post_delete_list_request: Annotated[PostDeleteListRequest, Field(description="body")],
|
|
2248
|
+
_request_timeout: Union[
|
|
2249
|
+
None,
|
|
2250
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2251
|
+
Tuple[
|
|
2252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2253
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2254
|
+
]
|
|
2255
|
+
] = None,
|
|
2256
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2257
|
+
_content_type: Optional[StrictStr] = None,
|
|
2258
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2259
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2260
|
+
) -> DeleteListResponse:
|
|
2261
|
+
"""post_delete_list
|
|
2262
|
+
|
|
2263
|
+
delete list
|
|
2264
|
+
|
|
2265
|
+
:param path_query_id: (required)
|
|
2266
|
+
:type path_query_id: str
|
|
2267
|
+
:param post_delete_list_request: body (required)
|
|
2268
|
+
:type post_delete_list_request: PostDeleteListRequest
|
|
2269
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2270
|
+
number provided, it will be total request
|
|
2271
|
+
timeout. It can also be a pair (tuple) of
|
|
2272
|
+
(connection, read) timeouts.
|
|
2273
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2274
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2275
|
+
request; this effectively ignores the
|
|
2276
|
+
authentication in the spec for a single request.
|
|
2277
|
+
:type _request_auth: dict, optional
|
|
2278
|
+
:param _content_type: force content-type for the request.
|
|
2279
|
+
:type _content_type: str, Optional
|
|
2280
|
+
:param _headers: set to override the headers for a single
|
|
2281
|
+
request; this effectively ignores the headers
|
|
2282
|
+
in the spec for a single request.
|
|
2283
|
+
:type _headers: dict, optional
|
|
2284
|
+
:param _host_index: set to override the host_index for a single
|
|
2285
|
+
request; this effectively ignores the host_index
|
|
2286
|
+
in the spec for a single request.
|
|
2287
|
+
:type _host_index: int, optional
|
|
2288
|
+
:return: Returns the result object.
|
|
2289
|
+
""" # noqa: E501
|
|
2290
|
+
|
|
2291
|
+
_param = self._post_delete_list_serialize(
|
|
2292
|
+
path_query_id=path_query_id,
|
|
2293
|
+
post_delete_list_request=post_delete_list_request,
|
|
2294
|
+
_request_auth=_request_auth,
|
|
2295
|
+
_content_type=_content_type,
|
|
2296
|
+
_headers=_headers,
|
|
2297
|
+
_host_index=_host_index
|
|
2298
|
+
)
|
|
2299
|
+
|
|
2300
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2301
|
+
'200': "DeleteListResponse",
|
|
426
2302
|
}
|
|
427
2303
|
response_data = self.api_client.call_api(
|
|
428
2304
|
*_param,
|
|
@@ -436,10 +2312,10 @@ class PostApi:
|
|
|
436
2312
|
|
|
437
2313
|
|
|
438
2314
|
@validate_call
|
|
439
|
-
def
|
|
2315
|
+
def post_delete_list_with_http_info(
|
|
440
2316
|
self,
|
|
441
2317
|
path_query_id: StrictStr,
|
|
442
|
-
|
|
2318
|
+
post_delete_list_request: Annotated[PostDeleteListRequest, Field(description="body")],
|
|
443
2319
|
_request_timeout: Union[
|
|
444
2320
|
None,
|
|
445
2321
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -452,15 +2328,15 @@ class PostApi:
|
|
|
452
2328
|
_content_type: Optional[StrictStr] = None,
|
|
453
2329
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
454
2330
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
455
|
-
) -> ApiResponse[
|
|
456
|
-
"""
|
|
2331
|
+
) -> ApiResponse[DeleteListResponse]:
|
|
2332
|
+
"""post_delete_list
|
|
457
2333
|
|
|
458
|
-
|
|
2334
|
+
delete list
|
|
459
2335
|
|
|
460
2336
|
:param path_query_id: (required)
|
|
461
2337
|
:type path_query_id: str
|
|
462
|
-
:param
|
|
463
|
-
:type
|
|
2338
|
+
:param post_delete_list_request: body (required)
|
|
2339
|
+
:type post_delete_list_request: PostDeleteListRequest
|
|
464
2340
|
:param _request_timeout: timeout setting for this request. If one
|
|
465
2341
|
number provided, it will be total request
|
|
466
2342
|
timeout. It can also be a pair (tuple) of
|
|
@@ -483,9 +2359,9 @@ class PostApi:
|
|
|
483
2359
|
:return: Returns the result object.
|
|
484
2360
|
""" # noqa: E501
|
|
485
2361
|
|
|
486
|
-
_param = self.
|
|
2362
|
+
_param = self._post_delete_list_serialize(
|
|
487
2363
|
path_query_id=path_query_id,
|
|
488
|
-
|
|
2364
|
+
post_delete_list_request=post_delete_list_request,
|
|
489
2365
|
_request_auth=_request_auth,
|
|
490
2366
|
_content_type=_content_type,
|
|
491
2367
|
_headers=_headers,
|
|
@@ -493,7 +2369,7 @@ class PostApi:
|
|
|
493
2369
|
)
|
|
494
2370
|
|
|
495
2371
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
-
'200': "
|
|
2372
|
+
'200': "DeleteListResponse",
|
|
497
2373
|
}
|
|
498
2374
|
response_data = self.api_client.call_api(
|
|
499
2375
|
*_param,
|
|
@@ -507,10 +2383,10 @@ class PostApi:
|
|
|
507
2383
|
|
|
508
2384
|
|
|
509
2385
|
@validate_call
|
|
510
|
-
def
|
|
2386
|
+
def post_delete_list_without_preload_content(
|
|
511
2387
|
self,
|
|
512
2388
|
path_query_id: StrictStr,
|
|
513
|
-
|
|
2389
|
+
post_delete_list_request: Annotated[PostDeleteListRequest, Field(description="body")],
|
|
514
2390
|
_request_timeout: Union[
|
|
515
2391
|
None,
|
|
516
2392
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -524,14 +2400,14 @@ class PostApi:
|
|
|
524
2400
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
525
2401
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
526
2402
|
) -> RESTResponseType:
|
|
527
|
-
"""
|
|
2403
|
+
"""post_delete_list
|
|
528
2404
|
|
|
529
|
-
|
|
2405
|
+
delete list
|
|
530
2406
|
|
|
531
2407
|
:param path_query_id: (required)
|
|
532
2408
|
:type path_query_id: str
|
|
533
|
-
:param
|
|
534
|
-
:type
|
|
2409
|
+
:param post_delete_list_request: body (required)
|
|
2410
|
+
:type post_delete_list_request: PostDeleteListRequest
|
|
535
2411
|
:param _request_timeout: timeout setting for this request. If one
|
|
536
2412
|
number provided, it will be total request
|
|
537
2413
|
timeout. It can also be a pair (tuple) of
|
|
@@ -554,9 +2430,9 @@ class PostApi:
|
|
|
554
2430
|
:return: Returns the result object.
|
|
555
2431
|
""" # noqa: E501
|
|
556
2432
|
|
|
557
|
-
_param = self.
|
|
2433
|
+
_param = self._post_delete_list_serialize(
|
|
558
2434
|
path_query_id=path_query_id,
|
|
559
|
-
|
|
2435
|
+
post_delete_list_request=post_delete_list_request,
|
|
560
2436
|
_request_auth=_request_auth,
|
|
561
2437
|
_content_type=_content_type,
|
|
562
2438
|
_headers=_headers,
|
|
@@ -564,7 +2440,7 @@ class PostApi:
|
|
|
564
2440
|
)
|
|
565
2441
|
|
|
566
2442
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
567
|
-
'200': "
|
|
2443
|
+
'200': "DeleteListResponse",
|
|
568
2444
|
}
|
|
569
2445
|
response_data = self.api_client.call_api(
|
|
570
2446
|
*_param,
|
|
@@ -573,10 +2449,10 @@ class PostApi:
|
|
|
573
2449
|
return response_data.response
|
|
574
2450
|
|
|
575
2451
|
|
|
576
|
-
def
|
|
2452
|
+
def _post_delete_list_serialize(
|
|
577
2453
|
self,
|
|
578
2454
|
path_query_id,
|
|
579
|
-
|
|
2455
|
+
post_delete_list_request,
|
|
580
2456
|
_request_auth,
|
|
581
2457
|
_content_type,
|
|
582
2458
|
_headers,
|
|
@@ -604,8 +2480,8 @@ class PostApi:
|
|
|
604
2480
|
# process the header parameters
|
|
605
2481
|
# process the form parameters
|
|
606
2482
|
# process the body parameter
|
|
607
|
-
if
|
|
608
|
-
_body_params =
|
|
2483
|
+
if post_delete_list_request is not None:
|
|
2484
|
+
_body_params = post_delete_list_request
|
|
609
2485
|
|
|
610
2486
|
|
|
611
2487
|
# set the HTTP header `Accept`
|
|
@@ -659,7 +2535,7 @@ class PostApi:
|
|
|
659
2535
|
|
|
660
2536
|
return self.api_client.param_serialize(
|
|
661
2537
|
method='POST',
|
|
662
|
-
resource_path='/graphql/{pathQueryId}/
|
|
2538
|
+
resource_path='/graphql/{pathQueryId}/DeleteList',
|
|
663
2539
|
path_params=_path_params,
|
|
664
2540
|
query_params=_query_params,
|
|
665
2541
|
header_params=_header_params,
|
|
@@ -676,10 +2552,10 @@ class PostApi:
|
|
|
676
2552
|
|
|
677
2553
|
|
|
678
2554
|
@validate_call
|
|
679
|
-
def
|
|
2555
|
+
def post_delete_retweet(
|
|
680
2556
|
self,
|
|
681
2557
|
path_query_id: StrictStr,
|
|
682
|
-
|
|
2558
|
+
post_delete_retweet_request: Annotated[PostDeleteRetweetRequest, Field(description="body")],
|
|
683
2559
|
_request_timeout: Union[
|
|
684
2560
|
None,
|
|
685
2561
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -692,15 +2568,15 @@ class PostApi:
|
|
|
692
2568
|
_content_type: Optional[StrictStr] = None,
|
|
693
2569
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
694
2570
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
695
|
-
) ->
|
|
696
|
-
"""
|
|
2571
|
+
) -> DeleteRetweetResponse:
|
|
2572
|
+
"""post_delete_retweet
|
|
697
2573
|
|
|
698
|
-
|
|
2574
|
+
delete Retweet
|
|
699
2575
|
|
|
700
2576
|
:param path_query_id: (required)
|
|
701
2577
|
:type path_query_id: str
|
|
702
|
-
:param
|
|
703
|
-
:type
|
|
2578
|
+
:param post_delete_retweet_request: body (required)
|
|
2579
|
+
:type post_delete_retweet_request: PostDeleteRetweetRequest
|
|
704
2580
|
:param _request_timeout: timeout setting for this request. If one
|
|
705
2581
|
number provided, it will be total request
|
|
706
2582
|
timeout. It can also be a pair (tuple) of
|
|
@@ -723,9 +2599,9 @@ class PostApi:
|
|
|
723
2599
|
:return: Returns the result object.
|
|
724
2600
|
""" # noqa: E501
|
|
725
2601
|
|
|
726
|
-
_param = self.
|
|
2602
|
+
_param = self._post_delete_retweet_serialize(
|
|
727
2603
|
path_query_id=path_query_id,
|
|
728
|
-
|
|
2604
|
+
post_delete_retweet_request=post_delete_retweet_request,
|
|
729
2605
|
_request_auth=_request_auth,
|
|
730
2606
|
_content_type=_content_type,
|
|
731
2607
|
_headers=_headers,
|
|
@@ -733,7 +2609,7 @@ class PostApi:
|
|
|
733
2609
|
)
|
|
734
2610
|
|
|
735
2611
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
736
|
-
'200': "
|
|
2612
|
+
'200': "DeleteRetweetResponse",
|
|
737
2613
|
}
|
|
738
2614
|
response_data = self.api_client.call_api(
|
|
739
2615
|
*_param,
|
|
@@ -747,10 +2623,10 @@ class PostApi:
|
|
|
747
2623
|
|
|
748
2624
|
|
|
749
2625
|
@validate_call
|
|
750
|
-
def
|
|
2626
|
+
def post_delete_retweet_with_http_info(
|
|
751
2627
|
self,
|
|
752
2628
|
path_query_id: StrictStr,
|
|
753
|
-
|
|
2629
|
+
post_delete_retweet_request: Annotated[PostDeleteRetweetRequest, Field(description="body")],
|
|
754
2630
|
_request_timeout: Union[
|
|
755
2631
|
None,
|
|
756
2632
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -763,15 +2639,15 @@ class PostApi:
|
|
|
763
2639
|
_content_type: Optional[StrictStr] = None,
|
|
764
2640
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
765
2641
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
766
|
-
) -> ApiResponse[
|
|
767
|
-
"""
|
|
2642
|
+
) -> ApiResponse[DeleteRetweetResponse]:
|
|
2643
|
+
"""post_delete_retweet
|
|
768
2644
|
|
|
769
|
-
|
|
2645
|
+
delete Retweet
|
|
770
2646
|
|
|
771
2647
|
:param path_query_id: (required)
|
|
772
2648
|
:type path_query_id: str
|
|
773
|
-
:param
|
|
774
|
-
:type
|
|
2649
|
+
:param post_delete_retweet_request: body (required)
|
|
2650
|
+
:type post_delete_retweet_request: PostDeleteRetweetRequest
|
|
775
2651
|
:param _request_timeout: timeout setting for this request. If one
|
|
776
2652
|
number provided, it will be total request
|
|
777
2653
|
timeout. It can also be a pair (tuple) of
|
|
@@ -794,9 +2670,9 @@ class PostApi:
|
|
|
794
2670
|
:return: Returns the result object.
|
|
795
2671
|
""" # noqa: E501
|
|
796
2672
|
|
|
797
|
-
_param = self.
|
|
2673
|
+
_param = self._post_delete_retweet_serialize(
|
|
798
2674
|
path_query_id=path_query_id,
|
|
799
|
-
|
|
2675
|
+
post_delete_retweet_request=post_delete_retweet_request,
|
|
800
2676
|
_request_auth=_request_auth,
|
|
801
2677
|
_content_type=_content_type,
|
|
802
2678
|
_headers=_headers,
|
|
@@ -804,7 +2680,7 @@ class PostApi:
|
|
|
804
2680
|
)
|
|
805
2681
|
|
|
806
2682
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
807
|
-
'200': "
|
|
2683
|
+
'200': "DeleteRetweetResponse",
|
|
808
2684
|
}
|
|
809
2685
|
response_data = self.api_client.call_api(
|
|
810
2686
|
*_param,
|
|
@@ -818,10 +2694,10 @@ class PostApi:
|
|
|
818
2694
|
|
|
819
2695
|
|
|
820
2696
|
@validate_call
|
|
821
|
-
def
|
|
2697
|
+
def post_delete_retweet_without_preload_content(
|
|
822
2698
|
self,
|
|
823
2699
|
path_query_id: StrictStr,
|
|
824
|
-
|
|
2700
|
+
post_delete_retweet_request: Annotated[PostDeleteRetweetRequest, Field(description="body")],
|
|
825
2701
|
_request_timeout: Union[
|
|
826
2702
|
None,
|
|
827
2703
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -835,14 +2711,14 @@ class PostApi:
|
|
|
835
2711
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
836
2712
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
837
2713
|
) -> RESTResponseType:
|
|
838
|
-
"""
|
|
2714
|
+
"""post_delete_retweet
|
|
839
2715
|
|
|
840
|
-
|
|
2716
|
+
delete Retweet
|
|
841
2717
|
|
|
842
2718
|
:param path_query_id: (required)
|
|
843
2719
|
:type path_query_id: str
|
|
844
|
-
:param
|
|
845
|
-
:type
|
|
2720
|
+
:param post_delete_retweet_request: body (required)
|
|
2721
|
+
:type post_delete_retweet_request: PostDeleteRetweetRequest
|
|
846
2722
|
:param _request_timeout: timeout setting for this request. If one
|
|
847
2723
|
number provided, it will be total request
|
|
848
2724
|
timeout. It can also be a pair (tuple) of
|
|
@@ -865,9 +2741,9 @@ class PostApi:
|
|
|
865
2741
|
:return: Returns the result object.
|
|
866
2742
|
""" # noqa: E501
|
|
867
2743
|
|
|
868
|
-
_param = self.
|
|
2744
|
+
_param = self._post_delete_retweet_serialize(
|
|
869
2745
|
path_query_id=path_query_id,
|
|
870
|
-
|
|
2746
|
+
post_delete_retweet_request=post_delete_retweet_request,
|
|
871
2747
|
_request_auth=_request_auth,
|
|
872
2748
|
_content_type=_content_type,
|
|
873
2749
|
_headers=_headers,
|
|
@@ -875,7 +2751,7 @@ class PostApi:
|
|
|
875
2751
|
)
|
|
876
2752
|
|
|
877
2753
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
878
|
-
'200': "
|
|
2754
|
+
'200': "DeleteRetweetResponse",
|
|
879
2755
|
}
|
|
880
2756
|
response_data = self.api_client.call_api(
|
|
881
2757
|
*_param,
|
|
@@ -884,10 +2760,10 @@ class PostApi:
|
|
|
884
2760
|
return response_data.response
|
|
885
2761
|
|
|
886
2762
|
|
|
887
|
-
def
|
|
2763
|
+
def _post_delete_retweet_serialize(
|
|
888
2764
|
self,
|
|
889
2765
|
path_query_id,
|
|
890
|
-
|
|
2766
|
+
post_delete_retweet_request,
|
|
891
2767
|
_request_auth,
|
|
892
2768
|
_content_type,
|
|
893
2769
|
_headers,
|
|
@@ -915,8 +2791,8 @@ class PostApi:
|
|
|
915
2791
|
# process the header parameters
|
|
916
2792
|
# process the form parameters
|
|
917
2793
|
# process the body parameter
|
|
918
|
-
if
|
|
919
|
-
_body_params =
|
|
2794
|
+
if post_delete_retweet_request is not None:
|
|
2795
|
+
_body_params = post_delete_retweet_request
|
|
920
2796
|
|
|
921
2797
|
|
|
922
2798
|
# set the HTTP header `Accept`
|
|
@@ -970,7 +2846,7 @@ class PostApi:
|
|
|
970
2846
|
|
|
971
2847
|
return self.api_client.param_serialize(
|
|
972
2848
|
method='POST',
|
|
973
|
-
resource_path='/graphql/{pathQueryId}/
|
|
2849
|
+
resource_path='/graphql/{pathQueryId}/DeleteRetweet',
|
|
974
2850
|
path_params=_path_params,
|
|
975
2851
|
query_params=_query_params,
|
|
976
2852
|
header_params=_header_params,
|
|
@@ -987,10 +2863,10 @@ class PostApi:
|
|
|
987
2863
|
|
|
988
2864
|
|
|
989
2865
|
@validate_call
|
|
990
|
-
def
|
|
2866
|
+
def post_delete_tweet(
|
|
991
2867
|
self,
|
|
992
2868
|
path_query_id: StrictStr,
|
|
993
|
-
|
|
2869
|
+
post_delete_tweet_request: Annotated[PostDeleteTweetRequest, Field(description="body")],
|
|
994
2870
|
_request_timeout: Union[
|
|
995
2871
|
None,
|
|
996
2872
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1003,15 +2879,15 @@ class PostApi:
|
|
|
1003
2879
|
_content_type: Optional[StrictStr] = None,
|
|
1004
2880
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1005
2881
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1006
|
-
) ->
|
|
1007
|
-
"""
|
|
2882
|
+
) -> DeleteTweetResponse:
|
|
2883
|
+
"""post_delete_tweet
|
|
1008
2884
|
|
|
1009
|
-
delete
|
|
2885
|
+
delete Retweet
|
|
1010
2886
|
|
|
1011
2887
|
:param path_query_id: (required)
|
|
1012
2888
|
:type path_query_id: str
|
|
1013
|
-
:param
|
|
1014
|
-
:type
|
|
2889
|
+
:param post_delete_tweet_request: body (required)
|
|
2890
|
+
:type post_delete_tweet_request: PostDeleteTweetRequest
|
|
1015
2891
|
:param _request_timeout: timeout setting for this request. If one
|
|
1016
2892
|
number provided, it will be total request
|
|
1017
2893
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1034,9 +2910,9 @@ class PostApi:
|
|
|
1034
2910
|
:return: Returns the result object.
|
|
1035
2911
|
""" # noqa: E501
|
|
1036
2912
|
|
|
1037
|
-
_param = self.
|
|
2913
|
+
_param = self._post_delete_tweet_serialize(
|
|
1038
2914
|
path_query_id=path_query_id,
|
|
1039
|
-
|
|
2915
|
+
post_delete_tweet_request=post_delete_tweet_request,
|
|
1040
2916
|
_request_auth=_request_auth,
|
|
1041
2917
|
_content_type=_content_type,
|
|
1042
2918
|
_headers=_headers,
|
|
@@ -1044,7 +2920,7 @@ class PostApi:
|
|
|
1044
2920
|
)
|
|
1045
2921
|
|
|
1046
2922
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1047
|
-
'200': "
|
|
2923
|
+
'200': "DeleteTweetResponse",
|
|
1048
2924
|
}
|
|
1049
2925
|
response_data = self.api_client.call_api(
|
|
1050
2926
|
*_param,
|
|
@@ -1058,10 +2934,10 @@ class PostApi:
|
|
|
1058
2934
|
|
|
1059
2935
|
|
|
1060
2936
|
@validate_call
|
|
1061
|
-
def
|
|
2937
|
+
def post_delete_tweet_with_http_info(
|
|
1062
2938
|
self,
|
|
1063
2939
|
path_query_id: StrictStr,
|
|
1064
|
-
|
|
2940
|
+
post_delete_tweet_request: Annotated[PostDeleteTweetRequest, Field(description="body")],
|
|
1065
2941
|
_request_timeout: Union[
|
|
1066
2942
|
None,
|
|
1067
2943
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1074,15 +2950,15 @@ class PostApi:
|
|
|
1074
2950
|
_content_type: Optional[StrictStr] = None,
|
|
1075
2951
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1076
2952
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1077
|
-
) -> ApiResponse[
|
|
1078
|
-
"""
|
|
2953
|
+
) -> ApiResponse[DeleteTweetResponse]:
|
|
2954
|
+
"""post_delete_tweet
|
|
1079
2955
|
|
|
1080
|
-
delete
|
|
2956
|
+
delete Retweet
|
|
1081
2957
|
|
|
1082
2958
|
:param path_query_id: (required)
|
|
1083
2959
|
:type path_query_id: str
|
|
1084
|
-
:param
|
|
1085
|
-
:type
|
|
2960
|
+
:param post_delete_tweet_request: body (required)
|
|
2961
|
+
:type post_delete_tweet_request: PostDeleteTweetRequest
|
|
1086
2962
|
:param _request_timeout: timeout setting for this request. If one
|
|
1087
2963
|
number provided, it will be total request
|
|
1088
2964
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1105,9 +2981,9 @@ class PostApi:
|
|
|
1105
2981
|
:return: Returns the result object.
|
|
1106
2982
|
""" # noqa: E501
|
|
1107
2983
|
|
|
1108
|
-
_param = self.
|
|
2984
|
+
_param = self._post_delete_tweet_serialize(
|
|
1109
2985
|
path_query_id=path_query_id,
|
|
1110
|
-
|
|
2986
|
+
post_delete_tweet_request=post_delete_tweet_request,
|
|
1111
2987
|
_request_auth=_request_auth,
|
|
1112
2988
|
_content_type=_content_type,
|
|
1113
2989
|
_headers=_headers,
|
|
@@ -1115,7 +2991,7 @@ class PostApi:
|
|
|
1115
2991
|
)
|
|
1116
2992
|
|
|
1117
2993
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1118
|
-
'200': "
|
|
2994
|
+
'200': "DeleteTweetResponse",
|
|
1119
2995
|
}
|
|
1120
2996
|
response_data = self.api_client.call_api(
|
|
1121
2997
|
*_param,
|
|
@@ -1129,10 +3005,10 @@ class PostApi:
|
|
|
1129
3005
|
|
|
1130
3006
|
|
|
1131
3007
|
@validate_call
|
|
1132
|
-
def
|
|
3008
|
+
def post_delete_tweet_without_preload_content(
|
|
1133
3009
|
self,
|
|
1134
3010
|
path_query_id: StrictStr,
|
|
1135
|
-
|
|
3011
|
+
post_delete_tweet_request: Annotated[PostDeleteTweetRequest, Field(description="body")],
|
|
1136
3012
|
_request_timeout: Union[
|
|
1137
3013
|
None,
|
|
1138
3014
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1146,14 +3022,14 @@ class PostApi:
|
|
|
1146
3022
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1147
3023
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1148
3024
|
) -> RESTResponseType:
|
|
1149
|
-
"""
|
|
3025
|
+
"""post_delete_tweet
|
|
1150
3026
|
|
|
1151
|
-
delete
|
|
3027
|
+
delete Retweet
|
|
1152
3028
|
|
|
1153
3029
|
:param path_query_id: (required)
|
|
1154
3030
|
:type path_query_id: str
|
|
1155
|
-
:param
|
|
1156
|
-
:type
|
|
3031
|
+
:param post_delete_tweet_request: body (required)
|
|
3032
|
+
:type post_delete_tweet_request: PostDeleteTweetRequest
|
|
1157
3033
|
:param _request_timeout: timeout setting for this request. If one
|
|
1158
3034
|
number provided, it will be total request
|
|
1159
3035
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1176,9 +3052,9 @@ class PostApi:
|
|
|
1176
3052
|
:return: Returns the result object.
|
|
1177
3053
|
""" # noqa: E501
|
|
1178
3054
|
|
|
1179
|
-
_param = self.
|
|
3055
|
+
_param = self._post_delete_tweet_serialize(
|
|
1180
3056
|
path_query_id=path_query_id,
|
|
1181
|
-
|
|
3057
|
+
post_delete_tweet_request=post_delete_tweet_request,
|
|
1182
3058
|
_request_auth=_request_auth,
|
|
1183
3059
|
_content_type=_content_type,
|
|
1184
3060
|
_headers=_headers,
|
|
@@ -1186,7 +3062,7 @@ class PostApi:
|
|
|
1186
3062
|
)
|
|
1187
3063
|
|
|
1188
3064
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1189
|
-
'200': "
|
|
3065
|
+
'200': "DeleteTweetResponse",
|
|
1190
3066
|
}
|
|
1191
3067
|
response_data = self.api_client.call_api(
|
|
1192
3068
|
*_param,
|
|
@@ -1195,10 +3071,10 @@ class PostApi:
|
|
|
1195
3071
|
return response_data.response
|
|
1196
3072
|
|
|
1197
3073
|
|
|
1198
|
-
def
|
|
3074
|
+
def _post_delete_tweet_serialize(
|
|
1199
3075
|
self,
|
|
1200
3076
|
path_query_id,
|
|
1201
|
-
|
|
3077
|
+
post_delete_tweet_request,
|
|
1202
3078
|
_request_auth,
|
|
1203
3079
|
_content_type,
|
|
1204
3080
|
_headers,
|
|
@@ -1226,8 +3102,8 @@ class PostApi:
|
|
|
1226
3102
|
# process the header parameters
|
|
1227
3103
|
# process the form parameters
|
|
1228
3104
|
# process the body parameter
|
|
1229
|
-
if
|
|
1230
|
-
_body_params =
|
|
3105
|
+
if post_delete_tweet_request is not None:
|
|
3106
|
+
_body_params = post_delete_tweet_request
|
|
1231
3107
|
|
|
1232
3108
|
|
|
1233
3109
|
# set the HTTP header `Accept`
|
|
@@ -1281,7 +3157,7 @@ class PostApi:
|
|
|
1281
3157
|
|
|
1282
3158
|
return self.api_client.param_serialize(
|
|
1283
3159
|
method='POST',
|
|
1284
|
-
resource_path='/graphql/{pathQueryId}/
|
|
3160
|
+
resource_path='/graphql/{pathQueryId}/DeleteTweet',
|
|
1285
3161
|
path_params=_path_params,
|
|
1286
3162
|
query_params=_query_params,
|
|
1287
3163
|
header_params=_header_params,
|
|
@@ -1298,10 +3174,10 @@ class PostApi:
|
|
|
1298
3174
|
|
|
1299
3175
|
|
|
1300
3176
|
@validate_call
|
|
1301
|
-
def
|
|
3177
|
+
def post_favorite_tweet(
|
|
1302
3178
|
self,
|
|
1303
3179
|
path_query_id: StrictStr,
|
|
1304
|
-
|
|
3180
|
+
post_favorite_tweet_request: Annotated[PostFavoriteTweetRequest, Field(description="body")],
|
|
1305
3181
|
_request_timeout: Union[
|
|
1306
3182
|
None,
|
|
1307
3183
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1314,15 +3190,15 @@ class PostApi:
|
|
|
1314
3190
|
_content_type: Optional[StrictStr] = None,
|
|
1315
3191
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1316
3192
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1317
|
-
) ->
|
|
1318
|
-
"""
|
|
3193
|
+
) -> FavoriteTweetResponse:
|
|
3194
|
+
"""post_favorite_tweet
|
|
1319
3195
|
|
|
1320
|
-
|
|
3196
|
+
favorite Tweet
|
|
1321
3197
|
|
|
1322
3198
|
:param path_query_id: (required)
|
|
1323
3199
|
:type path_query_id: str
|
|
1324
|
-
:param
|
|
1325
|
-
:type
|
|
3200
|
+
:param post_favorite_tweet_request: body (required)
|
|
3201
|
+
:type post_favorite_tweet_request: PostFavoriteTweetRequest
|
|
1326
3202
|
:param _request_timeout: timeout setting for this request. If one
|
|
1327
3203
|
number provided, it will be total request
|
|
1328
3204
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1345,9 +3221,9 @@ class PostApi:
|
|
|
1345
3221
|
:return: Returns the result object.
|
|
1346
3222
|
""" # noqa: E501
|
|
1347
3223
|
|
|
1348
|
-
_param = self.
|
|
3224
|
+
_param = self._post_favorite_tweet_serialize(
|
|
1349
3225
|
path_query_id=path_query_id,
|
|
1350
|
-
|
|
3226
|
+
post_favorite_tweet_request=post_favorite_tweet_request,
|
|
1351
3227
|
_request_auth=_request_auth,
|
|
1352
3228
|
_content_type=_content_type,
|
|
1353
3229
|
_headers=_headers,
|
|
@@ -1355,7 +3231,7 @@ class PostApi:
|
|
|
1355
3231
|
)
|
|
1356
3232
|
|
|
1357
3233
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1358
|
-
'200': "
|
|
3234
|
+
'200': "FavoriteTweetResponse",
|
|
1359
3235
|
}
|
|
1360
3236
|
response_data = self.api_client.call_api(
|
|
1361
3237
|
*_param,
|
|
@@ -1369,10 +3245,10 @@ class PostApi:
|
|
|
1369
3245
|
|
|
1370
3246
|
|
|
1371
3247
|
@validate_call
|
|
1372
|
-
def
|
|
3248
|
+
def post_favorite_tweet_with_http_info(
|
|
1373
3249
|
self,
|
|
1374
3250
|
path_query_id: StrictStr,
|
|
1375
|
-
|
|
3251
|
+
post_favorite_tweet_request: Annotated[PostFavoriteTweetRequest, Field(description="body")],
|
|
1376
3252
|
_request_timeout: Union[
|
|
1377
3253
|
None,
|
|
1378
3254
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1385,15 +3261,15 @@ class PostApi:
|
|
|
1385
3261
|
_content_type: Optional[StrictStr] = None,
|
|
1386
3262
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1387
3263
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1388
|
-
) -> ApiResponse[
|
|
1389
|
-
"""
|
|
3264
|
+
) -> ApiResponse[FavoriteTweetResponse]:
|
|
3265
|
+
"""post_favorite_tweet
|
|
1390
3266
|
|
|
1391
|
-
|
|
3267
|
+
favorite Tweet
|
|
1392
3268
|
|
|
1393
3269
|
:param path_query_id: (required)
|
|
1394
3270
|
:type path_query_id: str
|
|
1395
|
-
:param
|
|
1396
|
-
:type
|
|
3271
|
+
:param post_favorite_tweet_request: body (required)
|
|
3272
|
+
:type post_favorite_tweet_request: PostFavoriteTweetRequest
|
|
1397
3273
|
:param _request_timeout: timeout setting for this request. If one
|
|
1398
3274
|
number provided, it will be total request
|
|
1399
3275
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1416,9 +3292,9 @@ class PostApi:
|
|
|
1416
3292
|
:return: Returns the result object.
|
|
1417
3293
|
""" # noqa: E501
|
|
1418
3294
|
|
|
1419
|
-
_param = self.
|
|
3295
|
+
_param = self._post_favorite_tweet_serialize(
|
|
1420
3296
|
path_query_id=path_query_id,
|
|
1421
|
-
|
|
3297
|
+
post_favorite_tweet_request=post_favorite_tweet_request,
|
|
1422
3298
|
_request_auth=_request_auth,
|
|
1423
3299
|
_content_type=_content_type,
|
|
1424
3300
|
_headers=_headers,
|
|
@@ -1426,7 +3302,7 @@ class PostApi:
|
|
|
1426
3302
|
)
|
|
1427
3303
|
|
|
1428
3304
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1429
|
-
'200': "
|
|
3305
|
+
'200': "FavoriteTweetResponse",
|
|
1430
3306
|
}
|
|
1431
3307
|
response_data = self.api_client.call_api(
|
|
1432
3308
|
*_param,
|
|
@@ -1440,10 +3316,10 @@ class PostApi:
|
|
|
1440
3316
|
|
|
1441
3317
|
|
|
1442
3318
|
@validate_call
|
|
1443
|
-
def
|
|
3319
|
+
def post_favorite_tweet_without_preload_content(
|
|
1444
3320
|
self,
|
|
1445
3321
|
path_query_id: StrictStr,
|
|
1446
|
-
|
|
3322
|
+
post_favorite_tweet_request: Annotated[PostFavoriteTweetRequest, Field(description="body")],
|
|
1447
3323
|
_request_timeout: Union[
|
|
1448
3324
|
None,
|
|
1449
3325
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1457,14 +3333,14 @@ class PostApi:
|
|
|
1457
3333
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1458
3334
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1459
3335
|
) -> RESTResponseType:
|
|
1460
|
-
"""
|
|
3336
|
+
"""post_favorite_tweet
|
|
1461
3337
|
|
|
1462
|
-
|
|
3338
|
+
favorite Tweet
|
|
1463
3339
|
|
|
1464
3340
|
:param path_query_id: (required)
|
|
1465
3341
|
:type path_query_id: str
|
|
1466
|
-
:param
|
|
1467
|
-
:type
|
|
3342
|
+
:param post_favorite_tweet_request: body (required)
|
|
3343
|
+
:type post_favorite_tweet_request: PostFavoriteTweetRequest
|
|
1468
3344
|
:param _request_timeout: timeout setting for this request. If one
|
|
1469
3345
|
number provided, it will be total request
|
|
1470
3346
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1487,9 +3363,9 @@ class PostApi:
|
|
|
1487
3363
|
:return: Returns the result object.
|
|
1488
3364
|
""" # noqa: E501
|
|
1489
3365
|
|
|
1490
|
-
_param = self.
|
|
3366
|
+
_param = self._post_favorite_tweet_serialize(
|
|
1491
3367
|
path_query_id=path_query_id,
|
|
1492
|
-
|
|
3368
|
+
post_favorite_tweet_request=post_favorite_tweet_request,
|
|
1493
3369
|
_request_auth=_request_auth,
|
|
1494
3370
|
_content_type=_content_type,
|
|
1495
3371
|
_headers=_headers,
|
|
@@ -1497,7 +3373,7 @@ class PostApi:
|
|
|
1497
3373
|
)
|
|
1498
3374
|
|
|
1499
3375
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1500
|
-
'200': "
|
|
3376
|
+
'200': "FavoriteTweetResponse",
|
|
1501
3377
|
}
|
|
1502
3378
|
response_data = self.api_client.call_api(
|
|
1503
3379
|
*_param,
|
|
@@ -1506,10 +3382,10 @@ class PostApi:
|
|
|
1506
3382
|
return response_data.response
|
|
1507
3383
|
|
|
1508
3384
|
|
|
1509
|
-
def
|
|
3385
|
+
def _post_favorite_tweet_serialize(
|
|
1510
3386
|
self,
|
|
1511
3387
|
path_query_id,
|
|
1512
|
-
|
|
3388
|
+
post_favorite_tweet_request,
|
|
1513
3389
|
_request_auth,
|
|
1514
3390
|
_content_type,
|
|
1515
3391
|
_headers,
|
|
@@ -1537,8 +3413,8 @@ class PostApi:
|
|
|
1537
3413
|
# process the header parameters
|
|
1538
3414
|
# process the form parameters
|
|
1539
3415
|
# process the body parameter
|
|
1540
|
-
if
|
|
1541
|
-
_body_params =
|
|
3416
|
+
if post_favorite_tweet_request is not None:
|
|
3417
|
+
_body_params = post_favorite_tweet_request
|
|
1542
3418
|
|
|
1543
3419
|
|
|
1544
3420
|
# set the HTTP header `Accept`
|
|
@@ -1592,7 +3468,7 @@ class PostApi:
|
|
|
1592
3468
|
|
|
1593
3469
|
return self.api_client.param_serialize(
|
|
1594
3470
|
method='POST',
|
|
1595
|
-
resource_path='/graphql/{pathQueryId}/
|
|
3471
|
+
resource_path='/graphql/{pathQueryId}/FavoriteTweet',
|
|
1596
3472
|
path_params=_path_params,
|
|
1597
3473
|
query_params=_query_params,
|
|
1598
3474
|
header_params=_header_params,
|
|
@@ -1609,10 +3485,10 @@ class PostApi:
|
|
|
1609
3485
|
|
|
1610
3486
|
|
|
1611
3487
|
@validate_call
|
|
1612
|
-
def
|
|
3488
|
+
def post_list_add_member(
|
|
1613
3489
|
self,
|
|
1614
3490
|
path_query_id: StrictStr,
|
|
1615
|
-
|
|
3491
|
+
post_list_add_member_request: Annotated[PostListAddMemberRequest, Field(description="body")],
|
|
1616
3492
|
_request_timeout: Union[
|
|
1617
3493
|
None,
|
|
1618
3494
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1625,15 +3501,15 @@ class PostApi:
|
|
|
1625
3501
|
_content_type: Optional[StrictStr] = None,
|
|
1626
3502
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1627
3503
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1628
|
-
) ->
|
|
1629
|
-
"""
|
|
3504
|
+
) -> ListResponse:
|
|
3505
|
+
"""post_list_add_member
|
|
1630
3506
|
|
|
1631
|
-
|
|
3507
|
+
add a member to a list
|
|
1632
3508
|
|
|
1633
3509
|
:param path_query_id: (required)
|
|
1634
3510
|
:type path_query_id: str
|
|
1635
|
-
:param
|
|
1636
|
-
:type
|
|
3511
|
+
:param post_list_add_member_request: body (required)
|
|
3512
|
+
:type post_list_add_member_request: PostListAddMemberRequest
|
|
1637
3513
|
:param _request_timeout: timeout setting for this request. If one
|
|
1638
3514
|
number provided, it will be total request
|
|
1639
3515
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1656,9 +3532,9 @@ class PostApi:
|
|
|
1656
3532
|
:return: Returns the result object.
|
|
1657
3533
|
""" # noqa: E501
|
|
1658
3534
|
|
|
1659
|
-
_param = self.
|
|
3535
|
+
_param = self._post_list_add_member_serialize(
|
|
1660
3536
|
path_query_id=path_query_id,
|
|
1661
|
-
|
|
3537
|
+
post_list_add_member_request=post_list_add_member_request,
|
|
1662
3538
|
_request_auth=_request_auth,
|
|
1663
3539
|
_content_type=_content_type,
|
|
1664
3540
|
_headers=_headers,
|
|
@@ -1666,7 +3542,7 @@ class PostApi:
|
|
|
1666
3542
|
)
|
|
1667
3543
|
|
|
1668
3544
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1669
|
-
'200': "
|
|
3545
|
+
'200': "ListResponse",
|
|
1670
3546
|
}
|
|
1671
3547
|
response_data = self.api_client.call_api(
|
|
1672
3548
|
*_param,
|
|
@@ -1680,10 +3556,10 @@ class PostApi:
|
|
|
1680
3556
|
|
|
1681
3557
|
|
|
1682
3558
|
@validate_call
|
|
1683
|
-
def
|
|
3559
|
+
def post_list_add_member_with_http_info(
|
|
1684
3560
|
self,
|
|
1685
3561
|
path_query_id: StrictStr,
|
|
1686
|
-
|
|
3562
|
+
post_list_add_member_request: Annotated[PostListAddMemberRequest, Field(description="body")],
|
|
1687
3563
|
_request_timeout: Union[
|
|
1688
3564
|
None,
|
|
1689
3565
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1696,15 +3572,15 @@ class PostApi:
|
|
|
1696
3572
|
_content_type: Optional[StrictStr] = None,
|
|
1697
3573
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1698
3574
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1699
|
-
) -> ApiResponse[
|
|
1700
|
-
"""
|
|
3575
|
+
) -> ApiResponse[ListResponse]:
|
|
3576
|
+
"""post_list_add_member
|
|
1701
3577
|
|
|
1702
|
-
|
|
3578
|
+
add a member to a list
|
|
1703
3579
|
|
|
1704
3580
|
:param path_query_id: (required)
|
|
1705
3581
|
:type path_query_id: str
|
|
1706
|
-
:param
|
|
1707
|
-
:type
|
|
3582
|
+
:param post_list_add_member_request: body (required)
|
|
3583
|
+
:type post_list_add_member_request: PostListAddMemberRequest
|
|
1708
3584
|
:param _request_timeout: timeout setting for this request. If one
|
|
1709
3585
|
number provided, it will be total request
|
|
1710
3586
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1727,9 +3603,9 @@ class PostApi:
|
|
|
1727
3603
|
:return: Returns the result object.
|
|
1728
3604
|
""" # noqa: E501
|
|
1729
3605
|
|
|
1730
|
-
_param = self.
|
|
3606
|
+
_param = self._post_list_add_member_serialize(
|
|
1731
3607
|
path_query_id=path_query_id,
|
|
1732
|
-
|
|
3608
|
+
post_list_add_member_request=post_list_add_member_request,
|
|
1733
3609
|
_request_auth=_request_auth,
|
|
1734
3610
|
_content_type=_content_type,
|
|
1735
3611
|
_headers=_headers,
|
|
@@ -1737,7 +3613,7 @@ class PostApi:
|
|
|
1737
3613
|
)
|
|
1738
3614
|
|
|
1739
3615
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1740
|
-
'200': "
|
|
3616
|
+
'200': "ListResponse",
|
|
1741
3617
|
}
|
|
1742
3618
|
response_data = self.api_client.call_api(
|
|
1743
3619
|
*_param,
|
|
@@ -1751,10 +3627,10 @@ class PostApi:
|
|
|
1751
3627
|
|
|
1752
3628
|
|
|
1753
3629
|
@validate_call
|
|
1754
|
-
def
|
|
3630
|
+
def post_list_add_member_without_preload_content(
|
|
1755
3631
|
self,
|
|
1756
3632
|
path_query_id: StrictStr,
|
|
1757
|
-
|
|
3633
|
+
post_list_add_member_request: Annotated[PostListAddMemberRequest, Field(description="body")],
|
|
1758
3634
|
_request_timeout: Union[
|
|
1759
3635
|
None,
|
|
1760
3636
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1768,14 +3644,14 @@ class PostApi:
|
|
|
1768
3644
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1769
3645
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1770
3646
|
) -> RESTResponseType:
|
|
1771
|
-
"""
|
|
3647
|
+
"""post_list_add_member
|
|
1772
3648
|
|
|
1773
|
-
|
|
3649
|
+
add a member to a list
|
|
1774
3650
|
|
|
1775
3651
|
:param path_query_id: (required)
|
|
1776
3652
|
:type path_query_id: str
|
|
1777
|
-
:param
|
|
1778
|
-
:type
|
|
3653
|
+
:param post_list_add_member_request: body (required)
|
|
3654
|
+
:type post_list_add_member_request: PostListAddMemberRequest
|
|
1779
3655
|
:param _request_timeout: timeout setting for this request. If one
|
|
1780
3656
|
number provided, it will be total request
|
|
1781
3657
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1798,9 +3674,9 @@ class PostApi:
|
|
|
1798
3674
|
:return: Returns the result object.
|
|
1799
3675
|
""" # noqa: E501
|
|
1800
3676
|
|
|
1801
|
-
_param = self.
|
|
3677
|
+
_param = self._post_list_add_member_serialize(
|
|
1802
3678
|
path_query_id=path_query_id,
|
|
1803
|
-
|
|
3679
|
+
post_list_add_member_request=post_list_add_member_request,
|
|
1804
3680
|
_request_auth=_request_auth,
|
|
1805
3681
|
_content_type=_content_type,
|
|
1806
3682
|
_headers=_headers,
|
|
@@ -1808,7 +3684,7 @@ class PostApi:
|
|
|
1808
3684
|
)
|
|
1809
3685
|
|
|
1810
3686
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1811
|
-
'200': "
|
|
3687
|
+
'200': "ListResponse",
|
|
1812
3688
|
}
|
|
1813
3689
|
response_data = self.api_client.call_api(
|
|
1814
3690
|
*_param,
|
|
@@ -1817,10 +3693,10 @@ class PostApi:
|
|
|
1817
3693
|
return response_data.response
|
|
1818
3694
|
|
|
1819
3695
|
|
|
1820
|
-
def
|
|
3696
|
+
def _post_list_add_member_serialize(
|
|
1821
3697
|
self,
|
|
1822
3698
|
path_query_id,
|
|
1823
|
-
|
|
3699
|
+
post_list_add_member_request,
|
|
1824
3700
|
_request_auth,
|
|
1825
3701
|
_content_type,
|
|
1826
3702
|
_headers,
|
|
@@ -1848,8 +3724,8 @@ class PostApi:
|
|
|
1848
3724
|
# process the header parameters
|
|
1849
3725
|
# process the form parameters
|
|
1850
3726
|
# process the body parameter
|
|
1851
|
-
if
|
|
1852
|
-
_body_params =
|
|
3727
|
+
if post_list_add_member_request is not None:
|
|
3728
|
+
_body_params = post_list_add_member_request
|
|
1853
3729
|
|
|
1854
3730
|
|
|
1855
3731
|
# set the HTTP header `Accept`
|
|
@@ -1903,7 +3779,7 @@ class PostApi:
|
|
|
1903
3779
|
|
|
1904
3780
|
return self.api_client.param_serialize(
|
|
1905
3781
|
method='POST',
|
|
1906
|
-
resource_path='/graphql/{pathQueryId}/
|
|
3782
|
+
resource_path='/graphql/{pathQueryId}/ListAddMember',
|
|
1907
3783
|
path_params=_path_params,
|
|
1908
3784
|
query_params=_query_params,
|
|
1909
3785
|
header_params=_header_params,
|
|
@@ -1920,10 +3796,10 @@ class PostApi:
|
|
|
1920
3796
|
|
|
1921
3797
|
|
|
1922
3798
|
@validate_call
|
|
1923
|
-
def
|
|
3799
|
+
def post_list_remove_member(
|
|
1924
3800
|
self,
|
|
1925
3801
|
path_query_id: StrictStr,
|
|
1926
|
-
|
|
3802
|
+
post_list_remove_member_request: Annotated[PostListRemoveMemberRequest, Field(description="body")],
|
|
1927
3803
|
_request_timeout: Union[
|
|
1928
3804
|
None,
|
|
1929
3805
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1936,15 +3812,15 @@ class PostApi:
|
|
|
1936
3812
|
_content_type: Optional[StrictStr] = None,
|
|
1937
3813
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1938
3814
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1939
|
-
) ->
|
|
1940
|
-
"""
|
|
3815
|
+
) -> ListResponse:
|
|
3816
|
+
"""post_list_remove_member
|
|
1941
3817
|
|
|
1942
|
-
|
|
3818
|
+
remove a member from a list
|
|
1943
3819
|
|
|
1944
3820
|
:param path_query_id: (required)
|
|
1945
3821
|
:type path_query_id: str
|
|
1946
|
-
:param
|
|
1947
|
-
:type
|
|
3822
|
+
:param post_list_remove_member_request: body (required)
|
|
3823
|
+
:type post_list_remove_member_request: PostListRemoveMemberRequest
|
|
1948
3824
|
:param _request_timeout: timeout setting for this request. If one
|
|
1949
3825
|
number provided, it will be total request
|
|
1950
3826
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1967,9 +3843,9 @@ class PostApi:
|
|
|
1967
3843
|
:return: Returns the result object.
|
|
1968
3844
|
""" # noqa: E501
|
|
1969
3845
|
|
|
1970
|
-
_param = self.
|
|
3846
|
+
_param = self._post_list_remove_member_serialize(
|
|
1971
3847
|
path_query_id=path_query_id,
|
|
1972
|
-
|
|
3848
|
+
post_list_remove_member_request=post_list_remove_member_request,
|
|
1973
3849
|
_request_auth=_request_auth,
|
|
1974
3850
|
_content_type=_content_type,
|
|
1975
3851
|
_headers=_headers,
|
|
@@ -1977,7 +3853,7 @@ class PostApi:
|
|
|
1977
3853
|
)
|
|
1978
3854
|
|
|
1979
3855
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1980
|
-
'200': "
|
|
3856
|
+
'200': "ListResponse",
|
|
1981
3857
|
}
|
|
1982
3858
|
response_data = self.api_client.call_api(
|
|
1983
3859
|
*_param,
|
|
@@ -1991,10 +3867,10 @@ class PostApi:
|
|
|
1991
3867
|
|
|
1992
3868
|
|
|
1993
3869
|
@validate_call
|
|
1994
|
-
def
|
|
3870
|
+
def post_list_remove_member_with_http_info(
|
|
1995
3871
|
self,
|
|
1996
3872
|
path_query_id: StrictStr,
|
|
1997
|
-
|
|
3873
|
+
post_list_remove_member_request: Annotated[PostListRemoveMemberRequest, Field(description="body")],
|
|
1998
3874
|
_request_timeout: Union[
|
|
1999
3875
|
None,
|
|
2000
3876
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2007,15 +3883,15 @@ class PostApi:
|
|
|
2007
3883
|
_content_type: Optional[StrictStr] = None,
|
|
2008
3884
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2009
3885
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2010
|
-
) -> ApiResponse[
|
|
2011
|
-
"""
|
|
3886
|
+
) -> ApiResponse[ListResponse]:
|
|
3887
|
+
"""post_list_remove_member
|
|
2012
3888
|
|
|
2013
|
-
|
|
3889
|
+
remove a member from a list
|
|
2014
3890
|
|
|
2015
3891
|
:param path_query_id: (required)
|
|
2016
3892
|
:type path_query_id: str
|
|
2017
|
-
:param
|
|
2018
|
-
:type
|
|
3893
|
+
:param post_list_remove_member_request: body (required)
|
|
3894
|
+
:type post_list_remove_member_request: PostListRemoveMemberRequest
|
|
2019
3895
|
:param _request_timeout: timeout setting for this request. If one
|
|
2020
3896
|
number provided, it will be total request
|
|
2021
3897
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2038,9 +3914,9 @@ class PostApi:
|
|
|
2038
3914
|
:return: Returns the result object.
|
|
2039
3915
|
""" # noqa: E501
|
|
2040
3916
|
|
|
2041
|
-
_param = self.
|
|
3917
|
+
_param = self._post_list_remove_member_serialize(
|
|
2042
3918
|
path_query_id=path_query_id,
|
|
2043
|
-
|
|
3919
|
+
post_list_remove_member_request=post_list_remove_member_request,
|
|
2044
3920
|
_request_auth=_request_auth,
|
|
2045
3921
|
_content_type=_content_type,
|
|
2046
3922
|
_headers=_headers,
|
|
@@ -2048,7 +3924,7 @@ class PostApi:
|
|
|
2048
3924
|
)
|
|
2049
3925
|
|
|
2050
3926
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2051
|
-
'200': "
|
|
3927
|
+
'200': "ListResponse",
|
|
2052
3928
|
}
|
|
2053
3929
|
response_data = self.api_client.call_api(
|
|
2054
3930
|
*_param,
|
|
@@ -2062,10 +3938,10 @@ class PostApi:
|
|
|
2062
3938
|
|
|
2063
3939
|
|
|
2064
3940
|
@validate_call
|
|
2065
|
-
def
|
|
3941
|
+
def post_list_remove_member_without_preload_content(
|
|
2066
3942
|
self,
|
|
2067
3943
|
path_query_id: StrictStr,
|
|
2068
|
-
|
|
3944
|
+
post_list_remove_member_request: Annotated[PostListRemoveMemberRequest, Field(description="body")],
|
|
2069
3945
|
_request_timeout: Union[
|
|
2070
3946
|
None,
|
|
2071
3947
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2079,14 +3955,14 @@ class PostApi:
|
|
|
2079
3955
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2080
3956
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2081
3957
|
) -> RESTResponseType:
|
|
2082
|
-
"""
|
|
3958
|
+
"""post_list_remove_member
|
|
2083
3959
|
|
|
2084
|
-
|
|
3960
|
+
remove a member from a list
|
|
2085
3961
|
|
|
2086
3962
|
:param path_query_id: (required)
|
|
2087
3963
|
:type path_query_id: str
|
|
2088
|
-
:param
|
|
2089
|
-
:type
|
|
3964
|
+
:param post_list_remove_member_request: body (required)
|
|
3965
|
+
:type post_list_remove_member_request: PostListRemoveMemberRequest
|
|
2090
3966
|
:param _request_timeout: timeout setting for this request. If one
|
|
2091
3967
|
number provided, it will be total request
|
|
2092
3968
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2109,9 +3985,9 @@ class PostApi:
|
|
|
2109
3985
|
:return: Returns the result object.
|
|
2110
3986
|
""" # noqa: E501
|
|
2111
3987
|
|
|
2112
|
-
_param = self.
|
|
3988
|
+
_param = self._post_list_remove_member_serialize(
|
|
2113
3989
|
path_query_id=path_query_id,
|
|
2114
|
-
|
|
3990
|
+
post_list_remove_member_request=post_list_remove_member_request,
|
|
2115
3991
|
_request_auth=_request_auth,
|
|
2116
3992
|
_content_type=_content_type,
|
|
2117
3993
|
_headers=_headers,
|
|
@@ -2119,7 +3995,7 @@ class PostApi:
|
|
|
2119
3995
|
)
|
|
2120
3996
|
|
|
2121
3997
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2122
|
-
'200': "
|
|
3998
|
+
'200': "ListResponse",
|
|
2123
3999
|
}
|
|
2124
4000
|
response_data = self.api_client.call_api(
|
|
2125
4001
|
*_param,
|
|
@@ -2128,10 +4004,10 @@ class PostApi:
|
|
|
2128
4004
|
return response_data.response
|
|
2129
4005
|
|
|
2130
4006
|
|
|
2131
|
-
def
|
|
4007
|
+
def _post_list_remove_member_serialize(
|
|
2132
4008
|
self,
|
|
2133
4009
|
path_query_id,
|
|
2134
|
-
|
|
4010
|
+
post_list_remove_member_request,
|
|
2135
4011
|
_request_auth,
|
|
2136
4012
|
_content_type,
|
|
2137
4013
|
_headers,
|
|
@@ -2159,8 +4035,8 @@ class PostApi:
|
|
|
2159
4035
|
# process the header parameters
|
|
2160
4036
|
# process the form parameters
|
|
2161
4037
|
# process the body parameter
|
|
2162
|
-
if
|
|
2163
|
-
_body_params =
|
|
4038
|
+
if post_list_remove_member_request is not None:
|
|
4039
|
+
_body_params = post_list_remove_member_request
|
|
2164
4040
|
|
|
2165
4041
|
|
|
2166
4042
|
# set the HTTP header `Accept`
|
|
@@ -2214,7 +4090,7 @@ class PostApi:
|
|
|
2214
4090
|
|
|
2215
4091
|
return self.api_client.param_serialize(
|
|
2216
4092
|
method='POST',
|
|
2217
|
-
resource_path='/graphql/{pathQueryId}/
|
|
4093
|
+
resource_path='/graphql/{pathQueryId}/ListRemoveMember',
|
|
2218
4094
|
path_params=_path_params,
|
|
2219
4095
|
query_params=_query_params,
|
|
2220
4096
|
header_params=_header_params,
|