twitter-openapi-python-generated 0.1.1__py3-none-any.whl → 0.1.3__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 +323 -1
- twitter_openapi_python_generated/api/__init__.py +2 -0
- twitter_openapi_python_generated/api/birdwatch_api.py +1609 -0
- twitter_openapi_python_generated/api/community_api.py +1910 -0
- twitter_openapi_python_generated/api/default_api.py +2831 -71
- twitter_openapi_python_generated/api/tweet_api.py +778 -142
- twitter_openapi_python_generated/api/user_api.py +301 -0
- twitter_openapi_python_generated/api/user_list_api.py +1145 -192
- twitter_openapi_python_generated/api/users_api.py +655 -19
- twitter_openapi_python_generated/api_client.py +1 -1
- twitter_openapi_python_generated/configuration.py +1 -1
- twitter_openapi_python_generated/models/__init__.py +159 -0
- twitter_openapi_python_generated/models/about_account_data.py +93 -0
- twitter_openapi_python_generated/models/about_account_response.py +102 -0
- twitter_openapi_python_generated/models/about_account_user.py +161 -0
- twitter_openapi_python_generated/models/about_account_user_result.py +95 -0
- twitter_openapi_python_generated/models/about_account_verification_info.py +95 -0
- twitter_openapi_python_generated/models/about_account_verification_info_reason.py +99 -0
- twitter_openapi_python_generated/models/about_profile.py +103 -0
- twitter_openapi_python_generated/models/about_profile_username_changes.py +109 -0
- twitter_openapi_python_generated/models/ad_metadata_container.py +5 -3
- twitter_openapi_python_generated/models/ai_trend.py +126 -0
- twitter_openapi_python_generated/models/ai_trend_core.py +95 -0
- twitter_openapi_python_generated/models/ai_trend_results.py +95 -0
- twitter_openapi_python_generated/models/ai_trend_social_proof.py +89 -0
- twitter_openapi_python_generated/models/article_content_block.py +117 -0
- twitter_openapi_python_generated/models/article_content_block_data.py +104 -0
- twitter_openapi_python_generated/models/article_content_entity.py +95 -0
- twitter_openapi_python_generated/models/article_content_entity_data.py +115 -0
- twitter_openapi_python_generated/models/article_content_entity_range.py +93 -0
- twitter_openapi_python_generated/models/article_content_entity_value.py +104 -0
- twitter_openapi_python_generated/models/article_content_inline_style_range.py +100 -0
- twitter_openapi_python_generated/models/article_content_media_item.py +101 -0
- twitter_openapi_python_generated/models/article_content_state.py +105 -0
- twitter_openapi_python_generated/models/article_content_text_range.py +93 -0
- twitter_openapi_python_generated/models/article_result.py +9 -3
- twitter_openapi_python_generated/models/audio_space.py +107 -0
- twitter_openapi_python_generated/models/audio_space_data.py +93 -0
- twitter_openapi_python_generated/models/audio_space_mentioned_user.py +97 -0
- twitter_openapi_python_generated/models/audio_space_metadata.py +165 -0
- twitter_openapi_python_generated/models/audio_space_participant.py +109 -0
- twitter_openapi_python_generated/models/audio_space_participant_user.py +104 -0
- twitter_openapi_python_generated/models/audio_space_participant_user_results.py +103 -0
- twitter_openapi_python_generated/models/audio_space_participant_verification.py +99 -0
- twitter_openapi_python_generated/models/audio_space_participants.py +114 -0
- twitter_openapi_python_generated/models/audio_space_response.py +102 -0
- twitter_openapi_python_generated/models/audio_space_sharings.py +91 -0
- twitter_openapi_python_generated/models/authenticate_periscope_response.py +102 -0
- twitter_openapi_python_generated/models/authenticate_periscope_response_data.py +89 -0
- twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py +91 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py +102 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py +93 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py +102 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py +93 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py +102 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py +93 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py +102 -0
- twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py +93 -0
- twitter_openapi_python_generated/models/birdwatch_home_page.py +101 -0
- twitter_openapi_python_generated/models/birdwatch_home_page_body.py +104 -0
- twitter_openapi_python_generated/models/birdwatch_home_timeline.py +97 -0
- twitter_openapi_python_generated/models/birdwatch_pivot.py +0 -17
- twitter_openapi_python_generated/models/birdwatch_profile.py +89 -0
- twitter_openapi_python_generated/models/birdwatch_public_data_file.py +91 -0
- twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py +113 -0
- twitter_openapi_python_generated/models/birdwatch_viewer.py +93 -0
- twitter_openapi_python_generated/models/bookmark_search.py +93 -0
- twitter_openapi_python_generated/models/bookmark_search_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/broadcast.py +159 -0
- twitter_openapi_python_generated/models/broadcast_data.py +93 -0
- twitter_openapi_python_generated/models/broadcast_edited_replay.py +89 -0
- twitter_openapi_python_generated/models/broadcast_periscope_user.py +95 -0
- twitter_openapi_python_generated/models/broadcast_response.py +102 -0
- twitter_openapi_python_generated/models/cashtag_attachment.py +6 -4
- twitter_openapi_python_generated/models/client_event_info_details.py +8 -2
- twitter_openapi_python_generated/models/communities_fetch_one_query_response.py +102 -0
- twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py +93 -0
- twitter_openapi_python_generated/models/communities_search_query_response.py +102 -0
- twitter_openapi_python_generated/models/communities_search_query_response_data.py +93 -0
- twitter_openapi_python_generated/models/communities_search_slice.py +102 -0
- twitter_openapi_python_generated/models/community.py +2 -2
- twitter_openapi_python_generated/models/community_delete_action_result.py +1 -8
- twitter_openapi_python_generated/models/community_facepile_user.py +98 -0
- twitter_openapi_python_generated/models/community_facepile_user_results.py +95 -0
- twitter_openapi_python_generated/models/community_hashtag.py +91 -0
- twitter_openapi_python_generated/models/community_hashtag_slice.py +99 -0
- twitter_openapi_python_generated/models/community_id_user_results.py +95 -0
- twitter_openapi_python_generated/models/community_invites_result.py +1 -8
- twitter_openapi_python_generated/models/community_join_action_unavailable.py +1 -8
- twitter_openapi_python_generated/models/community_leave_action_result.py +1 -8
- twitter_openapi_python_generated/models/community_list_members_action_result.py +90 -0
- twitter_openapi_python_generated/models/community_page_actions.py +113 -0
- twitter_openapi_python_generated/models/community_page_community.py +187 -0
- twitter_openapi_python_generated/models/community_page_delete_action_result.py +94 -0
- twitter_openapi_python_generated/models/community_page_invites_result.py +96 -0
- twitter_openapi_python_generated/models/community_page_join_action_result.py +92 -0
- twitter_openapi_python_generated/models/community_page_leave_action_result.py +96 -0
- twitter_openapi_python_generated/models/community_page_pin_action_result.py +92 -0
- twitter_openapi_python_generated/models/community_page_results.py +95 -0
- twitter_openapi_python_generated/models/community_primary_topic_name.py +89 -0
- twitter_openapi_python_generated/models/community_query_response.py +102 -0
- twitter_openapi_python_generated/models/community_query_response_data.py +93 -0
- twitter_openapi_python_generated/models/community_relay_rule.py +103 -0
- twitter_openapi_python_generated/models/community_search_community.py +134 -0
- twitter_openapi_python_generated/models/community_search_results.py +95 -0
- twitter_openapi_python_generated/models/community_settings_actions.py +101 -0
- twitter_openapi_python_generated/models/community_settings_community.py +183 -0
- twitter_openapi_python_generated/models/community_settings_creator.py +106 -0
- twitter_openapi_python_generated/models/community_settings_creator_core.py +89 -0
- twitter_openapi_python_generated/models/community_settings_creator_results.py +95 -0
- twitter_openapi_python_generated/models/community_settings_creator_verification.py +89 -0
- twitter_openapi_python_generated/models/community_settings_invites_result.py +90 -0
- twitter_openapi_python_generated/models/community_settings_results.py +95 -0
- twitter_openapi_python_generated/models/community_subtopic.py +99 -0
- twitter_openapi_python_generated/models/community_topic.py +108 -0
- twitter_openapi_python_generated/models/community_topic_results.py +96 -0
- twitter_openapi_python_generated/models/content_item_type.py +1 -0
- twitter_openapi_python_generated/models/conversation_control.py +8 -1
- twitter_openapi_python_generated/models/conversation_details.py +1 -8
- twitter_openapi_python_generated/models/cover_cta.py +5 -15
- twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py +102 -0
- twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py +89 -0
- twitter_openapi_python_generated/models/cta_client_event_info.py +1 -8
- twitter_openapi_python_generated/models/cta_limited_action_prompt.py +1 -8
- twitter_openapi_python_generated/models/data_saver_mode_response.py +102 -0
- twitter_openapi_python_generated/models/data_saver_mode_response_data.py +89 -0
- twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py +91 -0
- twitter_openapi_python_generated/models/event_summary_event.py +97 -0
- twitter_openapi_python_generated/models/event_summary_media.py +99 -0
- twitter_openapi_python_generated/models/event_summary_media_entity.py +95 -0
- twitter_openapi_python_generated/models/event_summary_media_key.py +91 -0
- twitter_openapi_python_generated/models/event_summary_promoted_metadata.py +117 -0
- twitter_openapi_python_generated/models/explore_sidebar_response.py +102 -0
- twitter_openapi_python_generated/models/explore_sidebar_response_data.py +93 -0
- twitter_openapi_python_generated/models/feedback_action.py +1 -28
- twitter_openapi_python_generated/models/global_communities_latest_post_search.py +93 -0
- twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/global_communities_post_search.py +93 -0
- twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/grok_account_jwt.py +89 -0
- twitter_openapi_python_generated/models/grok_account_jwt_data.py +93 -0
- twitter_openapi_python_generated/models/grok_account_jwt_response.py +102 -0
- twitter_openapi_python_generated/models/grok_entity_ref.py +19 -4
- twitter_openapi_python_generated/models/grok_home.py +114 -0
- twitter_openapi_python_generated/models/grok_home_layout.py +98 -0
- twitter_openapi_python_generated/models/grok_home_layout_section.py +98 -0
- twitter_openapi_python_generated/models/grok_home_prompt.py +99 -0
- twitter_openapi_python_generated/models/grok_home_response.py +102 -0
- twitter_openapi_python_generated/models/grok_home_response_data.py +93 -0
- twitter_openapi_python_generated/models/grok_image_annotation.py +2 -2
- twitter_openapi_python_generated/models/grok_model_option.py +103 -0
- twitter_openapi_python_generated/models/identity_profile_labels_highlighted_label.py +93 -0
- twitter_openapi_python_generated/models/item_content_union.py +27 -8
- twitter_openapi_python_generated/models/limited_action.py +8 -1
- twitter_openapi_python_generated/models/limited_action_results_data.py +8 -1
- twitter_openapi_python_generated/models/list_search.py +93 -0
- twitter_openapi_python_generated/models/list_search_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/list_search_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/lists_management_page_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py +93 -0
- twitter_openapi_python_generated/models/lists_management_viewer.py +93 -0
- twitter_openapi_python_generated/models/media_result.py +1 -1
- twitter_openapi_python_generated/models/module_footer.py +1 -8
- twitter_openapi_python_generated/models/module_header.py +8 -9
- twitter_openapi_python_generated/models/note_tweet_result_data.py +2 -2
- twitter_openapi_python_generated/models/notification_details.py +91 -0
- twitter_openapi_python_generated/models/pinned_timelines.py +89 -0
- twitter_openapi_python_generated/models/pinned_timelines_response.py +102 -0
- twitter_openapi_python_generated/models/pinned_timelines_response_data.py +93 -0
- twitter_openapi_python_generated/models/promoted_trend.py +97 -0
- twitter_openapi_python_generated/models/rich_message.py +10 -1
- twitter_openapi_python_generated/models/rich_message_entity.py +97 -0
- twitter_openapi_python_generated/models/rich_message_entity_ref.py +117 -0
- twitter_openapi_python_generated/models/session.py +0 -7
- twitter_openapi_python_generated/models/sidebar_user_recommendation.py +95 -0
- twitter_openapi_python_generated/models/sidebar_user_recommendations_data.py +96 -0
- twitter_openapi_python_generated/models/sidebar_user_recommendations_response.py +102 -0
- twitter_openapi_python_generated/models/slice_info.py +89 -0
- twitter_openapi_python_generated/models/story_topic.py +95 -0
- twitter_openapi_python_generated/models/story_topic_data.py +93 -0
- twitter_openapi_python_generated/models/story_topic_item.py +93 -0
- twitter_openapi_python_generated/models/story_topic_response.py +102 -0
- twitter_openapi_python_generated/models/story_topic_stories.py +96 -0
- twitter_openapi_python_generated/models/timeline_event_summary.py +121 -0
- twitter_openapi_python_generated/models/timeline_general_context.py +2 -2
- twitter_openapi_python_generated/models/timeline_half_cover.py +0 -7
- twitter_openapi_python_generated/models/timeline_message_prompt_content.py +1 -8
- twitter_openapi_python_generated/models/timeline_prompt_content.py +1 -15
- twitter_openapi_python_generated/models/timeline_show_alert.py +1 -15
- twitter_openapi_python_generated/models/timeline_tombstone.py +1 -11
- twitter_openapi_python_generated/models/timeline_topic_context.py +1 -11
- twitter_openapi_python_generated/models/timeline_trend.py +9 -1
- twitter_openapi_python_generated/models/topic_carousel_query_response.py +102 -0
- twitter_openapi_python_generated/models/topic_carousel_query_response_data.py +93 -0
- twitter_openapi_python_generated/models/trend_metadata.py +3 -1
- twitter_openapi_python_generated/models/trend_promoted_metadata.py +111 -0
- twitter_openapi_python_generated/models/tweet.py +4 -2
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data.py +8 -1
- twitter_openapi_python_generated/models/tweet_card_platform_audience.py +1 -8
- twitter_openapi_python_generated/models/tweet_legacy.py +18 -3
- twitter_openapi_python_generated/models/tweet_legacy_place.py +107 -0
- twitter_openapi_python_generated/models/tweet_legacy_place_bounding_box.py +98 -0
- twitter_openapi_python_generated/models/tweet_legacy_point.py +98 -0
- twitter_openapi_python_generated/models/tweet_post_cta.py +1 -9
- twitter_openapi_python_generated/models/type_name.py +4 -0
- twitter_openapi_python_generated/models/unified_card.py +1 -8
- twitter_openapi_python_generated/models/user_highlights_tweets_result.py +2 -2
- twitter_openapi_python_generated/models/user_tweets_result_v1.py +2 -2
- twitter_openapi_python_generated/models/users_verified_avatars_response.py +102 -0
- twitter_openapi_python_generated/models/users_verified_avatars_response_data.py +96 -0
- twitter_openapi_python_generated/models/verified_avatar_user.py +112 -0
- twitter_openapi_python_generated/models/verified_avatar_user_results.py +93 -0
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/METADATA +195 -9
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/RECORD +223 -62
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.1.1.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import StrictStr
|
|
20
|
+
from twitter_openapi_python_generated.models.sidebar_user_recommendations_response import SidebarUserRecommendationsResponse
|
|
20
21
|
from twitter_openapi_python_generated.models.users_response import UsersResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
|
|
21
23
|
|
|
22
24
|
from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
|
|
23
25
|
from twitter_openapi_python_generated.api_response import ApiResponse
|
|
@@ -38,7 +40,7 @@ class UsersApi:
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
@validate_call
|
|
41
|
-
def
|
|
43
|
+
def get_sidebar_user_recommendations(
|
|
42
44
|
self,
|
|
43
45
|
path_query_id: StrictStr,
|
|
44
46
|
variables: StrictStr,
|
|
@@ -55,10 +57,10 @@ class UsersApi:
|
|
|
55
57
|
_content_type: Optional[StrictStr] = None,
|
|
56
58
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
59
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
-
) ->
|
|
59
|
-
"""
|
|
60
|
+
) -> SidebarUserRecommendationsResponse:
|
|
61
|
+
"""get_sidebar_user_recommendations
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
who to follow, shown in the sidebar of a profile
|
|
62
64
|
|
|
63
65
|
:param path_query_id: (required)
|
|
64
66
|
:type path_query_id: str
|
|
@@ -88,7 +90,7 @@ class UsersApi:
|
|
|
88
90
|
:return: Returns the result object.
|
|
89
91
|
""" # noqa: E501
|
|
90
92
|
|
|
91
|
-
_param = self.
|
|
93
|
+
_param = self._get_sidebar_user_recommendations_serialize(
|
|
92
94
|
path_query_id=path_query_id,
|
|
93
95
|
variables=variables,
|
|
94
96
|
features=features,
|
|
@@ -99,7 +101,7 @@ class UsersApi:
|
|
|
99
101
|
)
|
|
100
102
|
|
|
101
103
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
-
'200': "
|
|
104
|
+
'200': "SidebarUserRecommendationsResponse",
|
|
103
105
|
}
|
|
104
106
|
response_data = self.api_client.call_api(
|
|
105
107
|
*_param,
|
|
@@ -113,7 +115,7 @@ class UsersApi:
|
|
|
113
115
|
|
|
114
116
|
|
|
115
117
|
@validate_call
|
|
116
|
-
def
|
|
118
|
+
def get_sidebar_user_recommendations_with_http_info(
|
|
117
119
|
self,
|
|
118
120
|
path_query_id: StrictStr,
|
|
119
121
|
variables: StrictStr,
|
|
@@ -130,10 +132,10 @@ class UsersApi:
|
|
|
130
132
|
_content_type: Optional[StrictStr] = None,
|
|
131
133
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
132
134
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
133
|
-
) -> ApiResponse[
|
|
134
|
-
"""
|
|
135
|
+
) -> ApiResponse[SidebarUserRecommendationsResponse]:
|
|
136
|
+
"""get_sidebar_user_recommendations
|
|
135
137
|
|
|
136
|
-
|
|
138
|
+
who to follow, shown in the sidebar of a profile
|
|
137
139
|
|
|
138
140
|
:param path_query_id: (required)
|
|
139
141
|
:type path_query_id: str
|
|
@@ -163,7 +165,7 @@ class UsersApi:
|
|
|
163
165
|
:return: Returns the result object.
|
|
164
166
|
""" # noqa: E501
|
|
165
167
|
|
|
166
|
-
_param = self.
|
|
168
|
+
_param = self._get_sidebar_user_recommendations_serialize(
|
|
167
169
|
path_query_id=path_query_id,
|
|
168
170
|
variables=variables,
|
|
169
171
|
features=features,
|
|
@@ -174,7 +176,7 @@ class UsersApi:
|
|
|
174
176
|
)
|
|
175
177
|
|
|
176
178
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
-
'200': "
|
|
179
|
+
'200': "SidebarUserRecommendationsResponse",
|
|
178
180
|
}
|
|
179
181
|
response_data = self.api_client.call_api(
|
|
180
182
|
*_param,
|
|
@@ -188,7 +190,7 @@ class UsersApi:
|
|
|
188
190
|
|
|
189
191
|
|
|
190
192
|
@validate_call
|
|
191
|
-
def
|
|
193
|
+
def get_sidebar_user_recommendations_without_preload_content(
|
|
192
194
|
self,
|
|
193
195
|
path_query_id: StrictStr,
|
|
194
196
|
variables: StrictStr,
|
|
@@ -206,9 +208,9 @@ class UsersApi:
|
|
|
206
208
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
207
209
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
208
210
|
) -> RESTResponseType:
|
|
209
|
-
"""
|
|
211
|
+
"""get_sidebar_user_recommendations
|
|
210
212
|
|
|
211
|
-
|
|
213
|
+
who to follow, shown in the sidebar of a profile
|
|
212
214
|
|
|
213
215
|
:param path_query_id: (required)
|
|
214
216
|
:type path_query_id: str
|
|
@@ -238,7 +240,7 @@ class UsersApi:
|
|
|
238
240
|
:return: Returns the result object.
|
|
239
241
|
""" # noqa: E501
|
|
240
242
|
|
|
241
|
-
_param = self.
|
|
243
|
+
_param = self._get_sidebar_user_recommendations_serialize(
|
|
242
244
|
path_query_id=path_query_id,
|
|
243
245
|
variables=variables,
|
|
244
246
|
features=features,
|
|
@@ -249,7 +251,7 @@ class UsersApi:
|
|
|
249
251
|
)
|
|
250
252
|
|
|
251
253
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
252
|
-
'200': "
|
|
254
|
+
'200': "SidebarUserRecommendationsResponse",
|
|
253
255
|
}
|
|
254
256
|
response_data = self.api_client.call_api(
|
|
255
257
|
*_param,
|
|
@@ -258,7 +260,7 @@ class UsersApi:
|
|
|
258
260
|
return response_data.response
|
|
259
261
|
|
|
260
262
|
|
|
261
|
-
def
|
|
263
|
+
def _get_sidebar_user_recommendations_serialize(
|
|
262
264
|
self,
|
|
263
265
|
path_query_id,
|
|
264
266
|
variables,
|
|
@@ -338,7 +340,641 @@ class UsersApi:
|
|
|
338
340
|
|
|
339
341
|
return self.api_client.param_serialize(
|
|
340
342
|
method='GET',
|
|
341
|
-
resource_path='/graphql/{pathQueryId}/
|
|
343
|
+
resource_path='/graphql/{pathQueryId}/SidebarUserRecommendations',
|
|
344
|
+
path_params=_path_params,
|
|
345
|
+
query_params=_query_params,
|
|
346
|
+
header_params=_header_params,
|
|
347
|
+
body=_body_params,
|
|
348
|
+
post_params=_form_params,
|
|
349
|
+
files=_files,
|
|
350
|
+
auth_settings=_auth_settings,
|
|
351
|
+
collection_formats=_collection_formats,
|
|
352
|
+
_host=_host,
|
|
353
|
+
_request_auth=_request_auth
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
@validate_call
|
|
360
|
+
def get_users_by_rest_ids(
|
|
361
|
+
self,
|
|
362
|
+
path_query_id: StrictStr,
|
|
363
|
+
variables: StrictStr,
|
|
364
|
+
features: StrictStr,
|
|
365
|
+
_request_timeout: Union[
|
|
366
|
+
None,
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Tuple[
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
371
|
+
]
|
|
372
|
+
] = None,
|
|
373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
374
|
+
_content_type: Optional[StrictStr] = None,
|
|
375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
377
|
+
) -> UsersResponse:
|
|
378
|
+
"""get_users_by_rest_ids
|
|
379
|
+
|
|
380
|
+
get users by rest ids
|
|
381
|
+
|
|
382
|
+
:param path_query_id: (required)
|
|
383
|
+
:type path_query_id: str
|
|
384
|
+
:param variables: (required)
|
|
385
|
+
:type variables: str
|
|
386
|
+
:param features: (required)
|
|
387
|
+
:type features: str
|
|
388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
389
|
+
number provided, it will be total request
|
|
390
|
+
timeout. It can also be a pair (tuple) of
|
|
391
|
+
(connection, read) timeouts.
|
|
392
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
393
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
394
|
+
request; this effectively ignores the
|
|
395
|
+
authentication in the spec for a single request.
|
|
396
|
+
:type _request_auth: dict, optional
|
|
397
|
+
:param _content_type: force content-type for the request.
|
|
398
|
+
:type _content_type: str, Optional
|
|
399
|
+
:param _headers: set to override the headers for a single
|
|
400
|
+
request; this effectively ignores the headers
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _headers: dict, optional
|
|
403
|
+
:param _host_index: set to override the host_index for a single
|
|
404
|
+
request; this effectively ignores the host_index
|
|
405
|
+
in the spec for a single request.
|
|
406
|
+
:type _host_index: int, optional
|
|
407
|
+
:return: Returns the result object.
|
|
408
|
+
""" # noqa: E501
|
|
409
|
+
|
|
410
|
+
_param = self._get_users_by_rest_ids_serialize(
|
|
411
|
+
path_query_id=path_query_id,
|
|
412
|
+
variables=variables,
|
|
413
|
+
features=features,
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'200': "UsersResponse",
|
|
422
|
+
}
|
|
423
|
+
response_data = self.api_client.call_api(
|
|
424
|
+
*_param,
|
|
425
|
+
_request_timeout=_request_timeout
|
|
426
|
+
)
|
|
427
|
+
response_data.read()
|
|
428
|
+
return self.api_client.response_deserialize(
|
|
429
|
+
response_data=response_data,
|
|
430
|
+
response_types_map=_response_types_map,
|
|
431
|
+
).data
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
@validate_call
|
|
435
|
+
def get_users_by_rest_ids_with_http_info(
|
|
436
|
+
self,
|
|
437
|
+
path_query_id: StrictStr,
|
|
438
|
+
variables: StrictStr,
|
|
439
|
+
features: StrictStr,
|
|
440
|
+
_request_timeout: Union[
|
|
441
|
+
None,
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
443
|
+
Tuple[
|
|
444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
445
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
446
|
+
]
|
|
447
|
+
] = None,
|
|
448
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
449
|
+
_content_type: Optional[StrictStr] = None,
|
|
450
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
452
|
+
) -> ApiResponse[UsersResponse]:
|
|
453
|
+
"""get_users_by_rest_ids
|
|
454
|
+
|
|
455
|
+
get users by rest ids
|
|
456
|
+
|
|
457
|
+
:param path_query_id: (required)
|
|
458
|
+
:type path_query_id: str
|
|
459
|
+
:param variables: (required)
|
|
460
|
+
:type variables: str
|
|
461
|
+
:param features: (required)
|
|
462
|
+
:type features: str
|
|
463
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
464
|
+
number provided, it will be total request
|
|
465
|
+
timeout. It can also be a pair (tuple) of
|
|
466
|
+
(connection, read) timeouts.
|
|
467
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
468
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
469
|
+
request; this effectively ignores the
|
|
470
|
+
authentication in the spec for a single request.
|
|
471
|
+
:type _request_auth: dict, optional
|
|
472
|
+
:param _content_type: force content-type for the request.
|
|
473
|
+
:type _content_type: str, Optional
|
|
474
|
+
:param _headers: set to override the headers for a single
|
|
475
|
+
request; this effectively ignores the headers
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _headers: dict, optional
|
|
478
|
+
:param _host_index: set to override the host_index for a single
|
|
479
|
+
request; this effectively ignores the host_index
|
|
480
|
+
in the spec for a single request.
|
|
481
|
+
:type _host_index: int, optional
|
|
482
|
+
:return: Returns the result object.
|
|
483
|
+
""" # noqa: E501
|
|
484
|
+
|
|
485
|
+
_param = self._get_users_by_rest_ids_serialize(
|
|
486
|
+
path_query_id=path_query_id,
|
|
487
|
+
variables=variables,
|
|
488
|
+
features=features,
|
|
489
|
+
_request_auth=_request_auth,
|
|
490
|
+
_content_type=_content_type,
|
|
491
|
+
_headers=_headers,
|
|
492
|
+
_host_index=_host_index
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
+
'200': "UsersResponse",
|
|
497
|
+
}
|
|
498
|
+
response_data = self.api_client.call_api(
|
|
499
|
+
*_param,
|
|
500
|
+
_request_timeout=_request_timeout
|
|
501
|
+
)
|
|
502
|
+
response_data.read()
|
|
503
|
+
return self.api_client.response_deserialize(
|
|
504
|
+
response_data=response_data,
|
|
505
|
+
response_types_map=_response_types_map,
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
@validate_call
|
|
510
|
+
def get_users_by_rest_ids_without_preload_content(
|
|
511
|
+
self,
|
|
512
|
+
path_query_id: StrictStr,
|
|
513
|
+
variables: StrictStr,
|
|
514
|
+
features: StrictStr,
|
|
515
|
+
_request_timeout: Union[
|
|
516
|
+
None,
|
|
517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
518
|
+
Tuple[
|
|
519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
520
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
521
|
+
]
|
|
522
|
+
] = None,
|
|
523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
524
|
+
_content_type: Optional[StrictStr] = None,
|
|
525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
527
|
+
) -> RESTResponseType:
|
|
528
|
+
"""get_users_by_rest_ids
|
|
529
|
+
|
|
530
|
+
get users by rest ids
|
|
531
|
+
|
|
532
|
+
:param path_query_id: (required)
|
|
533
|
+
:type path_query_id: str
|
|
534
|
+
:param variables: (required)
|
|
535
|
+
:type variables: str
|
|
536
|
+
:param features: (required)
|
|
537
|
+
:type features: str
|
|
538
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
539
|
+
number provided, it will be total request
|
|
540
|
+
timeout. It can also be a pair (tuple) of
|
|
541
|
+
(connection, read) timeouts.
|
|
542
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
543
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
544
|
+
request; this effectively ignores the
|
|
545
|
+
authentication in the spec for a single request.
|
|
546
|
+
:type _request_auth: dict, optional
|
|
547
|
+
:param _content_type: force content-type for the request.
|
|
548
|
+
:type _content_type: str, Optional
|
|
549
|
+
:param _headers: set to override the headers for a single
|
|
550
|
+
request; this effectively ignores the headers
|
|
551
|
+
in the spec for a single request.
|
|
552
|
+
:type _headers: dict, optional
|
|
553
|
+
:param _host_index: set to override the host_index for a single
|
|
554
|
+
request; this effectively ignores the host_index
|
|
555
|
+
in the spec for a single request.
|
|
556
|
+
:type _host_index: int, optional
|
|
557
|
+
:return: Returns the result object.
|
|
558
|
+
""" # noqa: E501
|
|
559
|
+
|
|
560
|
+
_param = self._get_users_by_rest_ids_serialize(
|
|
561
|
+
path_query_id=path_query_id,
|
|
562
|
+
variables=variables,
|
|
563
|
+
features=features,
|
|
564
|
+
_request_auth=_request_auth,
|
|
565
|
+
_content_type=_content_type,
|
|
566
|
+
_headers=_headers,
|
|
567
|
+
_host_index=_host_index
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
571
|
+
'200': "UsersResponse",
|
|
572
|
+
}
|
|
573
|
+
response_data = self.api_client.call_api(
|
|
574
|
+
*_param,
|
|
575
|
+
_request_timeout=_request_timeout
|
|
576
|
+
)
|
|
577
|
+
return response_data.response
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _get_users_by_rest_ids_serialize(
|
|
581
|
+
self,
|
|
582
|
+
path_query_id,
|
|
583
|
+
variables,
|
|
584
|
+
features,
|
|
585
|
+
_request_auth,
|
|
586
|
+
_content_type,
|
|
587
|
+
_headers,
|
|
588
|
+
_host_index,
|
|
589
|
+
) -> RequestSerialized:
|
|
590
|
+
|
|
591
|
+
_host = None
|
|
592
|
+
|
|
593
|
+
_collection_formats: Dict[str, str] = {
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
_path_params: Dict[str, str] = {}
|
|
597
|
+
_query_params: List[Tuple[str, str]] = []
|
|
598
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
599
|
+
_form_params: List[Tuple[str, str]] = []
|
|
600
|
+
_files: Dict[
|
|
601
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
602
|
+
] = {}
|
|
603
|
+
_body_params: Optional[bytes] = None
|
|
604
|
+
|
|
605
|
+
# process the path parameters
|
|
606
|
+
if path_query_id is not None:
|
|
607
|
+
_path_params['pathQueryId'] = path_query_id
|
|
608
|
+
# process the query parameters
|
|
609
|
+
if variables is not None:
|
|
610
|
+
|
|
611
|
+
_query_params.append(('variables', variables))
|
|
612
|
+
|
|
613
|
+
if features is not None:
|
|
614
|
+
|
|
615
|
+
_query_params.append(('features', features))
|
|
616
|
+
|
|
617
|
+
# process the header parameters
|
|
618
|
+
# process the form parameters
|
|
619
|
+
# process the body parameter
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
# set the HTTP header `Accept`
|
|
623
|
+
if 'Accept' not in _header_params:
|
|
624
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
625
|
+
[
|
|
626
|
+
'application/json'
|
|
627
|
+
]
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
# authentication setting
|
|
632
|
+
_auth_settings: List[str] = [
|
|
633
|
+
'Accept',
|
|
634
|
+
'ClientLanguage',
|
|
635
|
+
'Priority',
|
|
636
|
+
'Referer',
|
|
637
|
+
'SecFetchDest',
|
|
638
|
+
'SecChUaPlatform',
|
|
639
|
+
'SecFetchMode',
|
|
640
|
+
'CsrfToken',
|
|
641
|
+
'ClientUuid',
|
|
642
|
+
'BearerAuth',
|
|
643
|
+
'GuestToken',
|
|
644
|
+
'SecChUa',
|
|
645
|
+
'CookieGt0',
|
|
646
|
+
'ClientTransactionId',
|
|
647
|
+
'ActiveUser',
|
|
648
|
+
'CookieCt0',
|
|
649
|
+
'UserAgent',
|
|
650
|
+
'AcceptLanguage',
|
|
651
|
+
'SecFetchSite',
|
|
652
|
+
'AuthType',
|
|
653
|
+
'CookieAuthToken',
|
|
654
|
+
'SecChUaMobile',
|
|
655
|
+
'AcceptEncoding'
|
|
656
|
+
]
|
|
657
|
+
|
|
658
|
+
return self.api_client.param_serialize(
|
|
659
|
+
method='GET',
|
|
660
|
+
resource_path='/graphql/{pathQueryId}/UsersByRestIds',
|
|
661
|
+
path_params=_path_params,
|
|
662
|
+
query_params=_query_params,
|
|
663
|
+
header_params=_header_params,
|
|
664
|
+
body=_body_params,
|
|
665
|
+
post_params=_form_params,
|
|
666
|
+
files=_files,
|
|
667
|
+
auth_settings=_auth_settings,
|
|
668
|
+
collection_formats=_collection_formats,
|
|
669
|
+
_host=_host,
|
|
670
|
+
_request_auth=_request_auth
|
|
671
|
+
)
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
@validate_call
|
|
677
|
+
def get_users_verified_avatars(
|
|
678
|
+
self,
|
|
679
|
+
path_query_id: StrictStr,
|
|
680
|
+
features: StrictStr,
|
|
681
|
+
variables: StrictStr,
|
|
682
|
+
_request_timeout: Union[
|
|
683
|
+
None,
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
685
|
+
Tuple[
|
|
686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
687
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
688
|
+
]
|
|
689
|
+
] = None,
|
|
690
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
691
|
+
_content_type: Optional[StrictStr] = None,
|
|
692
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
693
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
694
|
+
) -> UsersVerifiedAvatarsResponse:
|
|
695
|
+
"""get_users_verified_avatars
|
|
696
|
+
|
|
697
|
+
verified-avatar users by ids
|
|
698
|
+
|
|
699
|
+
:param path_query_id: (required)
|
|
700
|
+
:type path_query_id: str
|
|
701
|
+
:param features: (required)
|
|
702
|
+
:type features: str
|
|
703
|
+
:param variables: (required)
|
|
704
|
+
:type variables: str
|
|
705
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
706
|
+
number provided, it will be total request
|
|
707
|
+
timeout. It can also be a pair (tuple) of
|
|
708
|
+
(connection, read) timeouts.
|
|
709
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
710
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
711
|
+
request; this effectively ignores the
|
|
712
|
+
authentication in the spec for a single request.
|
|
713
|
+
:type _request_auth: dict, optional
|
|
714
|
+
:param _content_type: force content-type for the request.
|
|
715
|
+
:type _content_type: str, Optional
|
|
716
|
+
:param _headers: set to override the headers for a single
|
|
717
|
+
request; this effectively ignores the headers
|
|
718
|
+
in the spec for a single request.
|
|
719
|
+
:type _headers: dict, optional
|
|
720
|
+
:param _host_index: set to override the host_index for a single
|
|
721
|
+
request; this effectively ignores the host_index
|
|
722
|
+
in the spec for a single request.
|
|
723
|
+
:type _host_index: int, optional
|
|
724
|
+
:return: Returns the result object.
|
|
725
|
+
""" # noqa: E501
|
|
726
|
+
|
|
727
|
+
_param = self._get_users_verified_avatars_serialize(
|
|
728
|
+
path_query_id=path_query_id,
|
|
729
|
+
features=features,
|
|
730
|
+
variables=variables,
|
|
731
|
+
_request_auth=_request_auth,
|
|
732
|
+
_content_type=_content_type,
|
|
733
|
+
_headers=_headers,
|
|
734
|
+
_host_index=_host_index
|
|
735
|
+
)
|
|
736
|
+
|
|
737
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
738
|
+
'200': "UsersVerifiedAvatarsResponse",
|
|
739
|
+
}
|
|
740
|
+
response_data = self.api_client.call_api(
|
|
741
|
+
*_param,
|
|
742
|
+
_request_timeout=_request_timeout
|
|
743
|
+
)
|
|
744
|
+
response_data.read()
|
|
745
|
+
return self.api_client.response_deserialize(
|
|
746
|
+
response_data=response_data,
|
|
747
|
+
response_types_map=_response_types_map,
|
|
748
|
+
).data
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
@validate_call
|
|
752
|
+
def get_users_verified_avatars_with_http_info(
|
|
753
|
+
self,
|
|
754
|
+
path_query_id: StrictStr,
|
|
755
|
+
features: StrictStr,
|
|
756
|
+
variables: StrictStr,
|
|
757
|
+
_request_timeout: Union[
|
|
758
|
+
None,
|
|
759
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
760
|
+
Tuple[
|
|
761
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
762
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
763
|
+
]
|
|
764
|
+
] = None,
|
|
765
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
766
|
+
_content_type: Optional[StrictStr] = None,
|
|
767
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
768
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
769
|
+
) -> ApiResponse[UsersVerifiedAvatarsResponse]:
|
|
770
|
+
"""get_users_verified_avatars
|
|
771
|
+
|
|
772
|
+
verified-avatar users by ids
|
|
773
|
+
|
|
774
|
+
:param path_query_id: (required)
|
|
775
|
+
:type path_query_id: str
|
|
776
|
+
:param features: (required)
|
|
777
|
+
:type features: str
|
|
778
|
+
:param variables: (required)
|
|
779
|
+
:type variables: str
|
|
780
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
781
|
+
number provided, it will be total request
|
|
782
|
+
timeout. It can also be a pair (tuple) of
|
|
783
|
+
(connection, read) timeouts.
|
|
784
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
785
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
786
|
+
request; this effectively ignores the
|
|
787
|
+
authentication in the spec for a single request.
|
|
788
|
+
:type _request_auth: dict, optional
|
|
789
|
+
:param _content_type: force content-type for the request.
|
|
790
|
+
:type _content_type: str, Optional
|
|
791
|
+
:param _headers: set to override the headers for a single
|
|
792
|
+
request; this effectively ignores the headers
|
|
793
|
+
in the spec for a single request.
|
|
794
|
+
:type _headers: dict, optional
|
|
795
|
+
:param _host_index: set to override the host_index for a single
|
|
796
|
+
request; this effectively ignores the host_index
|
|
797
|
+
in the spec for a single request.
|
|
798
|
+
:type _host_index: int, optional
|
|
799
|
+
:return: Returns the result object.
|
|
800
|
+
""" # noqa: E501
|
|
801
|
+
|
|
802
|
+
_param = self._get_users_verified_avatars_serialize(
|
|
803
|
+
path_query_id=path_query_id,
|
|
804
|
+
features=features,
|
|
805
|
+
variables=variables,
|
|
806
|
+
_request_auth=_request_auth,
|
|
807
|
+
_content_type=_content_type,
|
|
808
|
+
_headers=_headers,
|
|
809
|
+
_host_index=_host_index
|
|
810
|
+
)
|
|
811
|
+
|
|
812
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
813
|
+
'200': "UsersVerifiedAvatarsResponse",
|
|
814
|
+
}
|
|
815
|
+
response_data = self.api_client.call_api(
|
|
816
|
+
*_param,
|
|
817
|
+
_request_timeout=_request_timeout
|
|
818
|
+
)
|
|
819
|
+
response_data.read()
|
|
820
|
+
return self.api_client.response_deserialize(
|
|
821
|
+
response_data=response_data,
|
|
822
|
+
response_types_map=_response_types_map,
|
|
823
|
+
)
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
@validate_call
|
|
827
|
+
def get_users_verified_avatars_without_preload_content(
|
|
828
|
+
self,
|
|
829
|
+
path_query_id: StrictStr,
|
|
830
|
+
features: StrictStr,
|
|
831
|
+
variables: StrictStr,
|
|
832
|
+
_request_timeout: Union[
|
|
833
|
+
None,
|
|
834
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
835
|
+
Tuple[
|
|
836
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
837
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
838
|
+
]
|
|
839
|
+
] = None,
|
|
840
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
841
|
+
_content_type: Optional[StrictStr] = None,
|
|
842
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
843
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
844
|
+
) -> RESTResponseType:
|
|
845
|
+
"""get_users_verified_avatars
|
|
846
|
+
|
|
847
|
+
verified-avatar users by ids
|
|
848
|
+
|
|
849
|
+
:param path_query_id: (required)
|
|
850
|
+
:type path_query_id: str
|
|
851
|
+
:param features: (required)
|
|
852
|
+
:type features: str
|
|
853
|
+
:param variables: (required)
|
|
854
|
+
:type variables: str
|
|
855
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
856
|
+
number provided, it will be total request
|
|
857
|
+
timeout. It can also be a pair (tuple) of
|
|
858
|
+
(connection, read) timeouts.
|
|
859
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
860
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
861
|
+
request; this effectively ignores the
|
|
862
|
+
authentication in the spec for a single request.
|
|
863
|
+
:type _request_auth: dict, optional
|
|
864
|
+
:param _content_type: force content-type for the request.
|
|
865
|
+
:type _content_type: str, Optional
|
|
866
|
+
:param _headers: set to override the headers for a single
|
|
867
|
+
request; this effectively ignores the headers
|
|
868
|
+
in the spec for a single request.
|
|
869
|
+
:type _headers: dict, optional
|
|
870
|
+
:param _host_index: set to override the host_index for a single
|
|
871
|
+
request; this effectively ignores the host_index
|
|
872
|
+
in the spec for a single request.
|
|
873
|
+
:type _host_index: int, optional
|
|
874
|
+
:return: Returns the result object.
|
|
875
|
+
""" # noqa: E501
|
|
876
|
+
|
|
877
|
+
_param = self._get_users_verified_avatars_serialize(
|
|
878
|
+
path_query_id=path_query_id,
|
|
879
|
+
features=features,
|
|
880
|
+
variables=variables,
|
|
881
|
+
_request_auth=_request_auth,
|
|
882
|
+
_content_type=_content_type,
|
|
883
|
+
_headers=_headers,
|
|
884
|
+
_host_index=_host_index
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
888
|
+
'200': "UsersVerifiedAvatarsResponse",
|
|
889
|
+
}
|
|
890
|
+
response_data = self.api_client.call_api(
|
|
891
|
+
*_param,
|
|
892
|
+
_request_timeout=_request_timeout
|
|
893
|
+
)
|
|
894
|
+
return response_data.response
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
def _get_users_verified_avatars_serialize(
|
|
898
|
+
self,
|
|
899
|
+
path_query_id,
|
|
900
|
+
features,
|
|
901
|
+
variables,
|
|
902
|
+
_request_auth,
|
|
903
|
+
_content_type,
|
|
904
|
+
_headers,
|
|
905
|
+
_host_index,
|
|
906
|
+
) -> RequestSerialized:
|
|
907
|
+
|
|
908
|
+
_host = None
|
|
909
|
+
|
|
910
|
+
_collection_formats: Dict[str, str] = {
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
_path_params: Dict[str, str] = {}
|
|
914
|
+
_query_params: List[Tuple[str, str]] = []
|
|
915
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
916
|
+
_form_params: List[Tuple[str, str]] = []
|
|
917
|
+
_files: Dict[
|
|
918
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
919
|
+
] = {}
|
|
920
|
+
_body_params: Optional[bytes] = None
|
|
921
|
+
|
|
922
|
+
# process the path parameters
|
|
923
|
+
if path_query_id is not None:
|
|
924
|
+
_path_params['pathQueryId'] = path_query_id
|
|
925
|
+
# process the query parameters
|
|
926
|
+
if features is not None:
|
|
927
|
+
|
|
928
|
+
_query_params.append(('features', features))
|
|
929
|
+
|
|
930
|
+
if variables is not None:
|
|
931
|
+
|
|
932
|
+
_query_params.append(('variables', variables))
|
|
933
|
+
|
|
934
|
+
# process the header parameters
|
|
935
|
+
# process the form parameters
|
|
936
|
+
# process the body parameter
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
# set the HTTP header `Accept`
|
|
940
|
+
if 'Accept' not in _header_params:
|
|
941
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
942
|
+
[
|
|
943
|
+
'application/json'
|
|
944
|
+
]
|
|
945
|
+
)
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
# authentication setting
|
|
949
|
+
_auth_settings: List[str] = [
|
|
950
|
+
'Accept',
|
|
951
|
+
'ClientLanguage',
|
|
952
|
+
'Priority',
|
|
953
|
+
'Referer',
|
|
954
|
+
'SecFetchDest',
|
|
955
|
+
'SecChUaPlatform',
|
|
956
|
+
'SecFetchMode',
|
|
957
|
+
'CsrfToken',
|
|
958
|
+
'ClientUuid',
|
|
959
|
+
'BearerAuth',
|
|
960
|
+
'GuestToken',
|
|
961
|
+
'SecChUa',
|
|
962
|
+
'CookieGt0',
|
|
963
|
+
'ClientTransactionId',
|
|
964
|
+
'ActiveUser',
|
|
965
|
+
'CookieCt0',
|
|
966
|
+
'UserAgent',
|
|
967
|
+
'AcceptLanguage',
|
|
968
|
+
'SecFetchSite',
|
|
969
|
+
'AuthType',
|
|
970
|
+
'CookieAuthToken',
|
|
971
|
+
'SecChUaMobile',
|
|
972
|
+
'AcceptEncoding'
|
|
973
|
+
]
|
|
974
|
+
|
|
975
|
+
return self.api_client.param_serialize(
|
|
976
|
+
method='GET',
|
|
977
|
+
resource_path='/graphql/{pathQueryId}/UsersVerifiedAvatars',
|
|
342
978
|
path_params=_path_params,
|
|
343
979
|
query_params=_query_params,
|
|
344
980
|
header_params=_header_params,
|