twitter-openapi-python-generated 0.0.33__py3-none-any.whl → 0.0.35__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 +906 -330
- twitter_openapi_python_generated/api/default_api.py +1 -2
- twitter_openapi_python_generated/api/other_api.py +1 -2
- twitter_openapi_python_generated/api/post_api.py +2081 -206
- twitter_openapi_python_generated/api/tweet_api.py +3225 -250
- twitter_openapi_python_generated/api/user_api.py +993 -91
- twitter_openapi_python_generated/api/user_list_api.py +2291 -68
- twitter_openapi_python_generated/api/users_api.py +1 -2
- twitter_openapi_python_generated/api/v11_get_api.py +1 -2
- twitter_openapi_python_generated/api/v11_post_api.py +1 -2
- twitter_openapi_python_generated/api/v20_get_api.py +1 -2
- twitter_openapi_python_generated/api_client.py +81 -36
- twitter_openapi_python_generated/configuration.py +103 -30
- twitter_openapi_python_generated/exceptions.py +7 -5
- twitter_openapi_python_generated/models/__init__.py +123 -2
- twitter_openapi_python_generated/models/about_community_result.py +4 -3
- twitter_openapi_python_generated/models/about_community_results.py +4 -3
- twitter_openapi_python_generated/models/about_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/additional_media_info.py +7 -4
- twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py +4 -3
- twitter_openapi_python_generated/models/additional_media_info_call_to_actions_url.py +4 -3
- twitter_openapi_python_generated/models/allow_download_status.py +4 -3
- twitter_openapi_python_generated/models/analysis_results.py +4 -3
- twitter_openapi_python_generated/models/article.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media.py +6 -5
- twitter_openapi_python_generated/models/article_cover_media_color_info.py +5 -5
- twitter_openapi_python_generated/models/article_cover_media_color_info_palette.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media_color_info_palette_rgb.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media_info.py +4 -3
- twitter_openapi_python_generated/models/article_lifecycle_state.py +4 -3
- twitter_openapi_python_generated/models/article_metadata.py +4 -3
- twitter_openapi_python_generated/models/article_preview.py +99 -0
- twitter_openapi_python_generated/models/article_result.py +21 -8
- twitter_openapi_python_generated/models/article_results.py +4 -3
- twitter_openapi_python_generated/models/author_community_relationship.py +9 -8
- twitter_openapi_python_generated/models/badge_counts.py +97 -0
- twitter_openapi_python_generated/models/birdwatch_entity.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_entity_ref.py +7 -4
- twitter_openapi_python_generated/models/birdwatch_pivot.py +19 -6
- twitter_openapi_python_generated/models/birdwatch_pivot_call_to_action.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +5 -5
- twitter_openapi_python_generated/models/birdwatch_pivot_note.py +19 -8
- twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +5 -5
- twitter_openapi_python_generated/models/bookmarks_response.py +5 -5
- twitter_openapi_python_generated/models/bookmarks_response_data.py +4 -3
- twitter_openapi_python_generated/models/bookmarks_timeline.py +4 -3
- twitter_openapi_python_generated/models/callback.py +4 -3
- twitter_openapi_python_generated/models/cashtag_attachment.py +89 -0
- twitter_openapi_python_generated/models/client_event_info.py +4 -3
- twitter_openapi_python_generated/models/communities_actions.py +4 -3
- twitter_openapi_python_generated/models/community.py +141 -12
- twitter_openapi_python_generated/models/community_about_timeline_response.py +5 -5
- twitter_openapi_python_generated/models/community_actions.py +4 -3
- twitter_openapi_python_generated/models/community_delete_action_result.py +4 -3
- 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_invites_result.py +4 -3
- twitter_openapi_python_generated/models/community_join_action.py +4 -3
- twitter_openapi_python_generated/models/community_join_action_result_union.py +3 -2
- twitter_openapi_python_generated/models/community_join_action_unavailable.py +4 -3
- twitter_openapi_python_generated/models/community_join_requests_result.py +4 -3
- twitter_openapi_python_generated/models/community_leave_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_media_timeline_response.py +5 -5
- twitter_openapi_python_generated/models/community_pin_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_relationship.py +6 -5
- twitter_openapi_python_generated/models/community_result.py +93 -0
- twitter_openapi_python_generated/models/community_rule.py +6 -5
- twitter_openapi_python_generated/models/community_tweets_timeline_response.py +5 -5
- twitter_openapi_python_generated/models/community_unavailable.py +90 -0
- twitter_openapi_python_generated/models/community_union.py +157 -0
- twitter_openapi_python_generated/models/community_unpin_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_urls.py +4 -3
- twitter_openapi_python_generated/models/community_urls_permalink.py +4 -3
- 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.py +99 -0
- twitter_openapi_python_generated/models/content_disclosure_advertising_disclosure.py +89 -0
- twitter_openapi_python_generated/models/content_disclosure_ai_generated_disclosure.py +103 -0
- 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 +4 -3
- twitter_openapi_python_generated/models/cover_cta.py +5 -5
- twitter_openapi_python_generated/models/create_bookmark_response.py +5 -5
- twitter_openapi_python_generated/models/create_bookmark_response_data.py +4 -3
- 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.py +4 -3
- twitter_openapi_python_generated/models/create_retweet_response.py +5 -5
- twitter_openapi_python_generated/models/create_retweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/create_retweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/create_tweet.py +4 -3
- twitter_openapi_python_generated/models/create_tweet_response.py +5 -5
- twitter_openapi_python_generated/models/create_tweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/create_tweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/cta_client_event_info.py +4 -3
- twitter_openapi_python_generated/models/delete_bookmark_response.py +5 -5
- twitter_openapi_python_generated/models/delete_bookmark_response_data.py +4 -3
- 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 +5 -5
- twitter_openapi_python_generated/models/delete_retweet_response.py +5 -5
- twitter_openapi_python_generated/models/delete_retweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/delete_retweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/delete_tweet_response.py +5 -5
- twitter_openapi_python_generated/models/delete_tweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/delete_tweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/display_treatment.py +4 -3
- 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 +24 -15
- twitter_openapi_python_generated/models/error_extensions.py +5 -4
- twitter_openapi_python_generated/models/error_response.py +15 -8
- twitter_openapi_python_generated/models/error_response_path_inner.py +144 -0
- 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/ext_media_availability.py +4 -3
- twitter_openapi_python_generated/models/extended_entities.py +5 -5
- twitter_openapi_python_generated/models/favorite_tweet.py +4 -3
- twitter_openapi_python_generated/models/favorite_tweet_response.py +5 -5
- twitter_openapi_python_generated/models/feedback_info.py +4 -3
- 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 +5 -5
- twitter_openapi_python_generated/models/follow_response_data.py +4 -3
- twitter_openapi_python_generated/models/follow_response_result.py +4 -3
- twitter_openapi_python_generated/models/follow_response_user.py +4 -3
- twitter_openapi_python_generated/models/follow_timeline.py +4 -3
- 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_annotation.py +89 -0
- twitter_openapi_python_generated/models/grok_entity.py +97 -0
- twitter_openapi_python_generated/models/grok_entity_ref.py +116 -0
- twitter_openapi_python_generated/models/grok_image_annotation.py +4 -3
- twitter_openapi_python_generated/models/grok_share_attachment.py +5 -5
- twitter_openapi_python_generated/models/grok_share_attachment_item.py +7 -4
- 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 +104 -0
- twitter_openapi_python_generated/models/grok_translated_community_note_with_availability.py +95 -0
- twitter_openapi_python_generated/models/grok_translated_post.py +103 -0
- twitter_openapi_python_generated/models/grok_translated_post_with_availability.py +95 -0
- twitter_openapi_python_generated/models/highlight.py +5 -5
- twitter_openapi_python_generated/models/home_timeline_home.py +4 -3
- twitter_openapi_python_generated/models/home_timeline_response_data.py +4 -3
- 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/item_result.py +4 -3
- twitter_openapi_python_generated/models/limited_action_results_data.py +4 -3
- 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_salient_rect.py +95 -0
- twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py +5 -5
- 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/list_tweets_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/list_tweets_timeline_list.py +4 -3
- twitter_openapi_python_generated/models/location.py +4 -3
- twitter_openapi_python_generated/models/media.py +23 -11
- twitter_openapi_python_generated/models/media_community_result.py +4 -3
- twitter_openapi_python_generated/models/media_community_results.py +4 -3
- twitter_openapi_python_generated/models/media_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/media_extended.py +20 -10
- twitter_openapi_python_generated/models/media_original_info.py +5 -5
- twitter_openapi_python_generated/models/media_original_info_focus_rect.py +4 -3
- twitter_openapi_python_generated/models/media_result.py +4 -3
- twitter_openapi_python_generated/models/media_results.py +4 -3
- twitter_openapi_python_generated/models/media_size.py +4 -3
- twitter_openapi_python_generated/models/media_sizes.py +4 -3
- twitter_openapi_python_generated/models/media_stats.py +4 -3
- twitter_openapi_python_generated/models/media_video_info.py +5 -5
- twitter_openapi_python_generated/models/media_video_info_variant.py +4 -3
- twitter_openapi_python_generated/models/media_visibility_results.py +4 -3
- twitter_openapi_python_generated/models/media_visibility_results_blurred_image_interstitial.py +4 -3
- twitter_openapi_python_generated/models/module_entry.py +4 -3
- twitter_openapi_python_generated/models/module_item.py +6 -5
- twitter_openapi_python_generated/models/note_tweet.py +6 -5
- twitter_openapi_python_generated/models/note_tweet_result.py +4 -3
- twitter_openapi_python_generated/models/note_tweet_result_data.py +6 -5
- twitter_openapi_python_generated/models/note_tweet_result_media.py +5 -5
- twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py +6 -5
- twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +5 -5
- twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py +4 -3
- twitter_openapi_python_generated/models/notification_template.py +4 -3
- twitter_openapi_python_generated/models/notifications_result.py +6 -5
- twitter_openapi_python_generated/models/notifications_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/notifications_timeline_response.py +5 -5
- twitter_openapi_python_generated/models/notifications_user_results.py +4 -3
- twitter_openapi_python_generated/models/notifications_viewer_v2.py +4 -3
- twitter_openapi_python_generated/models/one_factor_login_eligibility.py +4 -3
- twitter_openapi_python_generated/models/other_object_all.py +4 -3
- twitter_openapi_python_generated/models/post_create_bookmark_request.py +5 -4
- twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +6 -5
- 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 +6 -5
- twitter_openapi_python_generated/models/post_create_retweet_request_variables.py +7 -6
- twitter_openapi_python_generated/models/post_create_tweet_request.py +6 -5
- twitter_openapi_python_generated/models/post_create_tweet_request_features.py +60 -43
- twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +8 -7
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py +6 -5
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +7 -7
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py +6 -5
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_reply.py +6 -5
- twitter_openapi_python_generated/models/post_cta.py +101 -0
- twitter_openapi_python_generated/models/post_cta_title_text.py +98 -0
- twitter_openapi_python_generated/models/post_cta_title_text_entity.py +97 -0
- twitter_openapi_python_generated/models/post_cta_title_text_entity_ref.py +96 -0
- twitter_openapi_python_generated/models/post_cta_user_results.py +93 -0
- twitter_openapi_python_generated/models/post_cta_user_results_avatar.py +89 -0
- twitter_openapi_python_generated/models/post_cta_user_results_result.py +96 -0
- twitter_openapi_python_generated/models/post_delete_bookmark_request.py +5 -4
- 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 +6 -5
- twitter_openapi_python_generated/models/post_delete_retweet_request_variables.py +7 -6
- twitter_openapi_python_generated/models/post_delete_tweet_request.py +6 -5
- twitter_openapi_python_generated/models/post_favorite_tweet_request.py +5 -4
- 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 +5 -4
- twitter_openapi_python_generated/models/primary_community_topic.py +6 -5
- twitter_openapi_python_generated/models/profile_bio.py +97 -0
- 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 +5 -5
- twitter_openapi_python_generated/models/profile_response_data.py +4 -3
- twitter_openapi_python_generated/models/quoted_ref_result.py +4 -3
- twitter_openapi_python_generated/models/quoted_status_permalink.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_result.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_results.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/retweet.py +8 -7
- twitter_openapi_python_generated/models/retweet_legacy.py +4 -3
- twitter_openapi_python_generated/models/rich_message.py +4 -3
- twitter_openapi_python_generated/models/scheduled_tweets_viewer.py +89 -0
- twitter_openapi_python_generated/models/search_by_raw_query.py +4 -3
- twitter_openapi_python_generated/models/search_timeline.py +4 -3
- twitter_openapi_python_generated/models/search_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/search_timeline_response.py +5 -5
- twitter_openapi_python_generated/models/self_thread.py +6 -5
- twitter_openapi_python_generated/models/sensitive_media_warning.py +4 -3
- twitter_openapi_python_generated/models/session.py +12 -11
- twitter_openapi_python_generated/models/smarttag.py +97 -0
- twitter_openapi_python_generated/models/smarttag_tag.py +89 -0
- twitter_openapi_python_generated/models/social_context_landing_url.py +4 -3
- twitter_openapi_python_generated/models/social_context_union.py +3 -2
- twitter_openapi_python_generated/models/super_follow_user_profile.py +89 -0
- twitter_openapi_python_generated/models/super_follows_reply_user_result.py +4 -3
- twitter_openapi_python_generated/models/super_follows_reply_user_result_core.py +89 -0
- twitter_openapi_python_generated/models/super_follows_reply_user_result_data.py +12 -11
- twitter_openapi_python_generated/models/super_follows_reply_user_result_legacy.py +4 -3
- twitter_openapi_python_generated/models/text.py +5 -5
- twitter_openapi_python_generated/models/text_entity.py +4 -3
- twitter_openapi_python_generated/models/text_entity_ref.py +4 -3
- twitter_openapi_python_generated/models/text_highlight.py +4 -3
- twitter_openapi_python_generated/models/thumbnail_image.py +4 -3
- twitter_openapi_python_generated/models/timeline.py +5 -5
- twitter_openapi_python_generated/models/timeline_add_entries.py +5 -5
- twitter_openapi_python_generated/models/timeline_add_entry.py +8 -7
- twitter_openapi_python_generated/models/timeline_add_to_module.py +5 -5
- twitter_openapi_python_generated/models/timeline_clear_cache.py +4 -3
- twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py +4 -3
- twitter_openapi_python_generated/models/timeline_community.py +4 -3
- twitter_openapi_python_generated/models/timeline_cover_behavior.py +4 -3
- twitter_openapi_python_generated/models/timeline_cover_behavior_url.py +4 -3
- twitter_openapi_python_generated/models/timeline_frame.py +97 -0
- twitter_openapi_python_generated/models/timeline_general_context.py +4 -3
- twitter_openapi_python_generated/models/timeline_half_cover.py +5 -5
- twitter_openapi_python_generated/models/timeline_label.py +101 -0
- twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +6 -5
- twitter_openapi_python_generated/models/timeline_message_prompt.py +4 -3
- twitter_openapi_python_generated/models/timeline_notification.py +4 -3
- twitter_openapi_python_generated/models/timeline_pin_entry.py +4 -3
- twitter_openapi_python_generated/models/timeline_prompt.py +4 -3
- twitter_openapi_python_generated/models/timeline_replace_entry.py +4 -3
- twitter_openapi_python_generated/models/timeline_response.py +5 -5
- twitter_openapi_python_generated/models/timeline_result.py +4 -3
- twitter_openapi_python_generated/models/timeline_show_alert.py +18 -7
- twitter_openapi_python_generated/models/timeline_show_alert_rich_text.py +4 -3
- twitter_openapi_python_generated/models/timeline_show_cover.py +4 -3
- twitter_openapi_python_generated/models/timeline_terminate_timeline.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_cursor.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_item.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_module.py +5 -5
- twitter_openapi_python_generated/models/timeline_tombstone.py +4 -3
- twitter_openapi_python_generated/models/timeline_topic_context.py +4 -3
- twitter_openapi_python_generated/models/timeline_trend.py +20 -7
- twitter_openapi_python_generated/models/timeline_tweet.py +4 -3
- twitter_openapi_python_generated/models/timeline_twitter_list.py +101 -0
- twitter_openapi_python_generated/models/timeline_user.py +4 -3
- twitter_openapi_python_generated/models/timestamp.py +4 -3
- twitter_openapi_python_generated/models/tombstone_entity.py +4 -3
- twitter_openapi_python_generated/models/tombstone_info.py +4 -3
- twitter_openapi_python_generated/models/tombstone_ref.py +4 -3
- twitter_openapi_python_generated/models/tombstone_rich_text.py +5 -5
- twitter_openapi_python_generated/models/topic_context.py +4 -3
- twitter_openapi_python_generated/models/tracing.py +6 -5
- twitter_openapi_python_generated/models/trend_image.py +4 -3
- twitter_openapi_python_generated/models/trend_metadata.py +8 -5
- twitter_openapi_python_generated/models/trend_results.py +6 -5
- twitter_openapi_python_generated/models/tweet.py +52 -9
- twitter_openapi_python_generated/models/tweet_card.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy.py +6 -7
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data_image.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_audience.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_device.py +6 -5
- twitter_openapi_python_generated/models/tweet_detail_response.py +5 -5
- twitter_openapi_python_generated/models/tweet_detail_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_edit_control.py +10 -9
- twitter_openapi_python_generated/models/tweet_edit_control_initial.py +8 -7
- twitter_openapi_python_generated/models/tweet_edit_prespective.py +4 -3
- twitter_openapi_python_generated/models/tweet_favoriters_response.py +5 -5
- twitter_openapi_python_generated/models/tweet_favoriters_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial.py +6 -5
- twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +5 -5
- twitter_openapi_python_generated/models/tweet_interstitial_text.py +5 -5
- twitter_openapi_python_generated/models/tweet_interstitial_text_entity.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial_text_entity_ref.py +4 -3
- twitter_openapi_python_generated/models/tweet_legacy.py +20 -19
- twitter_openapi_python_generated/models/tweet_legacy_scopes.py +4 -3
- twitter_openapi_python_generated/models/tweet_limited_action_results.py +5 -5
- twitter_openapi_python_generated/models/tweet_post_cta.py +105 -0
- twitter_openapi_python_generated/models/tweet_preview_display.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_cta.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_cta_url.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_tweet.py +17 -10
- twitter_openapi_python_generated/models/tweet_preview_display_tweet_view_count.py +6 -5
- twitter_openapi_python_generated/models/tweet_previous_counts.py +4 -3
- twitter_openapi_python_generated/models/tweet_result_by_rest_id_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_result_by_rest_id_response.py +5 -5
- twitter_openapi_python_generated/models/tweet_retweeters_response.py +5 -5
- twitter_openapi_python_generated/models/tweet_retweeters_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_tombstone.py +4 -3
- twitter_openapi_python_generated/models/tweet_unavailable.py +4 -3
- twitter_openapi_python_generated/models/tweet_union.py +3 -2
- twitter_openapi_python_generated/models/tweet_view.py +6 -5
- twitter_openapi_python_generated/models/tweet_with_visibility_results.py +4 -3
- twitter_openapi_python_generated/models/twitter_list.py +146 -0
- twitter_openapi_python_generated/models/type_name.py +6 -0
- twitter_openapi_python_generated/models/unfavorite_tweet.py +4 -3
- twitter_openapi_python_generated/models/unfavorite_tweet_response.py +5 -5
- twitter_openapi_python_generated/models/unified_card.py +4 -3
- twitter_openapi_python_generated/models/url.py +4 -3
- twitter_openapi_python_generated/models/urt_endpoint_options.py +7 -7
- twitter_openapi_python_generated/models/urt_endpoint_request_params.py +4 -3
- twitter_openapi_python_generated/models/user.py +150 -12
- twitter_openapi_python_generated/models/user_action_counts.py +89 -0
- twitter_openapi_python_generated/models/user_avatar.py +89 -0
- twitter_openapi_python_generated/models/user_banner.py +89 -0
- twitter_openapi_python_generated/models/user_core.py +101 -0
- twitter_openapi_python_generated/models/user_dm_permissions.py +89 -0
- twitter_openapi_python_generated/models/user_features.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_info.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_data.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_response.py +5 -5
- twitter_openapi_python_generated/models/user_highlights_tweets_result.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_timeline.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_user.py +4 -3
- twitter_openapi_python_generated/models/user_legacy.py +26 -14
- twitter_openapi_python_generated/models/user_legacy_extended_profile.py +4 -3
- twitter_openapi_python_generated/models/user_legacy_extended_profile_birthdate.py +4 -3
- twitter_openapi_python_generated/models/user_location.py +89 -0
- twitter_openapi_python_generated/models/user_media_permissions.py +89 -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_privacy.py +89 -0
- twitter_openapi_python_generated/models/user_professional.py +9 -9
- twitter_openapi_python_generated/models/user_professional_category.py +4 -3
- twitter_openapi_python_generated/models/user_profile.py +93 -0
- 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 +99 -0
- twitter_openapi_python_generated/models/user_response.py +5 -5
- twitter_openapi_python_generated/models/user_response_data.py +4 -3
- twitter_openapi_python_generated/models/user_result_by_screen_name.py +6 -5
- twitter_openapi_python_generated/models/user_result_by_screen_name_core.py +91 -0
- twitter_openapi_python_generated/models/user_result_by_screen_name_legacy.py +4 -3
- twitter_openapi_python_generated/models/user_result_by_screen_name_result.py +32 -11
- twitter_openapi_python_generated/models/user_result_core.py +7 -4
- twitter_openapi_python_generated/models/user_result_privacy.py +89 -0
- twitter_openapi_python_generated/models/user_result_relationship_perspectives.py +95 -0
- twitter_openapi_python_generated/models/user_results.py +7 -4
- twitter_openapi_python_generated/models/user_tip_jar_settings.py +4 -3
- twitter_openapi_python_generated/models/user_tweet_counts.py +91 -0
- twitter_openapi_python_generated/models/user_tweets_data.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_response.py +5 -5
- twitter_openapi_python_generated/models/user_tweets_result_v1.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_result_v2.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_user.py +4 -3
- twitter_openapi_python_generated/models/user_unavailable.py +4 -3
- twitter_openapi_python_generated/models/user_union.py +6 -3
- twitter_openapi_python_generated/models/user_value.py +12 -9
- twitter_openapi_python_generated/models/user_verification.py +101 -0
- twitter_openapi_python_generated/models/user_verification_info.py +4 -3
- twitter_openapi_python_generated/models/user_verification_info_reason.py +6 -5
- twitter_openapi_python_generated/models/user_verification_info_reason_description.py +5 -5
- twitter_openapi_python_generated/models/user_verification_info_reason_description_entities.py +4 -3
- twitter_openapi_python_generated/models/user_verification_info_reason_description_entities_ref.py +4 -3
- twitter_openapi_python_generated/models/user_website.py +89 -0
- twitter_openapi_python_generated/models/users_response.py +5 -5
- twitter_openapi_python_generated/models/users_response_data.py +5 -5
- 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 +86 -10
- twitter_openapi_python_generated-0.0.35.dist-info/METADATA +926 -0
- twitter_openapi_python_generated-0.0.35.dist-info/RECORD +456 -0
- {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/WHEEL +1 -1
- {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE +31 -31
- {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE.AGPL +660 -660
- twitter_openapi_python_generated/models/community_data.py +0 -219
- twitter_openapi_python_generated-0.0.33.dist-info/METADATA +0 -29
- twitter_openapi_python_generated-0.0.33.dist-info/RECORD +0 -335
- {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
Twitter OpenAPI
|
|
5
3
|
|
|
@@ -12,6 +10,7 @@
|
|
|
12
10
|
Do not edit the class manually.
|
|
13
11
|
""" # noqa: E501
|
|
14
12
|
|
|
13
|
+
|
|
15
14
|
import warnings
|
|
16
15
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
@@ -19,8 +18,13 @@ from typing_extensions import Annotated
|
|
|
19
18
|
|
|
20
19
|
from pydantic import StrictStr
|
|
21
20
|
from twitter_openapi_python_generated.models.follow_response import FollowResponse
|
|
21
|
+
from twitter_openapi_python_generated.models.list_members_response import ListMembersResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.list_recommended_users_response import ListRecommendedUsersResponse
|
|
23
|
+
from twitter_openapi_python_generated.models.list_response import ListResponse
|
|
24
|
+
from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse
|
|
22
25
|
from twitter_openapi_python_generated.models.tweet_favoriters_response import TweetFavoritersResponse
|
|
23
26
|
from twitter_openapi_python_generated.models.tweet_retweeters_response import TweetRetweetersResponse
|
|
27
|
+
from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse
|
|
24
28
|
|
|
25
29
|
from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
|
|
26
30
|
from twitter_openapi_python_generated.api_response import ApiResponse
|
|
@@ -41,7 +45,7 @@ class UserListApi:
|
|
|
41
45
|
|
|
42
46
|
|
|
43
47
|
@validate_call
|
|
44
|
-
def
|
|
48
|
+
def get_blue_verified_followers(
|
|
45
49
|
self,
|
|
46
50
|
path_query_id: StrictStr,
|
|
47
51
|
variables: StrictStr,
|
|
@@ -58,10 +62,10 @@ class UserListApi:
|
|
|
58
62
|
_content_type: Optional[StrictStr] = None,
|
|
59
63
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
64
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
-
) ->
|
|
62
|
-
"""
|
|
65
|
+
) -> FollowResponse:
|
|
66
|
+
"""get_blue_verified_followers
|
|
63
67
|
|
|
64
|
-
get
|
|
68
|
+
get blue verified followers
|
|
65
69
|
|
|
66
70
|
:param path_query_id: (required)
|
|
67
71
|
:type path_query_id: str
|
|
@@ -91,7 +95,7 @@ class UserListApi:
|
|
|
91
95
|
:return: Returns the result object.
|
|
92
96
|
""" # noqa: E501
|
|
93
97
|
|
|
94
|
-
_param = self.
|
|
98
|
+
_param = self._get_blue_verified_followers_serialize(
|
|
95
99
|
path_query_id=path_query_id,
|
|
96
100
|
variables=variables,
|
|
97
101
|
features=features,
|
|
@@ -102,7 +106,7 @@ class UserListApi:
|
|
|
102
106
|
)
|
|
103
107
|
|
|
104
108
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
-
'200': "
|
|
109
|
+
'200': "FollowResponse",
|
|
106
110
|
}
|
|
107
111
|
response_data = self.api_client.call_api(
|
|
108
112
|
*_param,
|
|
@@ -116,7 +120,7 @@ class UserListApi:
|
|
|
116
120
|
|
|
117
121
|
|
|
118
122
|
@validate_call
|
|
119
|
-
def
|
|
123
|
+
def get_blue_verified_followers_with_http_info(
|
|
120
124
|
self,
|
|
121
125
|
path_query_id: StrictStr,
|
|
122
126
|
variables: StrictStr,
|
|
@@ -133,10 +137,10 @@ class UserListApi:
|
|
|
133
137
|
_content_type: Optional[StrictStr] = None,
|
|
134
138
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
139
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[
|
|
137
|
-
"""
|
|
140
|
+
) -> ApiResponse[FollowResponse]:
|
|
141
|
+
"""get_blue_verified_followers
|
|
138
142
|
|
|
139
|
-
get
|
|
143
|
+
get blue verified followers
|
|
140
144
|
|
|
141
145
|
:param path_query_id: (required)
|
|
142
146
|
:type path_query_id: str
|
|
@@ -166,7 +170,7 @@ class UserListApi:
|
|
|
166
170
|
:return: Returns the result object.
|
|
167
171
|
""" # noqa: E501
|
|
168
172
|
|
|
169
|
-
_param = self.
|
|
173
|
+
_param = self._get_blue_verified_followers_serialize(
|
|
170
174
|
path_query_id=path_query_id,
|
|
171
175
|
variables=variables,
|
|
172
176
|
features=features,
|
|
@@ -177,7 +181,7 @@ class UserListApi:
|
|
|
177
181
|
)
|
|
178
182
|
|
|
179
183
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
180
|
-
'200': "
|
|
184
|
+
'200': "FollowResponse",
|
|
181
185
|
}
|
|
182
186
|
response_data = self.api_client.call_api(
|
|
183
187
|
*_param,
|
|
@@ -191,7 +195,7 @@ class UserListApi:
|
|
|
191
195
|
|
|
192
196
|
|
|
193
197
|
@validate_call
|
|
194
|
-
def
|
|
198
|
+
def get_blue_verified_followers_without_preload_content(
|
|
195
199
|
self,
|
|
196
200
|
path_query_id: StrictStr,
|
|
197
201
|
variables: StrictStr,
|
|
@@ -209,9 +213,9 @@ class UserListApi:
|
|
|
209
213
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
210
214
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
211
215
|
) -> RESTResponseType:
|
|
212
|
-
"""
|
|
216
|
+
"""get_blue_verified_followers
|
|
213
217
|
|
|
214
|
-
get
|
|
218
|
+
get blue verified followers
|
|
215
219
|
|
|
216
220
|
:param path_query_id: (required)
|
|
217
221
|
:type path_query_id: str
|
|
@@ -241,7 +245,7 @@ class UserListApi:
|
|
|
241
245
|
:return: Returns the result object.
|
|
242
246
|
""" # noqa: E501
|
|
243
247
|
|
|
244
|
-
_param = self.
|
|
248
|
+
_param = self._get_blue_verified_followers_serialize(
|
|
245
249
|
path_query_id=path_query_id,
|
|
246
250
|
variables=variables,
|
|
247
251
|
features=features,
|
|
@@ -252,7 +256,7 @@ class UserListApi:
|
|
|
252
256
|
)
|
|
253
257
|
|
|
254
258
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
255
|
-
'200': "
|
|
259
|
+
'200': "FollowResponse",
|
|
256
260
|
}
|
|
257
261
|
response_data = self.api_client.call_api(
|
|
258
262
|
*_param,
|
|
@@ -261,7 +265,7 @@ class UserListApi:
|
|
|
261
265
|
return response_data.response
|
|
262
266
|
|
|
263
267
|
|
|
264
|
-
def
|
|
268
|
+
def _get_blue_verified_followers_serialize(
|
|
265
269
|
self,
|
|
266
270
|
path_query_id,
|
|
267
271
|
variables,
|
|
@@ -341,7 +345,7 @@ class UserListApi:
|
|
|
341
345
|
|
|
342
346
|
return self.api_client.param_serialize(
|
|
343
347
|
method='GET',
|
|
344
|
-
resource_path='/graphql/{pathQueryId}/
|
|
348
|
+
resource_path='/graphql/{pathQueryId}/BlueVerifiedFollowers',
|
|
345
349
|
path_params=_path_params,
|
|
346
350
|
query_params=_query_params,
|
|
347
351
|
header_params=_header_params,
|
|
@@ -358,7 +362,7 @@ class UserListApi:
|
|
|
358
362
|
|
|
359
363
|
|
|
360
364
|
@validate_call
|
|
361
|
-
def
|
|
365
|
+
def get_favoriters(
|
|
362
366
|
self,
|
|
363
367
|
path_query_id: StrictStr,
|
|
364
368
|
variables: StrictStr,
|
|
@@ -375,10 +379,10 @@ class UserListApi:
|
|
|
375
379
|
_content_type: Optional[StrictStr] = None,
|
|
376
380
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
377
381
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
378
|
-
) ->
|
|
379
|
-
"""
|
|
382
|
+
) -> TweetFavoritersResponse:
|
|
383
|
+
"""get_favoriters
|
|
380
384
|
|
|
381
|
-
get
|
|
385
|
+
get tweet favoriters
|
|
382
386
|
|
|
383
387
|
:param path_query_id: (required)
|
|
384
388
|
:type path_query_id: str
|
|
@@ -408,7 +412,7 @@ class UserListApi:
|
|
|
408
412
|
:return: Returns the result object.
|
|
409
413
|
""" # noqa: E501
|
|
410
414
|
|
|
411
|
-
_param = self.
|
|
415
|
+
_param = self._get_favoriters_serialize(
|
|
412
416
|
path_query_id=path_query_id,
|
|
413
417
|
variables=variables,
|
|
414
418
|
features=features,
|
|
@@ -419,7 +423,7 @@ class UserListApi:
|
|
|
419
423
|
)
|
|
420
424
|
|
|
421
425
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
422
|
-
'200': "
|
|
426
|
+
'200': "TweetFavoritersResponse",
|
|
423
427
|
}
|
|
424
428
|
response_data = self.api_client.call_api(
|
|
425
429
|
*_param,
|
|
@@ -433,7 +437,7 @@ class UserListApi:
|
|
|
433
437
|
|
|
434
438
|
|
|
435
439
|
@validate_call
|
|
436
|
-
def
|
|
440
|
+
def get_favoriters_with_http_info(
|
|
437
441
|
self,
|
|
438
442
|
path_query_id: StrictStr,
|
|
439
443
|
variables: StrictStr,
|
|
@@ -450,10 +454,10 @@ class UserListApi:
|
|
|
450
454
|
_content_type: Optional[StrictStr] = None,
|
|
451
455
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
452
456
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
453
|
-
) -> ApiResponse[
|
|
454
|
-
"""
|
|
457
|
+
) -> ApiResponse[TweetFavoritersResponse]:
|
|
458
|
+
"""get_favoriters
|
|
455
459
|
|
|
456
|
-
get
|
|
460
|
+
get tweet favoriters
|
|
457
461
|
|
|
458
462
|
:param path_query_id: (required)
|
|
459
463
|
:type path_query_id: str
|
|
@@ -483,7 +487,7 @@ class UserListApi:
|
|
|
483
487
|
:return: Returns the result object.
|
|
484
488
|
""" # noqa: E501
|
|
485
489
|
|
|
486
|
-
_param = self.
|
|
490
|
+
_param = self._get_favoriters_serialize(
|
|
487
491
|
path_query_id=path_query_id,
|
|
488
492
|
variables=variables,
|
|
489
493
|
features=features,
|
|
@@ -494,7 +498,7 @@ class UserListApi:
|
|
|
494
498
|
)
|
|
495
499
|
|
|
496
500
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
497
|
-
'200': "
|
|
501
|
+
'200': "TweetFavoritersResponse",
|
|
498
502
|
}
|
|
499
503
|
response_data = self.api_client.call_api(
|
|
500
504
|
*_param,
|
|
@@ -508,7 +512,7 @@ class UserListApi:
|
|
|
508
512
|
|
|
509
513
|
|
|
510
514
|
@validate_call
|
|
511
|
-
def
|
|
515
|
+
def get_favoriters_without_preload_content(
|
|
512
516
|
self,
|
|
513
517
|
path_query_id: StrictStr,
|
|
514
518
|
variables: StrictStr,
|
|
@@ -526,9 +530,9 @@ class UserListApi:
|
|
|
526
530
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
527
531
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
528
532
|
) -> RESTResponseType:
|
|
529
|
-
"""
|
|
533
|
+
"""get_favoriters
|
|
530
534
|
|
|
531
|
-
get
|
|
535
|
+
get tweet favoriters
|
|
532
536
|
|
|
533
537
|
:param path_query_id: (required)
|
|
534
538
|
:type path_query_id: str
|
|
@@ -558,7 +562,7 @@ class UserListApi:
|
|
|
558
562
|
:return: Returns the result object.
|
|
559
563
|
""" # noqa: E501
|
|
560
564
|
|
|
561
|
-
_param = self.
|
|
565
|
+
_param = self._get_favoriters_serialize(
|
|
562
566
|
path_query_id=path_query_id,
|
|
563
567
|
variables=variables,
|
|
564
568
|
features=features,
|
|
@@ -569,7 +573,7 @@ class UserListApi:
|
|
|
569
573
|
)
|
|
570
574
|
|
|
571
575
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
572
|
-
'200': "
|
|
576
|
+
'200': "TweetFavoritersResponse",
|
|
573
577
|
}
|
|
574
578
|
response_data = self.api_client.call_api(
|
|
575
579
|
*_param,
|
|
@@ -578,7 +582,7 @@ class UserListApi:
|
|
|
578
582
|
return response_data.response
|
|
579
583
|
|
|
580
584
|
|
|
581
|
-
def
|
|
585
|
+
def _get_favoriters_serialize(
|
|
582
586
|
self,
|
|
583
587
|
path_query_id,
|
|
584
588
|
variables,
|
|
@@ -658,7 +662,7 @@ class UserListApi:
|
|
|
658
662
|
|
|
659
663
|
return self.api_client.param_serialize(
|
|
660
664
|
method='GET',
|
|
661
|
-
resource_path='/graphql/{pathQueryId}/
|
|
665
|
+
resource_path='/graphql/{pathQueryId}/Favoriters',
|
|
662
666
|
path_params=_path_params,
|
|
663
667
|
query_params=_query_params,
|
|
664
668
|
header_params=_header_params,
|
|
@@ -675,7 +679,7 @@ class UserListApi:
|
|
|
675
679
|
|
|
676
680
|
|
|
677
681
|
@validate_call
|
|
678
|
-
def
|
|
682
|
+
def get_followers(
|
|
679
683
|
self,
|
|
680
684
|
path_query_id: StrictStr,
|
|
681
685
|
variables: StrictStr,
|
|
@@ -693,9 +697,9 @@ class UserListApi:
|
|
|
693
697
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
694
698
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
695
699
|
) -> FollowResponse:
|
|
696
|
-
"""
|
|
700
|
+
"""get_followers
|
|
697
701
|
|
|
698
|
-
get
|
|
702
|
+
get user list of followers
|
|
699
703
|
|
|
700
704
|
:param path_query_id: (required)
|
|
701
705
|
:type path_query_id: str
|
|
@@ -725,7 +729,7 @@ class UserListApi:
|
|
|
725
729
|
:return: Returns the result object.
|
|
726
730
|
""" # noqa: E501
|
|
727
731
|
|
|
728
|
-
_param = self.
|
|
732
|
+
_param = self._get_followers_serialize(
|
|
729
733
|
path_query_id=path_query_id,
|
|
730
734
|
variables=variables,
|
|
731
735
|
features=features,
|
|
@@ -750,7 +754,7 @@ class UserListApi:
|
|
|
750
754
|
|
|
751
755
|
|
|
752
756
|
@validate_call
|
|
753
|
-
def
|
|
757
|
+
def get_followers_with_http_info(
|
|
754
758
|
self,
|
|
755
759
|
path_query_id: StrictStr,
|
|
756
760
|
variables: StrictStr,
|
|
@@ -768,9 +772,9 @@ class UserListApi:
|
|
|
768
772
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
769
773
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
770
774
|
) -> ApiResponse[FollowResponse]:
|
|
771
|
-
"""
|
|
775
|
+
"""get_followers
|
|
772
776
|
|
|
773
|
-
get
|
|
777
|
+
get user list of followers
|
|
774
778
|
|
|
775
779
|
:param path_query_id: (required)
|
|
776
780
|
:type path_query_id: str
|
|
@@ -800,7 +804,7 @@ class UserListApi:
|
|
|
800
804
|
:return: Returns the result object.
|
|
801
805
|
""" # noqa: E501
|
|
802
806
|
|
|
803
|
-
_param = self.
|
|
807
|
+
_param = self._get_followers_serialize(
|
|
804
808
|
path_query_id=path_query_id,
|
|
805
809
|
variables=variables,
|
|
806
810
|
features=features,
|
|
@@ -825,7 +829,7 @@ class UserListApi:
|
|
|
825
829
|
|
|
826
830
|
|
|
827
831
|
@validate_call
|
|
828
|
-
def
|
|
832
|
+
def get_followers_without_preload_content(
|
|
829
833
|
self,
|
|
830
834
|
path_query_id: StrictStr,
|
|
831
835
|
variables: StrictStr,
|
|
@@ -843,9 +847,9 @@ class UserListApi:
|
|
|
843
847
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
844
848
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
845
849
|
) -> RESTResponseType:
|
|
846
|
-
"""
|
|
850
|
+
"""get_followers
|
|
847
851
|
|
|
848
|
-
get
|
|
852
|
+
get user list of followers
|
|
849
853
|
|
|
850
854
|
:param path_query_id: (required)
|
|
851
855
|
:type path_query_id: str
|
|
@@ -875,7 +879,7 @@ class UserListApi:
|
|
|
875
879
|
:return: Returns the result object.
|
|
876
880
|
""" # noqa: E501
|
|
877
881
|
|
|
878
|
-
_param = self.
|
|
882
|
+
_param = self._get_followers_serialize(
|
|
879
883
|
path_query_id=path_query_id,
|
|
880
884
|
variables=variables,
|
|
881
885
|
features=features,
|
|
@@ -895,7 +899,7 @@ class UserListApi:
|
|
|
895
899
|
return response_data.response
|
|
896
900
|
|
|
897
901
|
|
|
898
|
-
def
|
|
902
|
+
def _get_followers_serialize(
|
|
899
903
|
self,
|
|
900
904
|
path_query_id,
|
|
901
905
|
variables,
|
|
@@ -975,7 +979,7 @@ class UserListApi:
|
|
|
975
979
|
|
|
976
980
|
return self.api_client.param_serialize(
|
|
977
981
|
method='GET',
|
|
978
|
-
resource_path='/graphql/{pathQueryId}/
|
|
982
|
+
resource_path='/graphql/{pathQueryId}/Followers',
|
|
979
983
|
path_params=_path_params,
|
|
980
984
|
query_params=_query_params,
|
|
981
985
|
header_params=_header_params,
|
|
@@ -992,7 +996,7 @@ class UserListApi:
|
|
|
992
996
|
|
|
993
997
|
|
|
994
998
|
@validate_call
|
|
995
|
-
def
|
|
999
|
+
def get_followers_you_know(
|
|
996
1000
|
self,
|
|
997
1001
|
path_query_id: StrictStr,
|
|
998
1002
|
variables: StrictStr,
|
|
@@ -1010,9 +1014,9 @@ class UserListApi:
|
|
|
1010
1014
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1011
1015
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1012
1016
|
) -> FollowResponse:
|
|
1013
|
-
"""
|
|
1017
|
+
"""get_followers_you_know
|
|
1014
1018
|
|
|
1015
|
-
get
|
|
1019
|
+
get followers you know
|
|
1016
1020
|
|
|
1017
1021
|
:param path_query_id: (required)
|
|
1018
1022
|
:type path_query_id: str
|
|
@@ -1042,7 +1046,7 @@ class UserListApi:
|
|
|
1042
1046
|
:return: Returns the result object.
|
|
1043
1047
|
""" # noqa: E501
|
|
1044
1048
|
|
|
1045
|
-
_param = self.
|
|
1049
|
+
_param = self._get_followers_you_know_serialize(
|
|
1046
1050
|
path_query_id=path_query_id,
|
|
1047
1051
|
variables=variables,
|
|
1048
1052
|
features=features,
|
|
@@ -1067,7 +1071,7 @@ class UserListApi:
|
|
|
1067
1071
|
|
|
1068
1072
|
|
|
1069
1073
|
@validate_call
|
|
1070
|
-
def
|
|
1074
|
+
def get_followers_you_know_with_http_info(
|
|
1071
1075
|
self,
|
|
1072
1076
|
path_query_id: StrictStr,
|
|
1073
1077
|
variables: StrictStr,
|
|
@@ -1085,9 +1089,9 @@ class UserListApi:
|
|
|
1085
1089
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1086
1090
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1087
1091
|
) -> ApiResponse[FollowResponse]:
|
|
1088
|
-
"""
|
|
1092
|
+
"""get_followers_you_know
|
|
1089
1093
|
|
|
1090
|
-
get
|
|
1094
|
+
get followers you know
|
|
1091
1095
|
|
|
1092
1096
|
:param path_query_id: (required)
|
|
1093
1097
|
:type path_query_id: str
|
|
@@ -1117,7 +1121,7 @@ class UserListApi:
|
|
|
1117
1121
|
:return: Returns the result object.
|
|
1118
1122
|
""" # noqa: E501
|
|
1119
1123
|
|
|
1120
|
-
_param = self.
|
|
1124
|
+
_param = self._get_followers_you_know_serialize(
|
|
1121
1125
|
path_query_id=path_query_id,
|
|
1122
1126
|
variables=variables,
|
|
1123
1127
|
features=features,
|
|
@@ -1142,7 +1146,7 @@ class UserListApi:
|
|
|
1142
1146
|
|
|
1143
1147
|
|
|
1144
1148
|
@validate_call
|
|
1145
|
-
def
|
|
1149
|
+
def get_followers_you_know_without_preload_content(
|
|
1146
1150
|
self,
|
|
1147
1151
|
path_query_id: StrictStr,
|
|
1148
1152
|
variables: StrictStr,
|
|
@@ -1160,9 +1164,9 @@ class UserListApi:
|
|
|
1160
1164
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1161
1165
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1162
1166
|
) -> RESTResponseType:
|
|
1163
|
-
"""
|
|
1167
|
+
"""get_followers_you_know
|
|
1164
1168
|
|
|
1165
|
-
get
|
|
1169
|
+
get followers you know
|
|
1166
1170
|
|
|
1167
1171
|
:param path_query_id: (required)
|
|
1168
1172
|
:type path_query_id: str
|
|
@@ -1192,7 +1196,7 @@ class UserListApi:
|
|
|
1192
1196
|
:return: Returns the result object.
|
|
1193
1197
|
""" # noqa: E501
|
|
1194
1198
|
|
|
1195
|
-
_param = self.
|
|
1199
|
+
_param = self._get_followers_you_know_serialize(
|
|
1196
1200
|
path_query_id=path_query_id,
|
|
1197
1201
|
variables=variables,
|
|
1198
1202
|
features=features,
|
|
@@ -1212,7 +1216,7 @@ class UserListApi:
|
|
|
1212
1216
|
return response_data.response
|
|
1213
1217
|
|
|
1214
1218
|
|
|
1215
|
-
def
|
|
1219
|
+
def _get_followers_you_know_serialize(
|
|
1216
1220
|
self,
|
|
1217
1221
|
path_query_id,
|
|
1218
1222
|
variables,
|
|
@@ -1292,7 +1296,2226 @@ class UserListApi:
|
|
|
1292
1296
|
|
|
1293
1297
|
return self.api_client.param_serialize(
|
|
1294
1298
|
method='GET',
|
|
1295
|
-
resource_path='/graphql/{pathQueryId}/
|
|
1299
|
+
resource_path='/graphql/{pathQueryId}/FollowersYouKnow',
|
|
1300
|
+
path_params=_path_params,
|
|
1301
|
+
query_params=_query_params,
|
|
1302
|
+
header_params=_header_params,
|
|
1303
|
+
body=_body_params,
|
|
1304
|
+
post_params=_form_params,
|
|
1305
|
+
files=_files,
|
|
1306
|
+
auth_settings=_auth_settings,
|
|
1307
|
+
collection_formats=_collection_formats,
|
|
1308
|
+
_host=_host,
|
|
1309
|
+
_request_auth=_request_auth
|
|
1310
|
+
)
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
@validate_call
|
|
1316
|
+
def get_following(
|
|
1317
|
+
self,
|
|
1318
|
+
path_query_id: StrictStr,
|
|
1319
|
+
variables: StrictStr,
|
|
1320
|
+
features: StrictStr,
|
|
1321
|
+
_request_timeout: Union[
|
|
1322
|
+
None,
|
|
1323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1324
|
+
Tuple[
|
|
1325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1327
|
+
]
|
|
1328
|
+
] = None,
|
|
1329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1330
|
+
_content_type: Optional[StrictStr] = None,
|
|
1331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1333
|
+
) -> FollowResponse:
|
|
1334
|
+
"""get_following
|
|
1335
|
+
|
|
1336
|
+
get user list of following
|
|
1337
|
+
|
|
1338
|
+
:param path_query_id: (required)
|
|
1339
|
+
:type path_query_id: str
|
|
1340
|
+
:param variables: (required)
|
|
1341
|
+
:type variables: str
|
|
1342
|
+
:param features: (required)
|
|
1343
|
+
:type features: str
|
|
1344
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1345
|
+
number provided, it will be total request
|
|
1346
|
+
timeout. It can also be a pair (tuple) of
|
|
1347
|
+
(connection, read) timeouts.
|
|
1348
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1349
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1350
|
+
request; this effectively ignores the
|
|
1351
|
+
authentication in the spec for a single request.
|
|
1352
|
+
:type _request_auth: dict, optional
|
|
1353
|
+
:param _content_type: force content-type for the request.
|
|
1354
|
+
:type _content_type: str, Optional
|
|
1355
|
+
:param _headers: set to override the headers for a single
|
|
1356
|
+
request; this effectively ignores the headers
|
|
1357
|
+
in the spec for a single request.
|
|
1358
|
+
:type _headers: dict, optional
|
|
1359
|
+
:param _host_index: set to override the host_index for a single
|
|
1360
|
+
request; this effectively ignores the host_index
|
|
1361
|
+
in the spec for a single request.
|
|
1362
|
+
:type _host_index: int, optional
|
|
1363
|
+
:return: Returns the result object.
|
|
1364
|
+
""" # noqa: E501
|
|
1365
|
+
|
|
1366
|
+
_param = self._get_following_serialize(
|
|
1367
|
+
path_query_id=path_query_id,
|
|
1368
|
+
variables=variables,
|
|
1369
|
+
features=features,
|
|
1370
|
+
_request_auth=_request_auth,
|
|
1371
|
+
_content_type=_content_type,
|
|
1372
|
+
_headers=_headers,
|
|
1373
|
+
_host_index=_host_index
|
|
1374
|
+
)
|
|
1375
|
+
|
|
1376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1377
|
+
'200': "FollowResponse",
|
|
1378
|
+
}
|
|
1379
|
+
response_data = self.api_client.call_api(
|
|
1380
|
+
*_param,
|
|
1381
|
+
_request_timeout=_request_timeout
|
|
1382
|
+
)
|
|
1383
|
+
response_data.read()
|
|
1384
|
+
return self.api_client.response_deserialize(
|
|
1385
|
+
response_data=response_data,
|
|
1386
|
+
response_types_map=_response_types_map,
|
|
1387
|
+
).data
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
@validate_call
|
|
1391
|
+
def get_following_with_http_info(
|
|
1392
|
+
self,
|
|
1393
|
+
path_query_id: StrictStr,
|
|
1394
|
+
variables: StrictStr,
|
|
1395
|
+
features: StrictStr,
|
|
1396
|
+
_request_timeout: Union[
|
|
1397
|
+
None,
|
|
1398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1399
|
+
Tuple[
|
|
1400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1401
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1402
|
+
]
|
|
1403
|
+
] = None,
|
|
1404
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1405
|
+
_content_type: Optional[StrictStr] = None,
|
|
1406
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1407
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1408
|
+
) -> ApiResponse[FollowResponse]:
|
|
1409
|
+
"""get_following
|
|
1410
|
+
|
|
1411
|
+
get user list of following
|
|
1412
|
+
|
|
1413
|
+
:param path_query_id: (required)
|
|
1414
|
+
:type path_query_id: str
|
|
1415
|
+
:param variables: (required)
|
|
1416
|
+
:type variables: str
|
|
1417
|
+
:param features: (required)
|
|
1418
|
+
:type features: str
|
|
1419
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1420
|
+
number provided, it will be total request
|
|
1421
|
+
timeout. It can also be a pair (tuple) of
|
|
1422
|
+
(connection, read) timeouts.
|
|
1423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1425
|
+
request; this effectively ignores the
|
|
1426
|
+
authentication in the spec for a single request.
|
|
1427
|
+
:type _request_auth: dict, optional
|
|
1428
|
+
:param _content_type: force content-type for the request.
|
|
1429
|
+
:type _content_type: str, Optional
|
|
1430
|
+
:param _headers: set to override the headers for a single
|
|
1431
|
+
request; this effectively ignores the headers
|
|
1432
|
+
in the spec for a single request.
|
|
1433
|
+
:type _headers: dict, optional
|
|
1434
|
+
:param _host_index: set to override the host_index for a single
|
|
1435
|
+
request; this effectively ignores the host_index
|
|
1436
|
+
in the spec for a single request.
|
|
1437
|
+
:type _host_index: int, optional
|
|
1438
|
+
:return: Returns the result object.
|
|
1439
|
+
""" # noqa: E501
|
|
1440
|
+
|
|
1441
|
+
_param = self._get_following_serialize(
|
|
1442
|
+
path_query_id=path_query_id,
|
|
1443
|
+
variables=variables,
|
|
1444
|
+
features=features,
|
|
1445
|
+
_request_auth=_request_auth,
|
|
1446
|
+
_content_type=_content_type,
|
|
1447
|
+
_headers=_headers,
|
|
1448
|
+
_host_index=_host_index
|
|
1449
|
+
)
|
|
1450
|
+
|
|
1451
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1452
|
+
'200': "FollowResponse",
|
|
1453
|
+
}
|
|
1454
|
+
response_data = self.api_client.call_api(
|
|
1455
|
+
*_param,
|
|
1456
|
+
_request_timeout=_request_timeout
|
|
1457
|
+
)
|
|
1458
|
+
response_data.read()
|
|
1459
|
+
return self.api_client.response_deserialize(
|
|
1460
|
+
response_data=response_data,
|
|
1461
|
+
response_types_map=_response_types_map,
|
|
1462
|
+
)
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
@validate_call
|
|
1466
|
+
def get_following_without_preload_content(
|
|
1467
|
+
self,
|
|
1468
|
+
path_query_id: StrictStr,
|
|
1469
|
+
variables: StrictStr,
|
|
1470
|
+
features: StrictStr,
|
|
1471
|
+
_request_timeout: Union[
|
|
1472
|
+
None,
|
|
1473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1474
|
+
Tuple[
|
|
1475
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1476
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1477
|
+
]
|
|
1478
|
+
] = None,
|
|
1479
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1480
|
+
_content_type: Optional[StrictStr] = None,
|
|
1481
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1482
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1483
|
+
) -> RESTResponseType:
|
|
1484
|
+
"""get_following
|
|
1485
|
+
|
|
1486
|
+
get user list of following
|
|
1487
|
+
|
|
1488
|
+
:param path_query_id: (required)
|
|
1489
|
+
:type path_query_id: str
|
|
1490
|
+
:param variables: (required)
|
|
1491
|
+
:type variables: str
|
|
1492
|
+
:param features: (required)
|
|
1493
|
+
:type features: str
|
|
1494
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1495
|
+
number provided, it will be total request
|
|
1496
|
+
timeout. It can also be a pair (tuple) of
|
|
1497
|
+
(connection, read) timeouts.
|
|
1498
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1499
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1500
|
+
request; this effectively ignores the
|
|
1501
|
+
authentication in the spec for a single request.
|
|
1502
|
+
:type _request_auth: dict, optional
|
|
1503
|
+
:param _content_type: force content-type for the request.
|
|
1504
|
+
:type _content_type: str, Optional
|
|
1505
|
+
:param _headers: set to override the headers for a single
|
|
1506
|
+
request; this effectively ignores the headers
|
|
1507
|
+
in the spec for a single request.
|
|
1508
|
+
:type _headers: dict, optional
|
|
1509
|
+
:param _host_index: set to override the host_index for a single
|
|
1510
|
+
request; this effectively ignores the host_index
|
|
1511
|
+
in the spec for a single request.
|
|
1512
|
+
:type _host_index: int, optional
|
|
1513
|
+
:return: Returns the result object.
|
|
1514
|
+
""" # noqa: E501
|
|
1515
|
+
|
|
1516
|
+
_param = self._get_following_serialize(
|
|
1517
|
+
path_query_id=path_query_id,
|
|
1518
|
+
variables=variables,
|
|
1519
|
+
features=features,
|
|
1520
|
+
_request_auth=_request_auth,
|
|
1521
|
+
_content_type=_content_type,
|
|
1522
|
+
_headers=_headers,
|
|
1523
|
+
_host_index=_host_index
|
|
1524
|
+
)
|
|
1525
|
+
|
|
1526
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1527
|
+
'200': "FollowResponse",
|
|
1528
|
+
}
|
|
1529
|
+
response_data = self.api_client.call_api(
|
|
1530
|
+
*_param,
|
|
1531
|
+
_request_timeout=_request_timeout
|
|
1532
|
+
)
|
|
1533
|
+
return response_data.response
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
def _get_following_serialize(
|
|
1537
|
+
self,
|
|
1538
|
+
path_query_id,
|
|
1539
|
+
variables,
|
|
1540
|
+
features,
|
|
1541
|
+
_request_auth,
|
|
1542
|
+
_content_type,
|
|
1543
|
+
_headers,
|
|
1544
|
+
_host_index,
|
|
1545
|
+
) -> RequestSerialized:
|
|
1546
|
+
|
|
1547
|
+
_host = None
|
|
1548
|
+
|
|
1549
|
+
_collection_formats: Dict[str, str] = {
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
_path_params: Dict[str, str] = {}
|
|
1553
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1554
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1555
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1556
|
+
_files: Dict[
|
|
1557
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1558
|
+
] = {}
|
|
1559
|
+
_body_params: Optional[bytes] = None
|
|
1560
|
+
|
|
1561
|
+
# process the path parameters
|
|
1562
|
+
if path_query_id is not None:
|
|
1563
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1564
|
+
# process the query parameters
|
|
1565
|
+
if variables is not None:
|
|
1566
|
+
|
|
1567
|
+
_query_params.append(('variables', variables))
|
|
1568
|
+
|
|
1569
|
+
if features is not None:
|
|
1570
|
+
|
|
1571
|
+
_query_params.append(('features', features))
|
|
1572
|
+
|
|
1573
|
+
# process the header parameters
|
|
1574
|
+
# process the form parameters
|
|
1575
|
+
# process the body parameter
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
# set the HTTP header `Accept`
|
|
1579
|
+
if 'Accept' not in _header_params:
|
|
1580
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1581
|
+
[
|
|
1582
|
+
'application/json'
|
|
1583
|
+
]
|
|
1584
|
+
)
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
# authentication setting
|
|
1588
|
+
_auth_settings: List[str] = [
|
|
1589
|
+
'Accept',
|
|
1590
|
+
'ClientLanguage',
|
|
1591
|
+
'Priority',
|
|
1592
|
+
'Referer',
|
|
1593
|
+
'SecFetchDest',
|
|
1594
|
+
'SecChUaPlatform',
|
|
1595
|
+
'SecFetchMode',
|
|
1596
|
+
'CsrfToken',
|
|
1597
|
+
'ClientUuid',
|
|
1598
|
+
'BearerAuth',
|
|
1599
|
+
'GuestToken',
|
|
1600
|
+
'SecChUa',
|
|
1601
|
+
'CookieGt0',
|
|
1602
|
+
'ClientTransactionId',
|
|
1603
|
+
'ActiveUser',
|
|
1604
|
+
'CookieCt0',
|
|
1605
|
+
'UserAgent',
|
|
1606
|
+
'AcceptLanguage',
|
|
1607
|
+
'SecFetchSite',
|
|
1608
|
+
'AuthType',
|
|
1609
|
+
'CookieAuthToken',
|
|
1610
|
+
'SecChUaMobile',
|
|
1611
|
+
'AcceptEncoding'
|
|
1612
|
+
]
|
|
1613
|
+
|
|
1614
|
+
return self.api_client.param_serialize(
|
|
1615
|
+
method='GET',
|
|
1616
|
+
resource_path='/graphql/{pathQueryId}/Following',
|
|
1617
|
+
path_params=_path_params,
|
|
1618
|
+
query_params=_query_params,
|
|
1619
|
+
header_params=_header_params,
|
|
1620
|
+
body=_body_params,
|
|
1621
|
+
post_params=_form_params,
|
|
1622
|
+
files=_files,
|
|
1623
|
+
auth_settings=_auth_settings,
|
|
1624
|
+
collection_formats=_collection_formats,
|
|
1625
|
+
_host=_host,
|
|
1626
|
+
_request_auth=_request_auth
|
|
1627
|
+
)
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
@validate_call
|
|
1633
|
+
def get_list_by_rest_id(
|
|
1634
|
+
self,
|
|
1635
|
+
path_query_id: StrictStr,
|
|
1636
|
+
variables: StrictStr,
|
|
1637
|
+
features: StrictStr,
|
|
1638
|
+
_request_timeout: Union[
|
|
1639
|
+
None,
|
|
1640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1641
|
+
Tuple[
|
|
1642
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1643
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1644
|
+
]
|
|
1645
|
+
] = None,
|
|
1646
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1647
|
+
_content_type: Optional[StrictStr] = None,
|
|
1648
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1649
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1650
|
+
) -> ListResponse:
|
|
1651
|
+
"""get_list_by_rest_id
|
|
1652
|
+
|
|
1653
|
+
get list
|
|
1654
|
+
|
|
1655
|
+
:param path_query_id: (required)
|
|
1656
|
+
:type path_query_id: str
|
|
1657
|
+
:param variables: (required)
|
|
1658
|
+
:type variables: str
|
|
1659
|
+
:param features: (required)
|
|
1660
|
+
:type features: str
|
|
1661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1662
|
+
number provided, it will be total request
|
|
1663
|
+
timeout. It can also be a pair (tuple) of
|
|
1664
|
+
(connection, read) timeouts.
|
|
1665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1667
|
+
request; this effectively ignores the
|
|
1668
|
+
authentication in the spec for a single request.
|
|
1669
|
+
:type _request_auth: dict, optional
|
|
1670
|
+
:param _content_type: force content-type for the request.
|
|
1671
|
+
:type _content_type: str, Optional
|
|
1672
|
+
:param _headers: set to override the headers for a single
|
|
1673
|
+
request; this effectively ignores the headers
|
|
1674
|
+
in the spec for a single request.
|
|
1675
|
+
:type _headers: dict, optional
|
|
1676
|
+
:param _host_index: set to override the host_index for a single
|
|
1677
|
+
request; this effectively ignores the host_index
|
|
1678
|
+
in the spec for a single request.
|
|
1679
|
+
:type _host_index: int, optional
|
|
1680
|
+
:return: Returns the result object.
|
|
1681
|
+
""" # noqa: E501
|
|
1682
|
+
|
|
1683
|
+
_param = self._get_list_by_rest_id_serialize(
|
|
1684
|
+
path_query_id=path_query_id,
|
|
1685
|
+
variables=variables,
|
|
1686
|
+
features=features,
|
|
1687
|
+
_request_auth=_request_auth,
|
|
1688
|
+
_content_type=_content_type,
|
|
1689
|
+
_headers=_headers,
|
|
1690
|
+
_host_index=_host_index
|
|
1691
|
+
)
|
|
1692
|
+
|
|
1693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1694
|
+
'200': "ListResponse",
|
|
1695
|
+
}
|
|
1696
|
+
response_data = self.api_client.call_api(
|
|
1697
|
+
*_param,
|
|
1698
|
+
_request_timeout=_request_timeout
|
|
1699
|
+
)
|
|
1700
|
+
response_data.read()
|
|
1701
|
+
return self.api_client.response_deserialize(
|
|
1702
|
+
response_data=response_data,
|
|
1703
|
+
response_types_map=_response_types_map,
|
|
1704
|
+
).data
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
@validate_call
|
|
1708
|
+
def get_list_by_rest_id_with_http_info(
|
|
1709
|
+
self,
|
|
1710
|
+
path_query_id: StrictStr,
|
|
1711
|
+
variables: StrictStr,
|
|
1712
|
+
features: StrictStr,
|
|
1713
|
+
_request_timeout: Union[
|
|
1714
|
+
None,
|
|
1715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1716
|
+
Tuple[
|
|
1717
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1718
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1719
|
+
]
|
|
1720
|
+
] = None,
|
|
1721
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1722
|
+
_content_type: Optional[StrictStr] = None,
|
|
1723
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1724
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1725
|
+
) -> ApiResponse[ListResponse]:
|
|
1726
|
+
"""get_list_by_rest_id
|
|
1727
|
+
|
|
1728
|
+
get list
|
|
1729
|
+
|
|
1730
|
+
:param path_query_id: (required)
|
|
1731
|
+
:type path_query_id: str
|
|
1732
|
+
:param variables: (required)
|
|
1733
|
+
:type variables: str
|
|
1734
|
+
:param features: (required)
|
|
1735
|
+
:type features: str
|
|
1736
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1737
|
+
number provided, it will be total request
|
|
1738
|
+
timeout. It can also be a pair (tuple) of
|
|
1739
|
+
(connection, read) timeouts.
|
|
1740
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1741
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1742
|
+
request; this effectively ignores the
|
|
1743
|
+
authentication in the spec for a single request.
|
|
1744
|
+
:type _request_auth: dict, optional
|
|
1745
|
+
:param _content_type: force content-type for the request.
|
|
1746
|
+
:type _content_type: str, Optional
|
|
1747
|
+
:param _headers: set to override the headers for a single
|
|
1748
|
+
request; this effectively ignores the headers
|
|
1749
|
+
in the spec for a single request.
|
|
1750
|
+
:type _headers: dict, optional
|
|
1751
|
+
:param _host_index: set to override the host_index for a single
|
|
1752
|
+
request; this effectively ignores the host_index
|
|
1753
|
+
in the spec for a single request.
|
|
1754
|
+
:type _host_index: int, optional
|
|
1755
|
+
:return: Returns the result object.
|
|
1756
|
+
""" # noqa: E501
|
|
1757
|
+
|
|
1758
|
+
_param = self._get_list_by_rest_id_serialize(
|
|
1759
|
+
path_query_id=path_query_id,
|
|
1760
|
+
variables=variables,
|
|
1761
|
+
features=features,
|
|
1762
|
+
_request_auth=_request_auth,
|
|
1763
|
+
_content_type=_content_type,
|
|
1764
|
+
_headers=_headers,
|
|
1765
|
+
_host_index=_host_index
|
|
1766
|
+
)
|
|
1767
|
+
|
|
1768
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1769
|
+
'200': "ListResponse",
|
|
1770
|
+
}
|
|
1771
|
+
response_data = self.api_client.call_api(
|
|
1772
|
+
*_param,
|
|
1773
|
+
_request_timeout=_request_timeout
|
|
1774
|
+
)
|
|
1775
|
+
response_data.read()
|
|
1776
|
+
return self.api_client.response_deserialize(
|
|
1777
|
+
response_data=response_data,
|
|
1778
|
+
response_types_map=_response_types_map,
|
|
1779
|
+
)
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
@validate_call
|
|
1783
|
+
def get_list_by_rest_id_without_preload_content(
|
|
1784
|
+
self,
|
|
1785
|
+
path_query_id: StrictStr,
|
|
1786
|
+
variables: StrictStr,
|
|
1787
|
+
features: StrictStr,
|
|
1788
|
+
_request_timeout: Union[
|
|
1789
|
+
None,
|
|
1790
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1791
|
+
Tuple[
|
|
1792
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1793
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1794
|
+
]
|
|
1795
|
+
] = None,
|
|
1796
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1797
|
+
_content_type: Optional[StrictStr] = None,
|
|
1798
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1799
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1800
|
+
) -> RESTResponseType:
|
|
1801
|
+
"""get_list_by_rest_id
|
|
1802
|
+
|
|
1803
|
+
get list
|
|
1804
|
+
|
|
1805
|
+
:param path_query_id: (required)
|
|
1806
|
+
:type path_query_id: str
|
|
1807
|
+
:param variables: (required)
|
|
1808
|
+
:type variables: str
|
|
1809
|
+
:param features: (required)
|
|
1810
|
+
:type features: str
|
|
1811
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1812
|
+
number provided, it will be total request
|
|
1813
|
+
timeout. It can also be a pair (tuple) of
|
|
1814
|
+
(connection, read) timeouts.
|
|
1815
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1816
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1817
|
+
request; this effectively ignores the
|
|
1818
|
+
authentication in the spec for a single request.
|
|
1819
|
+
:type _request_auth: dict, optional
|
|
1820
|
+
:param _content_type: force content-type for the request.
|
|
1821
|
+
:type _content_type: str, Optional
|
|
1822
|
+
:param _headers: set to override the headers for a single
|
|
1823
|
+
request; this effectively ignores the headers
|
|
1824
|
+
in the spec for a single request.
|
|
1825
|
+
:type _headers: dict, optional
|
|
1826
|
+
:param _host_index: set to override the host_index for a single
|
|
1827
|
+
request; this effectively ignores the host_index
|
|
1828
|
+
in the spec for a single request.
|
|
1829
|
+
:type _host_index: int, optional
|
|
1830
|
+
:return: Returns the result object.
|
|
1831
|
+
""" # noqa: E501
|
|
1832
|
+
|
|
1833
|
+
_param = self._get_list_by_rest_id_serialize(
|
|
1834
|
+
path_query_id=path_query_id,
|
|
1835
|
+
variables=variables,
|
|
1836
|
+
features=features,
|
|
1837
|
+
_request_auth=_request_auth,
|
|
1838
|
+
_content_type=_content_type,
|
|
1839
|
+
_headers=_headers,
|
|
1840
|
+
_host_index=_host_index
|
|
1841
|
+
)
|
|
1842
|
+
|
|
1843
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1844
|
+
'200': "ListResponse",
|
|
1845
|
+
}
|
|
1846
|
+
response_data = self.api_client.call_api(
|
|
1847
|
+
*_param,
|
|
1848
|
+
_request_timeout=_request_timeout
|
|
1849
|
+
)
|
|
1850
|
+
return response_data.response
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
def _get_list_by_rest_id_serialize(
|
|
1854
|
+
self,
|
|
1855
|
+
path_query_id,
|
|
1856
|
+
variables,
|
|
1857
|
+
features,
|
|
1858
|
+
_request_auth,
|
|
1859
|
+
_content_type,
|
|
1860
|
+
_headers,
|
|
1861
|
+
_host_index,
|
|
1862
|
+
) -> RequestSerialized:
|
|
1863
|
+
|
|
1864
|
+
_host = None
|
|
1865
|
+
|
|
1866
|
+
_collection_formats: Dict[str, str] = {
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
_path_params: Dict[str, str] = {}
|
|
1870
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1871
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1872
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1873
|
+
_files: Dict[
|
|
1874
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1875
|
+
] = {}
|
|
1876
|
+
_body_params: Optional[bytes] = None
|
|
1877
|
+
|
|
1878
|
+
# process the path parameters
|
|
1879
|
+
if path_query_id is not None:
|
|
1880
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1881
|
+
# process the query parameters
|
|
1882
|
+
if variables is not None:
|
|
1883
|
+
|
|
1884
|
+
_query_params.append(('variables', variables))
|
|
1885
|
+
|
|
1886
|
+
if features is not None:
|
|
1887
|
+
|
|
1888
|
+
_query_params.append(('features', features))
|
|
1889
|
+
|
|
1890
|
+
# process the header parameters
|
|
1891
|
+
# process the form parameters
|
|
1892
|
+
# process the body parameter
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
# set the HTTP header `Accept`
|
|
1896
|
+
if 'Accept' not in _header_params:
|
|
1897
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1898
|
+
[
|
|
1899
|
+
'application/json'
|
|
1900
|
+
]
|
|
1901
|
+
)
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
# authentication setting
|
|
1905
|
+
_auth_settings: List[str] = [
|
|
1906
|
+
'Accept',
|
|
1907
|
+
'ClientLanguage',
|
|
1908
|
+
'Priority',
|
|
1909
|
+
'Referer',
|
|
1910
|
+
'SecFetchDest',
|
|
1911
|
+
'SecChUaPlatform',
|
|
1912
|
+
'SecFetchMode',
|
|
1913
|
+
'CsrfToken',
|
|
1914
|
+
'ClientUuid',
|
|
1915
|
+
'BearerAuth',
|
|
1916
|
+
'GuestToken',
|
|
1917
|
+
'SecChUa',
|
|
1918
|
+
'CookieGt0',
|
|
1919
|
+
'ClientTransactionId',
|
|
1920
|
+
'ActiveUser',
|
|
1921
|
+
'CookieCt0',
|
|
1922
|
+
'UserAgent',
|
|
1923
|
+
'AcceptLanguage',
|
|
1924
|
+
'SecFetchSite',
|
|
1925
|
+
'AuthType',
|
|
1926
|
+
'CookieAuthToken',
|
|
1927
|
+
'SecChUaMobile',
|
|
1928
|
+
'AcceptEncoding'
|
|
1929
|
+
]
|
|
1930
|
+
|
|
1931
|
+
return self.api_client.param_serialize(
|
|
1932
|
+
method='GET',
|
|
1933
|
+
resource_path='/graphql/{pathQueryId}/ListByRestId',
|
|
1934
|
+
path_params=_path_params,
|
|
1935
|
+
query_params=_query_params,
|
|
1936
|
+
header_params=_header_params,
|
|
1937
|
+
body=_body_params,
|
|
1938
|
+
post_params=_form_params,
|
|
1939
|
+
files=_files,
|
|
1940
|
+
auth_settings=_auth_settings,
|
|
1941
|
+
collection_formats=_collection_formats,
|
|
1942
|
+
_host=_host,
|
|
1943
|
+
_request_auth=_request_auth
|
|
1944
|
+
)
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
@validate_call
|
|
1950
|
+
def get_list_creation_recommended_users(
|
|
1951
|
+
self,
|
|
1952
|
+
path_query_id: StrictStr,
|
|
1953
|
+
variables: StrictStr,
|
|
1954
|
+
features: StrictStr,
|
|
1955
|
+
_request_timeout: Union[
|
|
1956
|
+
None,
|
|
1957
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1958
|
+
Tuple[
|
|
1959
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1960
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1961
|
+
]
|
|
1962
|
+
] = None,
|
|
1963
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1964
|
+
_content_type: Optional[StrictStr] = None,
|
|
1965
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1966
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1967
|
+
) -> ListRecommendedUsersResponse:
|
|
1968
|
+
"""get_list_creation_recommended_users
|
|
1969
|
+
|
|
1970
|
+
get recommended members while creating a list
|
|
1971
|
+
|
|
1972
|
+
:param path_query_id: (required)
|
|
1973
|
+
:type path_query_id: str
|
|
1974
|
+
:param variables: (required)
|
|
1975
|
+
:type variables: str
|
|
1976
|
+
:param features: (required)
|
|
1977
|
+
:type features: str
|
|
1978
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1979
|
+
number provided, it will be total request
|
|
1980
|
+
timeout. It can also be a pair (tuple) of
|
|
1981
|
+
(connection, read) timeouts.
|
|
1982
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1983
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1984
|
+
request; this effectively ignores the
|
|
1985
|
+
authentication in the spec for a single request.
|
|
1986
|
+
:type _request_auth: dict, optional
|
|
1987
|
+
:param _content_type: force content-type for the request.
|
|
1988
|
+
:type _content_type: str, Optional
|
|
1989
|
+
:param _headers: set to override the headers for a single
|
|
1990
|
+
request; this effectively ignores the headers
|
|
1991
|
+
in the spec for a single request.
|
|
1992
|
+
:type _headers: dict, optional
|
|
1993
|
+
:param _host_index: set to override the host_index for a single
|
|
1994
|
+
request; this effectively ignores the host_index
|
|
1995
|
+
in the spec for a single request.
|
|
1996
|
+
:type _host_index: int, optional
|
|
1997
|
+
:return: Returns the result object.
|
|
1998
|
+
""" # noqa: E501
|
|
1999
|
+
|
|
2000
|
+
_param = self._get_list_creation_recommended_users_serialize(
|
|
2001
|
+
path_query_id=path_query_id,
|
|
2002
|
+
variables=variables,
|
|
2003
|
+
features=features,
|
|
2004
|
+
_request_auth=_request_auth,
|
|
2005
|
+
_content_type=_content_type,
|
|
2006
|
+
_headers=_headers,
|
|
2007
|
+
_host_index=_host_index
|
|
2008
|
+
)
|
|
2009
|
+
|
|
2010
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2011
|
+
'200': "ListRecommendedUsersResponse",
|
|
2012
|
+
}
|
|
2013
|
+
response_data = self.api_client.call_api(
|
|
2014
|
+
*_param,
|
|
2015
|
+
_request_timeout=_request_timeout
|
|
2016
|
+
)
|
|
2017
|
+
response_data.read()
|
|
2018
|
+
return self.api_client.response_deserialize(
|
|
2019
|
+
response_data=response_data,
|
|
2020
|
+
response_types_map=_response_types_map,
|
|
2021
|
+
).data
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
@validate_call
|
|
2025
|
+
def get_list_creation_recommended_users_with_http_info(
|
|
2026
|
+
self,
|
|
2027
|
+
path_query_id: StrictStr,
|
|
2028
|
+
variables: StrictStr,
|
|
2029
|
+
features: StrictStr,
|
|
2030
|
+
_request_timeout: Union[
|
|
2031
|
+
None,
|
|
2032
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2033
|
+
Tuple[
|
|
2034
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2035
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2036
|
+
]
|
|
2037
|
+
] = None,
|
|
2038
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2039
|
+
_content_type: Optional[StrictStr] = None,
|
|
2040
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2041
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2042
|
+
) -> ApiResponse[ListRecommendedUsersResponse]:
|
|
2043
|
+
"""get_list_creation_recommended_users
|
|
2044
|
+
|
|
2045
|
+
get recommended members while creating a list
|
|
2046
|
+
|
|
2047
|
+
:param path_query_id: (required)
|
|
2048
|
+
:type path_query_id: str
|
|
2049
|
+
:param variables: (required)
|
|
2050
|
+
:type variables: str
|
|
2051
|
+
:param features: (required)
|
|
2052
|
+
:type features: str
|
|
2053
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2054
|
+
number provided, it will be total request
|
|
2055
|
+
timeout. It can also be a pair (tuple) of
|
|
2056
|
+
(connection, read) timeouts.
|
|
2057
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2058
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2059
|
+
request; this effectively ignores the
|
|
2060
|
+
authentication in the spec for a single request.
|
|
2061
|
+
:type _request_auth: dict, optional
|
|
2062
|
+
:param _content_type: force content-type for the request.
|
|
2063
|
+
:type _content_type: str, Optional
|
|
2064
|
+
:param _headers: set to override the headers for a single
|
|
2065
|
+
request; this effectively ignores the headers
|
|
2066
|
+
in the spec for a single request.
|
|
2067
|
+
:type _headers: dict, optional
|
|
2068
|
+
:param _host_index: set to override the host_index for a single
|
|
2069
|
+
request; this effectively ignores the host_index
|
|
2070
|
+
in the spec for a single request.
|
|
2071
|
+
:type _host_index: int, optional
|
|
2072
|
+
:return: Returns the result object.
|
|
2073
|
+
""" # noqa: E501
|
|
2074
|
+
|
|
2075
|
+
_param = self._get_list_creation_recommended_users_serialize(
|
|
2076
|
+
path_query_id=path_query_id,
|
|
2077
|
+
variables=variables,
|
|
2078
|
+
features=features,
|
|
2079
|
+
_request_auth=_request_auth,
|
|
2080
|
+
_content_type=_content_type,
|
|
2081
|
+
_headers=_headers,
|
|
2082
|
+
_host_index=_host_index
|
|
2083
|
+
)
|
|
2084
|
+
|
|
2085
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2086
|
+
'200': "ListRecommendedUsersResponse",
|
|
2087
|
+
}
|
|
2088
|
+
response_data = self.api_client.call_api(
|
|
2089
|
+
*_param,
|
|
2090
|
+
_request_timeout=_request_timeout
|
|
2091
|
+
)
|
|
2092
|
+
response_data.read()
|
|
2093
|
+
return self.api_client.response_deserialize(
|
|
2094
|
+
response_data=response_data,
|
|
2095
|
+
response_types_map=_response_types_map,
|
|
2096
|
+
)
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
@validate_call
|
|
2100
|
+
def get_list_creation_recommended_users_without_preload_content(
|
|
2101
|
+
self,
|
|
2102
|
+
path_query_id: StrictStr,
|
|
2103
|
+
variables: StrictStr,
|
|
2104
|
+
features: StrictStr,
|
|
2105
|
+
_request_timeout: Union[
|
|
2106
|
+
None,
|
|
2107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2108
|
+
Tuple[
|
|
2109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2111
|
+
]
|
|
2112
|
+
] = None,
|
|
2113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2114
|
+
_content_type: Optional[StrictStr] = None,
|
|
2115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2117
|
+
) -> RESTResponseType:
|
|
2118
|
+
"""get_list_creation_recommended_users
|
|
2119
|
+
|
|
2120
|
+
get recommended members while creating a list
|
|
2121
|
+
|
|
2122
|
+
:param path_query_id: (required)
|
|
2123
|
+
:type path_query_id: str
|
|
2124
|
+
:param variables: (required)
|
|
2125
|
+
:type variables: str
|
|
2126
|
+
:param features: (required)
|
|
2127
|
+
:type features: str
|
|
2128
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2129
|
+
number provided, it will be total request
|
|
2130
|
+
timeout. It can also be a pair (tuple) of
|
|
2131
|
+
(connection, read) timeouts.
|
|
2132
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2133
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2134
|
+
request; this effectively ignores the
|
|
2135
|
+
authentication in the spec for a single request.
|
|
2136
|
+
:type _request_auth: dict, optional
|
|
2137
|
+
:param _content_type: force content-type for the request.
|
|
2138
|
+
:type _content_type: str, Optional
|
|
2139
|
+
:param _headers: set to override the headers for a single
|
|
2140
|
+
request; this effectively ignores the headers
|
|
2141
|
+
in the spec for a single request.
|
|
2142
|
+
:type _headers: dict, optional
|
|
2143
|
+
:param _host_index: set to override the host_index for a single
|
|
2144
|
+
request; this effectively ignores the host_index
|
|
2145
|
+
in the spec for a single request.
|
|
2146
|
+
:type _host_index: int, optional
|
|
2147
|
+
:return: Returns the result object.
|
|
2148
|
+
""" # noqa: E501
|
|
2149
|
+
|
|
2150
|
+
_param = self._get_list_creation_recommended_users_serialize(
|
|
2151
|
+
path_query_id=path_query_id,
|
|
2152
|
+
variables=variables,
|
|
2153
|
+
features=features,
|
|
2154
|
+
_request_auth=_request_auth,
|
|
2155
|
+
_content_type=_content_type,
|
|
2156
|
+
_headers=_headers,
|
|
2157
|
+
_host_index=_host_index
|
|
2158
|
+
)
|
|
2159
|
+
|
|
2160
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2161
|
+
'200': "ListRecommendedUsersResponse",
|
|
2162
|
+
}
|
|
2163
|
+
response_data = self.api_client.call_api(
|
|
2164
|
+
*_param,
|
|
2165
|
+
_request_timeout=_request_timeout
|
|
2166
|
+
)
|
|
2167
|
+
return response_data.response
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
def _get_list_creation_recommended_users_serialize(
|
|
2171
|
+
self,
|
|
2172
|
+
path_query_id,
|
|
2173
|
+
variables,
|
|
2174
|
+
features,
|
|
2175
|
+
_request_auth,
|
|
2176
|
+
_content_type,
|
|
2177
|
+
_headers,
|
|
2178
|
+
_host_index,
|
|
2179
|
+
) -> RequestSerialized:
|
|
2180
|
+
|
|
2181
|
+
_host = None
|
|
2182
|
+
|
|
2183
|
+
_collection_formats: Dict[str, str] = {
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
_path_params: Dict[str, str] = {}
|
|
2187
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2188
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2189
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2190
|
+
_files: Dict[
|
|
2191
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2192
|
+
] = {}
|
|
2193
|
+
_body_params: Optional[bytes] = None
|
|
2194
|
+
|
|
2195
|
+
# process the path parameters
|
|
2196
|
+
if path_query_id is not None:
|
|
2197
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2198
|
+
# process the query parameters
|
|
2199
|
+
if variables is not None:
|
|
2200
|
+
|
|
2201
|
+
_query_params.append(('variables', variables))
|
|
2202
|
+
|
|
2203
|
+
if features is not None:
|
|
2204
|
+
|
|
2205
|
+
_query_params.append(('features', features))
|
|
2206
|
+
|
|
2207
|
+
# process the header parameters
|
|
2208
|
+
# process the form parameters
|
|
2209
|
+
# process the body parameter
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
# set the HTTP header `Accept`
|
|
2213
|
+
if 'Accept' not in _header_params:
|
|
2214
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2215
|
+
[
|
|
2216
|
+
'application/json'
|
|
2217
|
+
]
|
|
2218
|
+
)
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
# authentication setting
|
|
2222
|
+
_auth_settings: List[str] = [
|
|
2223
|
+
'Accept',
|
|
2224
|
+
'ClientLanguage',
|
|
2225
|
+
'Priority',
|
|
2226
|
+
'Referer',
|
|
2227
|
+
'SecFetchDest',
|
|
2228
|
+
'SecChUaPlatform',
|
|
2229
|
+
'SecFetchMode',
|
|
2230
|
+
'CsrfToken',
|
|
2231
|
+
'ClientUuid',
|
|
2232
|
+
'BearerAuth',
|
|
2233
|
+
'GuestToken',
|
|
2234
|
+
'SecChUa',
|
|
2235
|
+
'CookieGt0',
|
|
2236
|
+
'ClientTransactionId',
|
|
2237
|
+
'ActiveUser',
|
|
2238
|
+
'CookieCt0',
|
|
2239
|
+
'UserAgent',
|
|
2240
|
+
'AcceptLanguage',
|
|
2241
|
+
'SecFetchSite',
|
|
2242
|
+
'AuthType',
|
|
2243
|
+
'CookieAuthToken',
|
|
2244
|
+
'SecChUaMobile',
|
|
2245
|
+
'AcceptEncoding'
|
|
2246
|
+
]
|
|
2247
|
+
|
|
2248
|
+
return self.api_client.param_serialize(
|
|
2249
|
+
method='GET',
|
|
2250
|
+
resource_path='/graphql/{pathQueryId}/ListCreationRecommendedUsers',
|
|
2251
|
+
path_params=_path_params,
|
|
2252
|
+
query_params=_query_params,
|
|
2253
|
+
header_params=_header_params,
|
|
2254
|
+
body=_body_params,
|
|
2255
|
+
post_params=_form_params,
|
|
2256
|
+
files=_files,
|
|
2257
|
+
auth_settings=_auth_settings,
|
|
2258
|
+
collection_formats=_collection_formats,
|
|
2259
|
+
_host=_host,
|
|
2260
|
+
_request_auth=_request_auth
|
|
2261
|
+
)
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
@validate_call
|
|
2267
|
+
def get_list_edit_recommended_users(
|
|
2268
|
+
self,
|
|
2269
|
+
path_query_id: StrictStr,
|
|
2270
|
+
variables: StrictStr,
|
|
2271
|
+
features: StrictStr,
|
|
2272
|
+
_request_timeout: Union[
|
|
2273
|
+
None,
|
|
2274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2275
|
+
Tuple[
|
|
2276
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2277
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2278
|
+
]
|
|
2279
|
+
] = None,
|
|
2280
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2281
|
+
_content_type: Optional[StrictStr] = None,
|
|
2282
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2283
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2284
|
+
) -> ListRecommendedUsersResponse:
|
|
2285
|
+
"""get_list_edit_recommended_users
|
|
2286
|
+
|
|
2287
|
+
get recommended members while editing a list
|
|
2288
|
+
|
|
2289
|
+
:param path_query_id: (required)
|
|
2290
|
+
:type path_query_id: str
|
|
2291
|
+
:param variables: (required)
|
|
2292
|
+
:type variables: str
|
|
2293
|
+
:param features: (required)
|
|
2294
|
+
:type features: str
|
|
2295
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2296
|
+
number provided, it will be total request
|
|
2297
|
+
timeout. It can also be a pair (tuple) of
|
|
2298
|
+
(connection, read) timeouts.
|
|
2299
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2300
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2301
|
+
request; this effectively ignores the
|
|
2302
|
+
authentication in the spec for a single request.
|
|
2303
|
+
:type _request_auth: dict, optional
|
|
2304
|
+
:param _content_type: force content-type for the request.
|
|
2305
|
+
:type _content_type: str, Optional
|
|
2306
|
+
:param _headers: set to override the headers for a single
|
|
2307
|
+
request; this effectively ignores the headers
|
|
2308
|
+
in the spec for a single request.
|
|
2309
|
+
:type _headers: dict, optional
|
|
2310
|
+
:param _host_index: set to override the host_index for a single
|
|
2311
|
+
request; this effectively ignores the host_index
|
|
2312
|
+
in the spec for a single request.
|
|
2313
|
+
:type _host_index: int, optional
|
|
2314
|
+
:return: Returns the result object.
|
|
2315
|
+
""" # noqa: E501
|
|
2316
|
+
|
|
2317
|
+
_param = self._get_list_edit_recommended_users_serialize(
|
|
2318
|
+
path_query_id=path_query_id,
|
|
2319
|
+
variables=variables,
|
|
2320
|
+
features=features,
|
|
2321
|
+
_request_auth=_request_auth,
|
|
2322
|
+
_content_type=_content_type,
|
|
2323
|
+
_headers=_headers,
|
|
2324
|
+
_host_index=_host_index
|
|
2325
|
+
)
|
|
2326
|
+
|
|
2327
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2328
|
+
'200': "ListRecommendedUsersResponse",
|
|
2329
|
+
}
|
|
2330
|
+
response_data = self.api_client.call_api(
|
|
2331
|
+
*_param,
|
|
2332
|
+
_request_timeout=_request_timeout
|
|
2333
|
+
)
|
|
2334
|
+
response_data.read()
|
|
2335
|
+
return self.api_client.response_deserialize(
|
|
2336
|
+
response_data=response_data,
|
|
2337
|
+
response_types_map=_response_types_map,
|
|
2338
|
+
).data
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
@validate_call
|
|
2342
|
+
def get_list_edit_recommended_users_with_http_info(
|
|
2343
|
+
self,
|
|
2344
|
+
path_query_id: StrictStr,
|
|
2345
|
+
variables: StrictStr,
|
|
2346
|
+
features: StrictStr,
|
|
2347
|
+
_request_timeout: Union[
|
|
2348
|
+
None,
|
|
2349
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2350
|
+
Tuple[
|
|
2351
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2352
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2353
|
+
]
|
|
2354
|
+
] = None,
|
|
2355
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2356
|
+
_content_type: Optional[StrictStr] = None,
|
|
2357
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2358
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2359
|
+
) -> ApiResponse[ListRecommendedUsersResponse]:
|
|
2360
|
+
"""get_list_edit_recommended_users
|
|
2361
|
+
|
|
2362
|
+
get recommended members while editing a list
|
|
2363
|
+
|
|
2364
|
+
:param path_query_id: (required)
|
|
2365
|
+
:type path_query_id: str
|
|
2366
|
+
:param variables: (required)
|
|
2367
|
+
:type variables: str
|
|
2368
|
+
:param features: (required)
|
|
2369
|
+
:type features: str
|
|
2370
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2371
|
+
number provided, it will be total request
|
|
2372
|
+
timeout. It can also be a pair (tuple) of
|
|
2373
|
+
(connection, read) timeouts.
|
|
2374
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2375
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2376
|
+
request; this effectively ignores the
|
|
2377
|
+
authentication in the spec for a single request.
|
|
2378
|
+
:type _request_auth: dict, optional
|
|
2379
|
+
:param _content_type: force content-type for the request.
|
|
2380
|
+
:type _content_type: str, Optional
|
|
2381
|
+
:param _headers: set to override the headers for a single
|
|
2382
|
+
request; this effectively ignores the headers
|
|
2383
|
+
in the spec for a single request.
|
|
2384
|
+
:type _headers: dict, optional
|
|
2385
|
+
:param _host_index: set to override the host_index for a single
|
|
2386
|
+
request; this effectively ignores the host_index
|
|
2387
|
+
in the spec for a single request.
|
|
2388
|
+
:type _host_index: int, optional
|
|
2389
|
+
:return: Returns the result object.
|
|
2390
|
+
""" # noqa: E501
|
|
2391
|
+
|
|
2392
|
+
_param = self._get_list_edit_recommended_users_serialize(
|
|
2393
|
+
path_query_id=path_query_id,
|
|
2394
|
+
variables=variables,
|
|
2395
|
+
features=features,
|
|
2396
|
+
_request_auth=_request_auth,
|
|
2397
|
+
_content_type=_content_type,
|
|
2398
|
+
_headers=_headers,
|
|
2399
|
+
_host_index=_host_index
|
|
2400
|
+
)
|
|
2401
|
+
|
|
2402
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2403
|
+
'200': "ListRecommendedUsersResponse",
|
|
2404
|
+
}
|
|
2405
|
+
response_data = self.api_client.call_api(
|
|
2406
|
+
*_param,
|
|
2407
|
+
_request_timeout=_request_timeout
|
|
2408
|
+
)
|
|
2409
|
+
response_data.read()
|
|
2410
|
+
return self.api_client.response_deserialize(
|
|
2411
|
+
response_data=response_data,
|
|
2412
|
+
response_types_map=_response_types_map,
|
|
2413
|
+
)
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
@validate_call
|
|
2417
|
+
def get_list_edit_recommended_users_without_preload_content(
|
|
2418
|
+
self,
|
|
2419
|
+
path_query_id: StrictStr,
|
|
2420
|
+
variables: StrictStr,
|
|
2421
|
+
features: StrictStr,
|
|
2422
|
+
_request_timeout: Union[
|
|
2423
|
+
None,
|
|
2424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2425
|
+
Tuple[
|
|
2426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2427
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2428
|
+
]
|
|
2429
|
+
] = None,
|
|
2430
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2431
|
+
_content_type: Optional[StrictStr] = None,
|
|
2432
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2433
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2434
|
+
) -> RESTResponseType:
|
|
2435
|
+
"""get_list_edit_recommended_users
|
|
2436
|
+
|
|
2437
|
+
get recommended members while editing a list
|
|
2438
|
+
|
|
2439
|
+
:param path_query_id: (required)
|
|
2440
|
+
:type path_query_id: str
|
|
2441
|
+
:param variables: (required)
|
|
2442
|
+
:type variables: str
|
|
2443
|
+
:param features: (required)
|
|
2444
|
+
:type features: str
|
|
2445
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2446
|
+
number provided, it will be total request
|
|
2447
|
+
timeout. It can also be a pair (tuple) of
|
|
2448
|
+
(connection, read) timeouts.
|
|
2449
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2450
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2451
|
+
request; this effectively ignores the
|
|
2452
|
+
authentication in the spec for a single request.
|
|
2453
|
+
:type _request_auth: dict, optional
|
|
2454
|
+
:param _content_type: force content-type for the request.
|
|
2455
|
+
:type _content_type: str, Optional
|
|
2456
|
+
:param _headers: set to override the headers for a single
|
|
2457
|
+
request; this effectively ignores the headers
|
|
2458
|
+
in the spec for a single request.
|
|
2459
|
+
:type _headers: dict, optional
|
|
2460
|
+
:param _host_index: set to override the host_index for a single
|
|
2461
|
+
request; this effectively ignores the host_index
|
|
2462
|
+
in the spec for a single request.
|
|
2463
|
+
:type _host_index: int, optional
|
|
2464
|
+
:return: Returns the result object.
|
|
2465
|
+
""" # noqa: E501
|
|
2466
|
+
|
|
2467
|
+
_param = self._get_list_edit_recommended_users_serialize(
|
|
2468
|
+
path_query_id=path_query_id,
|
|
2469
|
+
variables=variables,
|
|
2470
|
+
features=features,
|
|
2471
|
+
_request_auth=_request_auth,
|
|
2472
|
+
_content_type=_content_type,
|
|
2473
|
+
_headers=_headers,
|
|
2474
|
+
_host_index=_host_index
|
|
2475
|
+
)
|
|
2476
|
+
|
|
2477
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2478
|
+
'200': "ListRecommendedUsersResponse",
|
|
2479
|
+
}
|
|
2480
|
+
response_data = self.api_client.call_api(
|
|
2481
|
+
*_param,
|
|
2482
|
+
_request_timeout=_request_timeout
|
|
2483
|
+
)
|
|
2484
|
+
return response_data.response
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
def _get_list_edit_recommended_users_serialize(
|
|
2488
|
+
self,
|
|
2489
|
+
path_query_id,
|
|
2490
|
+
variables,
|
|
2491
|
+
features,
|
|
2492
|
+
_request_auth,
|
|
2493
|
+
_content_type,
|
|
2494
|
+
_headers,
|
|
2495
|
+
_host_index,
|
|
2496
|
+
) -> RequestSerialized:
|
|
2497
|
+
|
|
2498
|
+
_host = None
|
|
2499
|
+
|
|
2500
|
+
_collection_formats: Dict[str, str] = {
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
_path_params: Dict[str, str] = {}
|
|
2504
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2505
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2506
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2507
|
+
_files: Dict[
|
|
2508
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2509
|
+
] = {}
|
|
2510
|
+
_body_params: Optional[bytes] = None
|
|
2511
|
+
|
|
2512
|
+
# process the path parameters
|
|
2513
|
+
if path_query_id is not None:
|
|
2514
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2515
|
+
# process the query parameters
|
|
2516
|
+
if variables is not None:
|
|
2517
|
+
|
|
2518
|
+
_query_params.append(('variables', variables))
|
|
2519
|
+
|
|
2520
|
+
if features is not None:
|
|
2521
|
+
|
|
2522
|
+
_query_params.append(('features', features))
|
|
2523
|
+
|
|
2524
|
+
# process the header parameters
|
|
2525
|
+
# process the form parameters
|
|
2526
|
+
# process the body parameter
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
# set the HTTP header `Accept`
|
|
2530
|
+
if 'Accept' not in _header_params:
|
|
2531
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2532
|
+
[
|
|
2533
|
+
'application/json'
|
|
2534
|
+
]
|
|
2535
|
+
)
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
# authentication setting
|
|
2539
|
+
_auth_settings: List[str] = [
|
|
2540
|
+
'Accept',
|
|
2541
|
+
'ClientLanguage',
|
|
2542
|
+
'Priority',
|
|
2543
|
+
'Referer',
|
|
2544
|
+
'SecFetchDest',
|
|
2545
|
+
'SecChUaPlatform',
|
|
2546
|
+
'SecFetchMode',
|
|
2547
|
+
'CsrfToken',
|
|
2548
|
+
'ClientUuid',
|
|
2549
|
+
'BearerAuth',
|
|
2550
|
+
'GuestToken',
|
|
2551
|
+
'SecChUa',
|
|
2552
|
+
'CookieGt0',
|
|
2553
|
+
'ClientTransactionId',
|
|
2554
|
+
'ActiveUser',
|
|
2555
|
+
'CookieCt0',
|
|
2556
|
+
'UserAgent',
|
|
2557
|
+
'AcceptLanguage',
|
|
2558
|
+
'SecFetchSite',
|
|
2559
|
+
'AuthType',
|
|
2560
|
+
'CookieAuthToken',
|
|
2561
|
+
'SecChUaMobile',
|
|
2562
|
+
'AcceptEncoding'
|
|
2563
|
+
]
|
|
2564
|
+
|
|
2565
|
+
return self.api_client.param_serialize(
|
|
2566
|
+
method='GET',
|
|
2567
|
+
resource_path='/graphql/{pathQueryId}/ListEditRecommendedUsers',
|
|
2568
|
+
path_params=_path_params,
|
|
2569
|
+
query_params=_query_params,
|
|
2570
|
+
header_params=_header_params,
|
|
2571
|
+
body=_body_params,
|
|
2572
|
+
post_params=_form_params,
|
|
2573
|
+
files=_files,
|
|
2574
|
+
auth_settings=_auth_settings,
|
|
2575
|
+
collection_formats=_collection_formats,
|
|
2576
|
+
_host=_host,
|
|
2577
|
+
_request_auth=_request_auth
|
|
2578
|
+
)
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
@validate_call
|
|
2584
|
+
def get_list_members(
|
|
2585
|
+
self,
|
|
2586
|
+
path_query_id: StrictStr,
|
|
2587
|
+
variables: StrictStr,
|
|
2588
|
+
features: StrictStr,
|
|
2589
|
+
_request_timeout: Union[
|
|
2590
|
+
None,
|
|
2591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2592
|
+
Tuple[
|
|
2593
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2594
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2595
|
+
]
|
|
2596
|
+
] = None,
|
|
2597
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2598
|
+
_content_type: Optional[StrictStr] = None,
|
|
2599
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2600
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2601
|
+
) -> ListMembersResponse:
|
|
2602
|
+
"""get_list_members
|
|
2603
|
+
|
|
2604
|
+
get list members
|
|
2605
|
+
|
|
2606
|
+
:param path_query_id: (required)
|
|
2607
|
+
:type path_query_id: str
|
|
2608
|
+
:param variables: (required)
|
|
2609
|
+
:type variables: str
|
|
2610
|
+
:param features: (required)
|
|
2611
|
+
:type features: str
|
|
2612
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2613
|
+
number provided, it will be total request
|
|
2614
|
+
timeout. It can also be a pair (tuple) of
|
|
2615
|
+
(connection, read) timeouts.
|
|
2616
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2617
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2618
|
+
request; this effectively ignores the
|
|
2619
|
+
authentication in the spec for a single request.
|
|
2620
|
+
:type _request_auth: dict, optional
|
|
2621
|
+
:param _content_type: force content-type for the request.
|
|
2622
|
+
:type _content_type: str, Optional
|
|
2623
|
+
:param _headers: set to override the headers for a single
|
|
2624
|
+
request; this effectively ignores the headers
|
|
2625
|
+
in the spec for a single request.
|
|
2626
|
+
:type _headers: dict, optional
|
|
2627
|
+
:param _host_index: set to override the host_index for a single
|
|
2628
|
+
request; this effectively ignores the host_index
|
|
2629
|
+
in the spec for a single request.
|
|
2630
|
+
:type _host_index: int, optional
|
|
2631
|
+
:return: Returns the result object.
|
|
2632
|
+
""" # noqa: E501
|
|
2633
|
+
|
|
2634
|
+
_param = self._get_list_members_serialize(
|
|
2635
|
+
path_query_id=path_query_id,
|
|
2636
|
+
variables=variables,
|
|
2637
|
+
features=features,
|
|
2638
|
+
_request_auth=_request_auth,
|
|
2639
|
+
_content_type=_content_type,
|
|
2640
|
+
_headers=_headers,
|
|
2641
|
+
_host_index=_host_index
|
|
2642
|
+
)
|
|
2643
|
+
|
|
2644
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2645
|
+
'200': "ListMembersResponse",
|
|
2646
|
+
}
|
|
2647
|
+
response_data = self.api_client.call_api(
|
|
2648
|
+
*_param,
|
|
2649
|
+
_request_timeout=_request_timeout
|
|
2650
|
+
)
|
|
2651
|
+
response_data.read()
|
|
2652
|
+
return self.api_client.response_deserialize(
|
|
2653
|
+
response_data=response_data,
|
|
2654
|
+
response_types_map=_response_types_map,
|
|
2655
|
+
).data
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
@validate_call
|
|
2659
|
+
def get_list_members_with_http_info(
|
|
2660
|
+
self,
|
|
2661
|
+
path_query_id: StrictStr,
|
|
2662
|
+
variables: StrictStr,
|
|
2663
|
+
features: StrictStr,
|
|
2664
|
+
_request_timeout: Union[
|
|
2665
|
+
None,
|
|
2666
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2667
|
+
Tuple[
|
|
2668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2669
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2670
|
+
]
|
|
2671
|
+
] = None,
|
|
2672
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2673
|
+
_content_type: Optional[StrictStr] = None,
|
|
2674
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2675
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2676
|
+
) -> ApiResponse[ListMembersResponse]:
|
|
2677
|
+
"""get_list_members
|
|
2678
|
+
|
|
2679
|
+
get list members
|
|
2680
|
+
|
|
2681
|
+
:param path_query_id: (required)
|
|
2682
|
+
:type path_query_id: str
|
|
2683
|
+
:param variables: (required)
|
|
2684
|
+
:type variables: str
|
|
2685
|
+
:param features: (required)
|
|
2686
|
+
:type features: str
|
|
2687
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2688
|
+
number provided, it will be total request
|
|
2689
|
+
timeout. It can also be a pair (tuple) of
|
|
2690
|
+
(connection, read) timeouts.
|
|
2691
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2692
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2693
|
+
request; this effectively ignores the
|
|
2694
|
+
authentication in the spec for a single request.
|
|
2695
|
+
:type _request_auth: dict, optional
|
|
2696
|
+
:param _content_type: force content-type for the request.
|
|
2697
|
+
:type _content_type: str, Optional
|
|
2698
|
+
:param _headers: set to override the headers for a single
|
|
2699
|
+
request; this effectively ignores the headers
|
|
2700
|
+
in the spec for a single request.
|
|
2701
|
+
:type _headers: dict, optional
|
|
2702
|
+
:param _host_index: set to override the host_index for a single
|
|
2703
|
+
request; this effectively ignores the host_index
|
|
2704
|
+
in the spec for a single request.
|
|
2705
|
+
:type _host_index: int, optional
|
|
2706
|
+
:return: Returns the result object.
|
|
2707
|
+
""" # noqa: E501
|
|
2708
|
+
|
|
2709
|
+
_param = self._get_list_members_serialize(
|
|
2710
|
+
path_query_id=path_query_id,
|
|
2711
|
+
variables=variables,
|
|
2712
|
+
features=features,
|
|
2713
|
+
_request_auth=_request_auth,
|
|
2714
|
+
_content_type=_content_type,
|
|
2715
|
+
_headers=_headers,
|
|
2716
|
+
_host_index=_host_index
|
|
2717
|
+
)
|
|
2718
|
+
|
|
2719
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2720
|
+
'200': "ListMembersResponse",
|
|
2721
|
+
}
|
|
2722
|
+
response_data = self.api_client.call_api(
|
|
2723
|
+
*_param,
|
|
2724
|
+
_request_timeout=_request_timeout
|
|
2725
|
+
)
|
|
2726
|
+
response_data.read()
|
|
2727
|
+
return self.api_client.response_deserialize(
|
|
2728
|
+
response_data=response_data,
|
|
2729
|
+
response_types_map=_response_types_map,
|
|
2730
|
+
)
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
@validate_call
|
|
2734
|
+
def get_list_members_without_preload_content(
|
|
2735
|
+
self,
|
|
2736
|
+
path_query_id: StrictStr,
|
|
2737
|
+
variables: StrictStr,
|
|
2738
|
+
features: StrictStr,
|
|
2739
|
+
_request_timeout: Union[
|
|
2740
|
+
None,
|
|
2741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2742
|
+
Tuple[
|
|
2743
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2744
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2745
|
+
]
|
|
2746
|
+
] = None,
|
|
2747
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2748
|
+
_content_type: Optional[StrictStr] = None,
|
|
2749
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2750
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2751
|
+
) -> RESTResponseType:
|
|
2752
|
+
"""get_list_members
|
|
2753
|
+
|
|
2754
|
+
get list members
|
|
2755
|
+
|
|
2756
|
+
:param path_query_id: (required)
|
|
2757
|
+
:type path_query_id: str
|
|
2758
|
+
:param variables: (required)
|
|
2759
|
+
:type variables: str
|
|
2760
|
+
:param features: (required)
|
|
2761
|
+
:type features: str
|
|
2762
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2763
|
+
number provided, it will be total request
|
|
2764
|
+
timeout. It can also be a pair (tuple) of
|
|
2765
|
+
(connection, read) timeouts.
|
|
2766
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2767
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2768
|
+
request; this effectively ignores the
|
|
2769
|
+
authentication in the spec for a single request.
|
|
2770
|
+
:type _request_auth: dict, optional
|
|
2771
|
+
:param _content_type: force content-type for the request.
|
|
2772
|
+
:type _content_type: str, Optional
|
|
2773
|
+
:param _headers: set to override the headers for a single
|
|
2774
|
+
request; this effectively ignores the headers
|
|
2775
|
+
in the spec for a single request.
|
|
2776
|
+
:type _headers: dict, optional
|
|
2777
|
+
:param _host_index: set to override the host_index for a single
|
|
2778
|
+
request; this effectively ignores the host_index
|
|
2779
|
+
in the spec for a single request.
|
|
2780
|
+
:type _host_index: int, optional
|
|
2781
|
+
:return: Returns the result object.
|
|
2782
|
+
""" # noqa: E501
|
|
2783
|
+
|
|
2784
|
+
_param = self._get_list_members_serialize(
|
|
2785
|
+
path_query_id=path_query_id,
|
|
2786
|
+
variables=variables,
|
|
2787
|
+
features=features,
|
|
2788
|
+
_request_auth=_request_auth,
|
|
2789
|
+
_content_type=_content_type,
|
|
2790
|
+
_headers=_headers,
|
|
2791
|
+
_host_index=_host_index
|
|
2792
|
+
)
|
|
2793
|
+
|
|
2794
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2795
|
+
'200': "ListMembersResponse",
|
|
2796
|
+
}
|
|
2797
|
+
response_data = self.api_client.call_api(
|
|
2798
|
+
*_param,
|
|
2799
|
+
_request_timeout=_request_timeout
|
|
2800
|
+
)
|
|
2801
|
+
return response_data.response
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
def _get_list_members_serialize(
|
|
2805
|
+
self,
|
|
2806
|
+
path_query_id,
|
|
2807
|
+
variables,
|
|
2808
|
+
features,
|
|
2809
|
+
_request_auth,
|
|
2810
|
+
_content_type,
|
|
2811
|
+
_headers,
|
|
2812
|
+
_host_index,
|
|
2813
|
+
) -> RequestSerialized:
|
|
2814
|
+
|
|
2815
|
+
_host = None
|
|
2816
|
+
|
|
2817
|
+
_collection_formats: Dict[str, str] = {
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
_path_params: Dict[str, str] = {}
|
|
2821
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2822
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2823
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2824
|
+
_files: Dict[
|
|
2825
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2826
|
+
] = {}
|
|
2827
|
+
_body_params: Optional[bytes] = None
|
|
2828
|
+
|
|
2829
|
+
# process the path parameters
|
|
2830
|
+
if path_query_id is not None:
|
|
2831
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2832
|
+
# process the query parameters
|
|
2833
|
+
if variables is not None:
|
|
2834
|
+
|
|
2835
|
+
_query_params.append(('variables', variables))
|
|
2836
|
+
|
|
2837
|
+
if features is not None:
|
|
2838
|
+
|
|
2839
|
+
_query_params.append(('features', features))
|
|
2840
|
+
|
|
2841
|
+
# process the header parameters
|
|
2842
|
+
# process the form parameters
|
|
2843
|
+
# process the body parameter
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
# set the HTTP header `Accept`
|
|
2847
|
+
if 'Accept' not in _header_params:
|
|
2848
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2849
|
+
[
|
|
2850
|
+
'application/json'
|
|
2851
|
+
]
|
|
2852
|
+
)
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
# authentication setting
|
|
2856
|
+
_auth_settings: List[str] = [
|
|
2857
|
+
'Accept',
|
|
2858
|
+
'ClientLanguage',
|
|
2859
|
+
'Priority',
|
|
2860
|
+
'Referer',
|
|
2861
|
+
'SecFetchDest',
|
|
2862
|
+
'SecChUaPlatform',
|
|
2863
|
+
'SecFetchMode',
|
|
2864
|
+
'CsrfToken',
|
|
2865
|
+
'ClientUuid',
|
|
2866
|
+
'BearerAuth',
|
|
2867
|
+
'GuestToken',
|
|
2868
|
+
'SecChUa',
|
|
2869
|
+
'CookieGt0',
|
|
2870
|
+
'ClientTransactionId',
|
|
2871
|
+
'ActiveUser',
|
|
2872
|
+
'CookieCt0',
|
|
2873
|
+
'UserAgent',
|
|
2874
|
+
'AcceptLanguage',
|
|
2875
|
+
'SecFetchSite',
|
|
2876
|
+
'AuthType',
|
|
2877
|
+
'CookieAuthToken',
|
|
2878
|
+
'SecChUaMobile',
|
|
2879
|
+
'AcceptEncoding'
|
|
2880
|
+
]
|
|
2881
|
+
|
|
2882
|
+
return self.api_client.param_serialize(
|
|
2883
|
+
method='GET',
|
|
2884
|
+
resource_path='/graphql/{pathQueryId}/ListMembers',
|
|
2885
|
+
path_params=_path_params,
|
|
2886
|
+
query_params=_query_params,
|
|
2887
|
+
header_params=_header_params,
|
|
2888
|
+
body=_body_params,
|
|
2889
|
+
post_params=_form_params,
|
|
2890
|
+
files=_files,
|
|
2891
|
+
auth_settings=_auth_settings,
|
|
2892
|
+
collection_formats=_collection_formats,
|
|
2893
|
+
_host=_host,
|
|
2894
|
+
_request_auth=_request_auth
|
|
2895
|
+
)
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
@validate_call
|
|
2901
|
+
def get_list_ownerships(
|
|
2902
|
+
self,
|
|
2903
|
+
path_query_id: StrictStr,
|
|
2904
|
+
variables: StrictStr,
|
|
2905
|
+
features: StrictStr,
|
|
2906
|
+
_request_timeout: Union[
|
|
2907
|
+
None,
|
|
2908
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2909
|
+
Tuple[
|
|
2910
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2911
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2912
|
+
]
|
|
2913
|
+
] = None,
|
|
2914
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2915
|
+
_content_type: Optional[StrictStr] = None,
|
|
2916
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2917
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2918
|
+
) -> UserTweetsResponse:
|
|
2919
|
+
"""get_list_ownerships
|
|
2920
|
+
|
|
2921
|
+
get the lists a user owns (add/remove from Lists dialog)
|
|
2922
|
+
|
|
2923
|
+
:param path_query_id: (required)
|
|
2924
|
+
:type path_query_id: str
|
|
2925
|
+
:param variables: (required)
|
|
2926
|
+
:type variables: str
|
|
2927
|
+
:param features: (required)
|
|
2928
|
+
:type features: str
|
|
2929
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2930
|
+
number provided, it will be total request
|
|
2931
|
+
timeout. It can also be a pair (tuple) of
|
|
2932
|
+
(connection, read) timeouts.
|
|
2933
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2934
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2935
|
+
request; this effectively ignores the
|
|
2936
|
+
authentication in the spec for a single request.
|
|
2937
|
+
:type _request_auth: dict, optional
|
|
2938
|
+
:param _content_type: force content-type for the request.
|
|
2939
|
+
:type _content_type: str, Optional
|
|
2940
|
+
:param _headers: set to override the headers for a single
|
|
2941
|
+
request; this effectively ignores the headers
|
|
2942
|
+
in the spec for a single request.
|
|
2943
|
+
:type _headers: dict, optional
|
|
2944
|
+
:param _host_index: set to override the host_index for a single
|
|
2945
|
+
request; this effectively ignores the host_index
|
|
2946
|
+
in the spec for a single request.
|
|
2947
|
+
:type _host_index: int, optional
|
|
2948
|
+
:return: Returns the result object.
|
|
2949
|
+
""" # noqa: E501
|
|
2950
|
+
|
|
2951
|
+
_param = self._get_list_ownerships_serialize(
|
|
2952
|
+
path_query_id=path_query_id,
|
|
2953
|
+
variables=variables,
|
|
2954
|
+
features=features,
|
|
2955
|
+
_request_auth=_request_auth,
|
|
2956
|
+
_content_type=_content_type,
|
|
2957
|
+
_headers=_headers,
|
|
2958
|
+
_host_index=_host_index
|
|
2959
|
+
)
|
|
2960
|
+
|
|
2961
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2962
|
+
'200': "UserTweetsResponse",
|
|
2963
|
+
}
|
|
2964
|
+
response_data = self.api_client.call_api(
|
|
2965
|
+
*_param,
|
|
2966
|
+
_request_timeout=_request_timeout
|
|
2967
|
+
)
|
|
2968
|
+
response_data.read()
|
|
2969
|
+
return self.api_client.response_deserialize(
|
|
2970
|
+
response_data=response_data,
|
|
2971
|
+
response_types_map=_response_types_map,
|
|
2972
|
+
).data
|
|
2973
|
+
|
|
2974
|
+
|
|
2975
|
+
@validate_call
|
|
2976
|
+
def get_list_ownerships_with_http_info(
|
|
2977
|
+
self,
|
|
2978
|
+
path_query_id: StrictStr,
|
|
2979
|
+
variables: StrictStr,
|
|
2980
|
+
features: StrictStr,
|
|
2981
|
+
_request_timeout: Union[
|
|
2982
|
+
None,
|
|
2983
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2984
|
+
Tuple[
|
|
2985
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2986
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2987
|
+
]
|
|
2988
|
+
] = None,
|
|
2989
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2990
|
+
_content_type: Optional[StrictStr] = None,
|
|
2991
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2992
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2993
|
+
) -> ApiResponse[UserTweetsResponse]:
|
|
2994
|
+
"""get_list_ownerships
|
|
2995
|
+
|
|
2996
|
+
get the lists a user owns (add/remove from Lists dialog)
|
|
2997
|
+
|
|
2998
|
+
:param path_query_id: (required)
|
|
2999
|
+
:type path_query_id: str
|
|
3000
|
+
:param variables: (required)
|
|
3001
|
+
:type variables: str
|
|
3002
|
+
:param features: (required)
|
|
3003
|
+
:type features: str
|
|
3004
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3005
|
+
number provided, it will be total request
|
|
3006
|
+
timeout. It can also be a pair (tuple) of
|
|
3007
|
+
(connection, read) timeouts.
|
|
3008
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3009
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3010
|
+
request; this effectively ignores the
|
|
3011
|
+
authentication in the spec for a single request.
|
|
3012
|
+
:type _request_auth: dict, optional
|
|
3013
|
+
:param _content_type: force content-type for the request.
|
|
3014
|
+
:type _content_type: str, Optional
|
|
3015
|
+
:param _headers: set to override the headers for a single
|
|
3016
|
+
request; this effectively ignores the headers
|
|
3017
|
+
in the spec for a single request.
|
|
3018
|
+
:type _headers: dict, optional
|
|
3019
|
+
:param _host_index: set to override the host_index for a single
|
|
3020
|
+
request; this effectively ignores the host_index
|
|
3021
|
+
in the spec for a single request.
|
|
3022
|
+
:type _host_index: int, optional
|
|
3023
|
+
:return: Returns the result object.
|
|
3024
|
+
""" # noqa: E501
|
|
3025
|
+
|
|
3026
|
+
_param = self._get_list_ownerships_serialize(
|
|
3027
|
+
path_query_id=path_query_id,
|
|
3028
|
+
variables=variables,
|
|
3029
|
+
features=features,
|
|
3030
|
+
_request_auth=_request_auth,
|
|
3031
|
+
_content_type=_content_type,
|
|
3032
|
+
_headers=_headers,
|
|
3033
|
+
_host_index=_host_index
|
|
3034
|
+
)
|
|
3035
|
+
|
|
3036
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3037
|
+
'200': "UserTweetsResponse",
|
|
3038
|
+
}
|
|
3039
|
+
response_data = self.api_client.call_api(
|
|
3040
|
+
*_param,
|
|
3041
|
+
_request_timeout=_request_timeout
|
|
3042
|
+
)
|
|
3043
|
+
response_data.read()
|
|
3044
|
+
return self.api_client.response_deserialize(
|
|
3045
|
+
response_data=response_data,
|
|
3046
|
+
response_types_map=_response_types_map,
|
|
3047
|
+
)
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
@validate_call
|
|
3051
|
+
def get_list_ownerships_without_preload_content(
|
|
3052
|
+
self,
|
|
3053
|
+
path_query_id: StrictStr,
|
|
3054
|
+
variables: StrictStr,
|
|
3055
|
+
features: StrictStr,
|
|
3056
|
+
_request_timeout: Union[
|
|
3057
|
+
None,
|
|
3058
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3059
|
+
Tuple[
|
|
3060
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3061
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3062
|
+
]
|
|
3063
|
+
] = None,
|
|
3064
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3065
|
+
_content_type: Optional[StrictStr] = None,
|
|
3066
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3067
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3068
|
+
) -> RESTResponseType:
|
|
3069
|
+
"""get_list_ownerships
|
|
3070
|
+
|
|
3071
|
+
get the lists a user owns (add/remove from Lists dialog)
|
|
3072
|
+
|
|
3073
|
+
:param path_query_id: (required)
|
|
3074
|
+
:type path_query_id: str
|
|
3075
|
+
:param variables: (required)
|
|
3076
|
+
:type variables: str
|
|
3077
|
+
:param features: (required)
|
|
3078
|
+
:type features: str
|
|
3079
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3080
|
+
number provided, it will be total request
|
|
3081
|
+
timeout. It can also be a pair (tuple) of
|
|
3082
|
+
(connection, read) timeouts.
|
|
3083
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3084
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3085
|
+
request; this effectively ignores the
|
|
3086
|
+
authentication in the spec for a single request.
|
|
3087
|
+
:type _request_auth: dict, optional
|
|
3088
|
+
:param _content_type: force content-type for the request.
|
|
3089
|
+
:type _content_type: str, Optional
|
|
3090
|
+
:param _headers: set to override the headers for a single
|
|
3091
|
+
request; this effectively ignores the headers
|
|
3092
|
+
in the spec for a single request.
|
|
3093
|
+
:type _headers: dict, optional
|
|
3094
|
+
:param _host_index: set to override the host_index for a single
|
|
3095
|
+
request; this effectively ignores the host_index
|
|
3096
|
+
in the spec for a single request.
|
|
3097
|
+
:type _host_index: int, optional
|
|
3098
|
+
:return: Returns the result object.
|
|
3099
|
+
""" # noqa: E501
|
|
3100
|
+
|
|
3101
|
+
_param = self._get_list_ownerships_serialize(
|
|
3102
|
+
path_query_id=path_query_id,
|
|
3103
|
+
variables=variables,
|
|
3104
|
+
features=features,
|
|
3105
|
+
_request_auth=_request_auth,
|
|
3106
|
+
_content_type=_content_type,
|
|
3107
|
+
_headers=_headers,
|
|
3108
|
+
_host_index=_host_index
|
|
3109
|
+
)
|
|
3110
|
+
|
|
3111
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3112
|
+
'200': "UserTweetsResponse",
|
|
3113
|
+
}
|
|
3114
|
+
response_data = self.api_client.call_api(
|
|
3115
|
+
*_param,
|
|
3116
|
+
_request_timeout=_request_timeout
|
|
3117
|
+
)
|
|
3118
|
+
return response_data.response
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
def _get_list_ownerships_serialize(
|
|
3122
|
+
self,
|
|
3123
|
+
path_query_id,
|
|
3124
|
+
variables,
|
|
3125
|
+
features,
|
|
3126
|
+
_request_auth,
|
|
3127
|
+
_content_type,
|
|
3128
|
+
_headers,
|
|
3129
|
+
_host_index,
|
|
3130
|
+
) -> RequestSerialized:
|
|
3131
|
+
|
|
3132
|
+
_host = None
|
|
3133
|
+
|
|
3134
|
+
_collection_formats: Dict[str, str] = {
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
_path_params: Dict[str, str] = {}
|
|
3138
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3139
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3140
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3141
|
+
_files: Dict[
|
|
3142
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3143
|
+
] = {}
|
|
3144
|
+
_body_params: Optional[bytes] = None
|
|
3145
|
+
|
|
3146
|
+
# process the path parameters
|
|
3147
|
+
if path_query_id is not None:
|
|
3148
|
+
_path_params['pathQueryId'] = path_query_id
|
|
3149
|
+
# process the query parameters
|
|
3150
|
+
if variables is not None:
|
|
3151
|
+
|
|
3152
|
+
_query_params.append(('variables', variables))
|
|
3153
|
+
|
|
3154
|
+
if features is not None:
|
|
3155
|
+
|
|
3156
|
+
_query_params.append(('features', features))
|
|
3157
|
+
|
|
3158
|
+
# process the header parameters
|
|
3159
|
+
# process the form parameters
|
|
3160
|
+
# process the body parameter
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
# set the HTTP header `Accept`
|
|
3164
|
+
if 'Accept' not in _header_params:
|
|
3165
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3166
|
+
[
|
|
3167
|
+
'application/json'
|
|
3168
|
+
]
|
|
3169
|
+
)
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
# authentication setting
|
|
3173
|
+
_auth_settings: List[str] = [
|
|
3174
|
+
'Accept',
|
|
3175
|
+
'ClientLanguage',
|
|
3176
|
+
'Priority',
|
|
3177
|
+
'Referer',
|
|
3178
|
+
'SecFetchDest',
|
|
3179
|
+
'SecChUaPlatform',
|
|
3180
|
+
'SecFetchMode',
|
|
3181
|
+
'CsrfToken',
|
|
3182
|
+
'ClientUuid',
|
|
3183
|
+
'BearerAuth',
|
|
3184
|
+
'GuestToken',
|
|
3185
|
+
'SecChUa',
|
|
3186
|
+
'CookieGt0',
|
|
3187
|
+
'ClientTransactionId',
|
|
3188
|
+
'ActiveUser',
|
|
3189
|
+
'CookieCt0',
|
|
3190
|
+
'UserAgent',
|
|
3191
|
+
'AcceptLanguage',
|
|
3192
|
+
'SecFetchSite',
|
|
3193
|
+
'AuthType',
|
|
3194
|
+
'CookieAuthToken',
|
|
3195
|
+
'SecChUaMobile',
|
|
3196
|
+
'AcceptEncoding'
|
|
3197
|
+
]
|
|
3198
|
+
|
|
3199
|
+
return self.api_client.param_serialize(
|
|
3200
|
+
method='GET',
|
|
3201
|
+
resource_path='/graphql/{pathQueryId}/ListOwnerships',
|
|
3202
|
+
path_params=_path_params,
|
|
3203
|
+
query_params=_query_params,
|
|
3204
|
+
header_params=_header_params,
|
|
3205
|
+
body=_body_params,
|
|
3206
|
+
post_params=_form_params,
|
|
3207
|
+
files=_files,
|
|
3208
|
+
auth_settings=_auth_settings,
|
|
3209
|
+
collection_formats=_collection_formats,
|
|
3210
|
+
_host=_host,
|
|
3211
|
+
_request_auth=_request_auth
|
|
3212
|
+
)
|
|
3213
|
+
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
|
|
3217
|
+
@validate_call
|
|
3218
|
+
def get_list_subscribers(
|
|
3219
|
+
self,
|
|
3220
|
+
path_query_id: StrictStr,
|
|
3221
|
+
variables: StrictStr,
|
|
3222
|
+
features: StrictStr,
|
|
3223
|
+
_request_timeout: Union[
|
|
3224
|
+
None,
|
|
3225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3226
|
+
Tuple[
|
|
3227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3228
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3229
|
+
]
|
|
3230
|
+
] = None,
|
|
3231
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3232
|
+
_content_type: Optional[StrictStr] = None,
|
|
3233
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3234
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3235
|
+
) -> ListSubscribersResponse:
|
|
3236
|
+
"""get_list_subscribers
|
|
3237
|
+
|
|
3238
|
+
get list subscribers (followers)
|
|
3239
|
+
|
|
3240
|
+
:param path_query_id: (required)
|
|
3241
|
+
:type path_query_id: str
|
|
3242
|
+
:param variables: (required)
|
|
3243
|
+
:type variables: str
|
|
3244
|
+
:param features: (required)
|
|
3245
|
+
:type features: str
|
|
3246
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3247
|
+
number provided, it will be total request
|
|
3248
|
+
timeout. It can also be a pair (tuple) of
|
|
3249
|
+
(connection, read) timeouts.
|
|
3250
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3251
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3252
|
+
request; this effectively ignores the
|
|
3253
|
+
authentication in the spec for a single request.
|
|
3254
|
+
:type _request_auth: dict, optional
|
|
3255
|
+
:param _content_type: force content-type for the request.
|
|
3256
|
+
:type _content_type: str, Optional
|
|
3257
|
+
:param _headers: set to override the headers for a single
|
|
3258
|
+
request; this effectively ignores the headers
|
|
3259
|
+
in the spec for a single request.
|
|
3260
|
+
:type _headers: dict, optional
|
|
3261
|
+
:param _host_index: set to override the host_index for a single
|
|
3262
|
+
request; this effectively ignores the host_index
|
|
3263
|
+
in the spec for a single request.
|
|
3264
|
+
:type _host_index: int, optional
|
|
3265
|
+
:return: Returns the result object.
|
|
3266
|
+
""" # noqa: E501
|
|
3267
|
+
|
|
3268
|
+
_param = self._get_list_subscribers_serialize(
|
|
3269
|
+
path_query_id=path_query_id,
|
|
3270
|
+
variables=variables,
|
|
3271
|
+
features=features,
|
|
3272
|
+
_request_auth=_request_auth,
|
|
3273
|
+
_content_type=_content_type,
|
|
3274
|
+
_headers=_headers,
|
|
3275
|
+
_host_index=_host_index
|
|
3276
|
+
)
|
|
3277
|
+
|
|
3278
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3279
|
+
'200': "ListSubscribersResponse",
|
|
3280
|
+
}
|
|
3281
|
+
response_data = self.api_client.call_api(
|
|
3282
|
+
*_param,
|
|
3283
|
+
_request_timeout=_request_timeout
|
|
3284
|
+
)
|
|
3285
|
+
response_data.read()
|
|
3286
|
+
return self.api_client.response_deserialize(
|
|
3287
|
+
response_data=response_data,
|
|
3288
|
+
response_types_map=_response_types_map,
|
|
3289
|
+
).data
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
@validate_call
|
|
3293
|
+
def get_list_subscribers_with_http_info(
|
|
3294
|
+
self,
|
|
3295
|
+
path_query_id: StrictStr,
|
|
3296
|
+
variables: StrictStr,
|
|
3297
|
+
features: StrictStr,
|
|
3298
|
+
_request_timeout: Union[
|
|
3299
|
+
None,
|
|
3300
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3301
|
+
Tuple[
|
|
3302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3303
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3304
|
+
]
|
|
3305
|
+
] = None,
|
|
3306
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3307
|
+
_content_type: Optional[StrictStr] = None,
|
|
3308
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3309
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3310
|
+
) -> ApiResponse[ListSubscribersResponse]:
|
|
3311
|
+
"""get_list_subscribers
|
|
3312
|
+
|
|
3313
|
+
get list subscribers (followers)
|
|
3314
|
+
|
|
3315
|
+
:param path_query_id: (required)
|
|
3316
|
+
:type path_query_id: str
|
|
3317
|
+
:param variables: (required)
|
|
3318
|
+
:type variables: str
|
|
3319
|
+
:param features: (required)
|
|
3320
|
+
:type features: str
|
|
3321
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3322
|
+
number provided, it will be total request
|
|
3323
|
+
timeout. It can also be a pair (tuple) of
|
|
3324
|
+
(connection, read) timeouts.
|
|
3325
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3326
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3327
|
+
request; this effectively ignores the
|
|
3328
|
+
authentication in the spec for a single request.
|
|
3329
|
+
:type _request_auth: dict, optional
|
|
3330
|
+
:param _content_type: force content-type for the request.
|
|
3331
|
+
:type _content_type: str, Optional
|
|
3332
|
+
:param _headers: set to override the headers for a single
|
|
3333
|
+
request; this effectively ignores the headers
|
|
3334
|
+
in the spec for a single request.
|
|
3335
|
+
:type _headers: dict, optional
|
|
3336
|
+
:param _host_index: set to override the host_index for a single
|
|
3337
|
+
request; this effectively ignores the host_index
|
|
3338
|
+
in the spec for a single request.
|
|
3339
|
+
:type _host_index: int, optional
|
|
3340
|
+
:return: Returns the result object.
|
|
3341
|
+
""" # noqa: E501
|
|
3342
|
+
|
|
3343
|
+
_param = self._get_list_subscribers_serialize(
|
|
3344
|
+
path_query_id=path_query_id,
|
|
3345
|
+
variables=variables,
|
|
3346
|
+
features=features,
|
|
3347
|
+
_request_auth=_request_auth,
|
|
3348
|
+
_content_type=_content_type,
|
|
3349
|
+
_headers=_headers,
|
|
3350
|
+
_host_index=_host_index
|
|
3351
|
+
)
|
|
3352
|
+
|
|
3353
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3354
|
+
'200': "ListSubscribersResponse",
|
|
3355
|
+
}
|
|
3356
|
+
response_data = self.api_client.call_api(
|
|
3357
|
+
*_param,
|
|
3358
|
+
_request_timeout=_request_timeout
|
|
3359
|
+
)
|
|
3360
|
+
response_data.read()
|
|
3361
|
+
return self.api_client.response_deserialize(
|
|
3362
|
+
response_data=response_data,
|
|
3363
|
+
response_types_map=_response_types_map,
|
|
3364
|
+
)
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
@validate_call
|
|
3368
|
+
def get_list_subscribers_without_preload_content(
|
|
3369
|
+
self,
|
|
3370
|
+
path_query_id: StrictStr,
|
|
3371
|
+
variables: StrictStr,
|
|
3372
|
+
features: StrictStr,
|
|
3373
|
+
_request_timeout: Union[
|
|
3374
|
+
None,
|
|
3375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3376
|
+
Tuple[
|
|
3377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3378
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3379
|
+
]
|
|
3380
|
+
] = None,
|
|
3381
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3382
|
+
_content_type: Optional[StrictStr] = None,
|
|
3383
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3384
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3385
|
+
) -> RESTResponseType:
|
|
3386
|
+
"""get_list_subscribers
|
|
3387
|
+
|
|
3388
|
+
get list subscribers (followers)
|
|
3389
|
+
|
|
3390
|
+
:param path_query_id: (required)
|
|
3391
|
+
:type path_query_id: str
|
|
3392
|
+
:param variables: (required)
|
|
3393
|
+
:type variables: str
|
|
3394
|
+
:param features: (required)
|
|
3395
|
+
:type features: str
|
|
3396
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3397
|
+
number provided, it will be total request
|
|
3398
|
+
timeout. It can also be a pair (tuple) of
|
|
3399
|
+
(connection, read) timeouts.
|
|
3400
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3401
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3402
|
+
request; this effectively ignores the
|
|
3403
|
+
authentication in the spec for a single request.
|
|
3404
|
+
:type _request_auth: dict, optional
|
|
3405
|
+
:param _content_type: force content-type for the request.
|
|
3406
|
+
:type _content_type: str, Optional
|
|
3407
|
+
:param _headers: set to override the headers for a single
|
|
3408
|
+
request; this effectively ignores the headers
|
|
3409
|
+
in the spec for a single request.
|
|
3410
|
+
:type _headers: dict, optional
|
|
3411
|
+
:param _host_index: set to override the host_index for a single
|
|
3412
|
+
request; this effectively ignores the host_index
|
|
3413
|
+
in the spec for a single request.
|
|
3414
|
+
:type _host_index: int, optional
|
|
3415
|
+
:return: Returns the result object.
|
|
3416
|
+
""" # noqa: E501
|
|
3417
|
+
|
|
3418
|
+
_param = self._get_list_subscribers_serialize(
|
|
3419
|
+
path_query_id=path_query_id,
|
|
3420
|
+
variables=variables,
|
|
3421
|
+
features=features,
|
|
3422
|
+
_request_auth=_request_auth,
|
|
3423
|
+
_content_type=_content_type,
|
|
3424
|
+
_headers=_headers,
|
|
3425
|
+
_host_index=_host_index
|
|
3426
|
+
)
|
|
3427
|
+
|
|
3428
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3429
|
+
'200': "ListSubscribersResponse",
|
|
3430
|
+
}
|
|
3431
|
+
response_data = self.api_client.call_api(
|
|
3432
|
+
*_param,
|
|
3433
|
+
_request_timeout=_request_timeout
|
|
3434
|
+
)
|
|
3435
|
+
return response_data.response
|
|
3436
|
+
|
|
3437
|
+
|
|
3438
|
+
def _get_list_subscribers_serialize(
|
|
3439
|
+
self,
|
|
3440
|
+
path_query_id,
|
|
3441
|
+
variables,
|
|
3442
|
+
features,
|
|
3443
|
+
_request_auth,
|
|
3444
|
+
_content_type,
|
|
3445
|
+
_headers,
|
|
3446
|
+
_host_index,
|
|
3447
|
+
) -> RequestSerialized:
|
|
3448
|
+
|
|
3449
|
+
_host = None
|
|
3450
|
+
|
|
3451
|
+
_collection_formats: Dict[str, str] = {
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3454
|
+
_path_params: Dict[str, str] = {}
|
|
3455
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3456
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3457
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3458
|
+
_files: Dict[
|
|
3459
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3460
|
+
] = {}
|
|
3461
|
+
_body_params: Optional[bytes] = None
|
|
3462
|
+
|
|
3463
|
+
# process the path parameters
|
|
3464
|
+
if path_query_id is not None:
|
|
3465
|
+
_path_params['pathQueryId'] = path_query_id
|
|
3466
|
+
# process the query parameters
|
|
3467
|
+
if variables is not None:
|
|
3468
|
+
|
|
3469
|
+
_query_params.append(('variables', variables))
|
|
3470
|
+
|
|
3471
|
+
if features is not None:
|
|
3472
|
+
|
|
3473
|
+
_query_params.append(('features', features))
|
|
3474
|
+
|
|
3475
|
+
# process the header parameters
|
|
3476
|
+
# process the form parameters
|
|
3477
|
+
# process the body parameter
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
# set the HTTP header `Accept`
|
|
3481
|
+
if 'Accept' not in _header_params:
|
|
3482
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3483
|
+
[
|
|
3484
|
+
'application/json'
|
|
3485
|
+
]
|
|
3486
|
+
)
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
# authentication setting
|
|
3490
|
+
_auth_settings: List[str] = [
|
|
3491
|
+
'Accept',
|
|
3492
|
+
'ClientLanguage',
|
|
3493
|
+
'Priority',
|
|
3494
|
+
'Referer',
|
|
3495
|
+
'SecFetchDest',
|
|
3496
|
+
'SecChUaPlatform',
|
|
3497
|
+
'SecFetchMode',
|
|
3498
|
+
'CsrfToken',
|
|
3499
|
+
'ClientUuid',
|
|
3500
|
+
'BearerAuth',
|
|
3501
|
+
'GuestToken',
|
|
3502
|
+
'SecChUa',
|
|
3503
|
+
'CookieGt0',
|
|
3504
|
+
'ClientTransactionId',
|
|
3505
|
+
'ActiveUser',
|
|
3506
|
+
'CookieCt0',
|
|
3507
|
+
'UserAgent',
|
|
3508
|
+
'AcceptLanguage',
|
|
3509
|
+
'SecFetchSite',
|
|
3510
|
+
'AuthType',
|
|
3511
|
+
'CookieAuthToken',
|
|
3512
|
+
'SecChUaMobile',
|
|
3513
|
+
'AcceptEncoding'
|
|
3514
|
+
]
|
|
3515
|
+
|
|
3516
|
+
return self.api_client.param_serialize(
|
|
3517
|
+
method='GET',
|
|
3518
|
+
resource_path='/graphql/{pathQueryId}/ListSubscribers',
|
|
1296
3519
|
path_params=_path_params,
|
|
1297
3520
|
query_params=_query_params,
|
|
1298
3521
|
header_params=_header_params,
|