twitter-openapi-python-generated 0.1.0__py3-none-any.whl → 0.1.2__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 +235 -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 +1522 -0
- twitter_openapi_python_generated/api/tweet_api.py +778 -142
- twitter_openapi_python_generated/api/user_list_api.py +1145 -192
- twitter_openapi_python_generated/api/users_api.py +318 -0
- twitter_openapi_python_generated/api_client.py +1 -1
- twitter_openapi_python_generated/configuration.py +1 -1
- twitter_openapi_python_generated/models/__init__.py +115 -0
- twitter_openapi_python_generated/models/ad_metadata_container.py +5 -3
- 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_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/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 +3 -1
- 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_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/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/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/error_extensions.py +1 -1
- twitter_openapi_python_generated/models/error_response.py +1 -1
- 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 +0 -7
- 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_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_model_option.py +103 -0
- twitter_openapi_python_generated/models/grouped_trend.py +95 -0
- twitter_openapi_python_generated/models/item_content_union.py +27 -8
- 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/module_footer.py +1 -8
- 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/search_timeline.py +2 -2
- twitter_openapi_python_generated/models/slice_info.py +89 -0
- twitter_openapi_python_generated/models/timeline_community.py +13 -17
- twitter_openapi_python_generated/models/timeline_event_summary.py +121 -0
- twitter_openapi_python_generated/models/timeline_message_prompt.py +13 -17
- twitter_openapi_python_generated/models/timeline_message_prompt_button.py +95 -0
- twitter_openapi_python_generated/models/timeline_message_prompt_button_action.py +91 -0
- twitter_openapi_python_generated/models/timeline_message_prompt_content.py +112 -0
- twitter_openapi_python_generated/models/timeline_message_prompt_rich_text.py +98 -0
- twitter_openapi_python_generated/models/timeline_message_prompt_rich_text_entity.py +97 -0
- twitter_openapi_python_generated/models/timeline_message_prompt_rich_text_entity_ref.py +107 -0
- twitter_openapi_python_generated/models/timeline_prompt.py +19 -17
- twitter_openapi_python_generated/models/timeline_prompt_callback.py +89 -0
- twitter_openapi_python_generated/models/timeline_prompt_content.py +124 -0
- twitter_openapi_python_generated/models/timeline_trend.py +18 -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/type_name.py +3 -0
- 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.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/METADATA +145 -9
- {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/RECORD +149 -32
- {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -17,6 +17,11 @@ 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.authenticate_periscope_response import AuthenticatePeriscopeResponse
|
|
21
|
+
from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
|
|
23
|
+
from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
|
|
24
|
+
from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
|
|
20
25
|
from twitter_openapi_python_generated.models.profile_response import ProfileResponse
|
|
21
26
|
from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse
|
|
22
27
|
|
|
@@ -38,6 +43,1523 @@ class DefaultApi:
|
|
|
38
43
|
self.api_client = api_client
|
|
39
44
|
|
|
40
45
|
|
|
46
|
+
@validate_call
|
|
47
|
+
def get_authenticate_periscope(
|
|
48
|
+
self,
|
|
49
|
+
path_query_id: StrictStr,
|
|
50
|
+
variables: StrictStr,
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> AuthenticatePeriscopeResponse:
|
|
64
|
+
"""get_authenticate_periscope
|
|
65
|
+
|
|
66
|
+
a Periscope (live video) token for the account
|
|
67
|
+
|
|
68
|
+
:param path_query_id: (required)
|
|
69
|
+
:type path_query_id: str
|
|
70
|
+
:param variables: (required)
|
|
71
|
+
:type variables: str
|
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
+
number provided, it will be total request
|
|
74
|
+
timeout. It can also be a pair (tuple) of
|
|
75
|
+
(connection, read) timeouts.
|
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
+
request; this effectively ignores the
|
|
79
|
+
authentication in the spec for a single request.
|
|
80
|
+
:type _request_auth: dict, optional
|
|
81
|
+
:param _content_type: force content-type for the request.
|
|
82
|
+
:type _content_type: str, Optional
|
|
83
|
+
:param _headers: set to override the headers for a single
|
|
84
|
+
request; this effectively ignores the headers
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _headers: dict, optional
|
|
87
|
+
:param _host_index: set to override the host_index for a single
|
|
88
|
+
request; this effectively ignores the host_index
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _host_index: int, optional
|
|
91
|
+
:return: Returns the result object.
|
|
92
|
+
""" # noqa: E501
|
|
93
|
+
|
|
94
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
95
|
+
path_query_id=path_query_id,
|
|
96
|
+
variables=variables,
|
|
97
|
+
_request_auth=_request_auth,
|
|
98
|
+
_content_type=_content_type,
|
|
99
|
+
_headers=_headers,
|
|
100
|
+
_host_index=_host_index
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
105
|
+
}
|
|
106
|
+
response_data = self.api_client.call_api(
|
|
107
|
+
*_param,
|
|
108
|
+
_request_timeout=_request_timeout
|
|
109
|
+
)
|
|
110
|
+
response_data.read()
|
|
111
|
+
return self.api_client.response_deserialize(
|
|
112
|
+
response_data=response_data,
|
|
113
|
+
response_types_map=_response_types_map,
|
|
114
|
+
).data
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@validate_call
|
|
118
|
+
def get_authenticate_periscope_with_http_info(
|
|
119
|
+
self,
|
|
120
|
+
path_query_id: StrictStr,
|
|
121
|
+
variables: StrictStr,
|
|
122
|
+
_request_timeout: Union[
|
|
123
|
+
None,
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Tuple[
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
128
|
+
]
|
|
129
|
+
] = None,
|
|
130
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_content_type: Optional[StrictStr] = None,
|
|
132
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
|
+
) -> ApiResponse[AuthenticatePeriscopeResponse]:
|
|
135
|
+
"""get_authenticate_periscope
|
|
136
|
+
|
|
137
|
+
a Periscope (live video) token for the account
|
|
138
|
+
|
|
139
|
+
:param path_query_id: (required)
|
|
140
|
+
:type path_query_id: str
|
|
141
|
+
:param variables: (required)
|
|
142
|
+
:type variables: str
|
|
143
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
144
|
+
number provided, it will be total request
|
|
145
|
+
timeout. It can also be a pair (tuple) of
|
|
146
|
+
(connection, read) timeouts.
|
|
147
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
148
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
149
|
+
request; this effectively ignores the
|
|
150
|
+
authentication in the spec for a single request.
|
|
151
|
+
:type _request_auth: dict, optional
|
|
152
|
+
:param _content_type: force content-type for the request.
|
|
153
|
+
:type _content_type: str, Optional
|
|
154
|
+
:param _headers: set to override the headers for a single
|
|
155
|
+
request; this effectively ignores the headers
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _headers: dict, optional
|
|
158
|
+
:param _host_index: set to override the host_index for a single
|
|
159
|
+
request; this effectively ignores the host_index
|
|
160
|
+
in the spec for a single request.
|
|
161
|
+
:type _host_index: int, optional
|
|
162
|
+
:return: Returns the result object.
|
|
163
|
+
""" # noqa: E501
|
|
164
|
+
|
|
165
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
166
|
+
path_query_id=path_query_id,
|
|
167
|
+
variables=variables,
|
|
168
|
+
_request_auth=_request_auth,
|
|
169
|
+
_content_type=_content_type,
|
|
170
|
+
_headers=_headers,
|
|
171
|
+
_host_index=_host_index
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
175
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
176
|
+
}
|
|
177
|
+
response_data = self.api_client.call_api(
|
|
178
|
+
*_param,
|
|
179
|
+
_request_timeout=_request_timeout
|
|
180
|
+
)
|
|
181
|
+
response_data.read()
|
|
182
|
+
return self.api_client.response_deserialize(
|
|
183
|
+
response_data=response_data,
|
|
184
|
+
response_types_map=_response_types_map,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
@validate_call
|
|
189
|
+
def get_authenticate_periscope_without_preload_content(
|
|
190
|
+
self,
|
|
191
|
+
path_query_id: StrictStr,
|
|
192
|
+
variables: StrictStr,
|
|
193
|
+
_request_timeout: Union[
|
|
194
|
+
None,
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Tuple[
|
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
199
|
+
]
|
|
200
|
+
] = None,
|
|
201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
+
_content_type: Optional[StrictStr] = None,
|
|
203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
205
|
+
) -> RESTResponseType:
|
|
206
|
+
"""get_authenticate_periscope
|
|
207
|
+
|
|
208
|
+
a Periscope (live video) token for the account
|
|
209
|
+
|
|
210
|
+
:param path_query_id: (required)
|
|
211
|
+
:type path_query_id: str
|
|
212
|
+
:param variables: (required)
|
|
213
|
+
:type variables: str
|
|
214
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
215
|
+
number provided, it will be total request
|
|
216
|
+
timeout. It can also be a pair (tuple) of
|
|
217
|
+
(connection, read) timeouts.
|
|
218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
220
|
+
request; this effectively ignores the
|
|
221
|
+
authentication in the spec for a single request.
|
|
222
|
+
:type _request_auth: dict, optional
|
|
223
|
+
:param _content_type: force content-type for the request.
|
|
224
|
+
:type _content_type: str, Optional
|
|
225
|
+
:param _headers: set to override the headers for a single
|
|
226
|
+
request; this effectively ignores the headers
|
|
227
|
+
in the spec for a single request.
|
|
228
|
+
:type _headers: dict, optional
|
|
229
|
+
:param _host_index: set to override the host_index for a single
|
|
230
|
+
request; this effectively ignores the host_index
|
|
231
|
+
in the spec for a single request.
|
|
232
|
+
:type _host_index: int, optional
|
|
233
|
+
:return: Returns the result object.
|
|
234
|
+
""" # noqa: E501
|
|
235
|
+
|
|
236
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
237
|
+
path_query_id=path_query_id,
|
|
238
|
+
variables=variables,
|
|
239
|
+
_request_auth=_request_auth,
|
|
240
|
+
_content_type=_content_type,
|
|
241
|
+
_headers=_headers,
|
|
242
|
+
_host_index=_host_index
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
247
|
+
}
|
|
248
|
+
response_data = self.api_client.call_api(
|
|
249
|
+
*_param,
|
|
250
|
+
_request_timeout=_request_timeout
|
|
251
|
+
)
|
|
252
|
+
return response_data.response
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def _get_authenticate_periscope_serialize(
|
|
256
|
+
self,
|
|
257
|
+
path_query_id,
|
|
258
|
+
variables,
|
|
259
|
+
_request_auth,
|
|
260
|
+
_content_type,
|
|
261
|
+
_headers,
|
|
262
|
+
_host_index,
|
|
263
|
+
) -> RequestSerialized:
|
|
264
|
+
|
|
265
|
+
_host = None
|
|
266
|
+
|
|
267
|
+
_collection_formats: Dict[str, str] = {
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
_path_params: Dict[str, str] = {}
|
|
271
|
+
_query_params: List[Tuple[str, str]] = []
|
|
272
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
273
|
+
_form_params: List[Tuple[str, str]] = []
|
|
274
|
+
_files: Dict[
|
|
275
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
276
|
+
] = {}
|
|
277
|
+
_body_params: Optional[bytes] = None
|
|
278
|
+
|
|
279
|
+
# process the path parameters
|
|
280
|
+
if path_query_id is not None:
|
|
281
|
+
_path_params['pathQueryId'] = path_query_id
|
|
282
|
+
# process the query parameters
|
|
283
|
+
if variables is not None:
|
|
284
|
+
|
|
285
|
+
_query_params.append(('variables', variables))
|
|
286
|
+
|
|
287
|
+
# process the header parameters
|
|
288
|
+
# process the form parameters
|
|
289
|
+
# process the body parameter
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
# set the HTTP header `Accept`
|
|
293
|
+
if 'Accept' not in _header_params:
|
|
294
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
295
|
+
[
|
|
296
|
+
'application/json'
|
|
297
|
+
]
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# authentication setting
|
|
302
|
+
_auth_settings: List[str] = [
|
|
303
|
+
'Accept',
|
|
304
|
+
'ClientLanguage',
|
|
305
|
+
'Priority',
|
|
306
|
+
'Referer',
|
|
307
|
+
'SecFetchDest',
|
|
308
|
+
'SecChUaPlatform',
|
|
309
|
+
'SecFetchMode',
|
|
310
|
+
'CsrfToken',
|
|
311
|
+
'ClientUuid',
|
|
312
|
+
'BearerAuth',
|
|
313
|
+
'GuestToken',
|
|
314
|
+
'SecChUa',
|
|
315
|
+
'CookieGt0',
|
|
316
|
+
'ClientTransactionId',
|
|
317
|
+
'ActiveUser',
|
|
318
|
+
'CookieCt0',
|
|
319
|
+
'UserAgent',
|
|
320
|
+
'AcceptLanguage',
|
|
321
|
+
'SecFetchSite',
|
|
322
|
+
'AuthType',
|
|
323
|
+
'CookieAuthToken',
|
|
324
|
+
'SecChUaMobile',
|
|
325
|
+
'AcceptEncoding'
|
|
326
|
+
]
|
|
327
|
+
|
|
328
|
+
return self.api_client.param_serialize(
|
|
329
|
+
method='GET',
|
|
330
|
+
resource_path='/graphql/{pathQueryId}/AuthenticatePeriscope',
|
|
331
|
+
path_params=_path_params,
|
|
332
|
+
query_params=_query_params,
|
|
333
|
+
header_params=_header_params,
|
|
334
|
+
body=_body_params,
|
|
335
|
+
post_params=_form_params,
|
|
336
|
+
files=_files,
|
|
337
|
+
auth_settings=_auth_settings,
|
|
338
|
+
collection_formats=_collection_formats,
|
|
339
|
+
_host=_host,
|
|
340
|
+
_request_auth=_request_auth
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
@validate_call
|
|
347
|
+
def get_creator_studio_tab_bar_item_query(
|
|
348
|
+
self,
|
|
349
|
+
path_query_id: StrictStr,
|
|
350
|
+
variables: StrictStr,
|
|
351
|
+
_request_timeout: Union[
|
|
352
|
+
None,
|
|
353
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
354
|
+
Tuple[
|
|
355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
356
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
357
|
+
]
|
|
358
|
+
] = None,
|
|
359
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
360
|
+
_content_type: Optional[StrictStr] = None,
|
|
361
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
362
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
363
|
+
) -> CreatorStudioTabBarItemQueryResponse:
|
|
364
|
+
"""get_creator_studio_tab_bar_item_query
|
|
365
|
+
|
|
366
|
+
audience rewards tasks shown in Creator Studio
|
|
367
|
+
|
|
368
|
+
:param path_query_id: (required)
|
|
369
|
+
:type path_query_id: str
|
|
370
|
+
:param variables: (required)
|
|
371
|
+
:type variables: str
|
|
372
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
373
|
+
number provided, it will be total request
|
|
374
|
+
timeout. It can also be a pair (tuple) of
|
|
375
|
+
(connection, read) timeouts.
|
|
376
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
377
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
378
|
+
request; this effectively ignores the
|
|
379
|
+
authentication in the spec for a single request.
|
|
380
|
+
:type _request_auth: dict, optional
|
|
381
|
+
:param _content_type: force content-type for the request.
|
|
382
|
+
:type _content_type: str, Optional
|
|
383
|
+
:param _headers: set to override the headers for a single
|
|
384
|
+
request; this effectively ignores the headers
|
|
385
|
+
in the spec for a single request.
|
|
386
|
+
:type _headers: dict, optional
|
|
387
|
+
:param _host_index: set to override the host_index for a single
|
|
388
|
+
request; this effectively ignores the host_index
|
|
389
|
+
in the spec for a single request.
|
|
390
|
+
:type _host_index: int, optional
|
|
391
|
+
:return: Returns the result object.
|
|
392
|
+
""" # noqa: E501
|
|
393
|
+
|
|
394
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
395
|
+
path_query_id=path_query_id,
|
|
396
|
+
variables=variables,
|
|
397
|
+
_request_auth=_request_auth,
|
|
398
|
+
_content_type=_content_type,
|
|
399
|
+
_headers=_headers,
|
|
400
|
+
_host_index=_host_index
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
404
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
405
|
+
}
|
|
406
|
+
response_data = self.api_client.call_api(
|
|
407
|
+
*_param,
|
|
408
|
+
_request_timeout=_request_timeout
|
|
409
|
+
)
|
|
410
|
+
response_data.read()
|
|
411
|
+
return self.api_client.response_deserialize(
|
|
412
|
+
response_data=response_data,
|
|
413
|
+
response_types_map=_response_types_map,
|
|
414
|
+
).data
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
@validate_call
|
|
418
|
+
def get_creator_studio_tab_bar_item_query_with_http_info(
|
|
419
|
+
self,
|
|
420
|
+
path_query_id: StrictStr,
|
|
421
|
+
variables: StrictStr,
|
|
422
|
+
_request_timeout: Union[
|
|
423
|
+
None,
|
|
424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
425
|
+
Tuple[
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
427
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
428
|
+
]
|
|
429
|
+
] = None,
|
|
430
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
431
|
+
_content_type: Optional[StrictStr] = None,
|
|
432
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
433
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
434
|
+
) -> ApiResponse[CreatorStudioTabBarItemQueryResponse]:
|
|
435
|
+
"""get_creator_studio_tab_bar_item_query
|
|
436
|
+
|
|
437
|
+
audience rewards tasks shown in Creator Studio
|
|
438
|
+
|
|
439
|
+
:param path_query_id: (required)
|
|
440
|
+
:type path_query_id: str
|
|
441
|
+
:param variables: (required)
|
|
442
|
+
:type variables: str
|
|
443
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
444
|
+
number provided, it will be total request
|
|
445
|
+
timeout. It can also be a pair (tuple) of
|
|
446
|
+
(connection, read) timeouts.
|
|
447
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
448
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
449
|
+
request; this effectively ignores the
|
|
450
|
+
authentication in the spec for a single request.
|
|
451
|
+
:type _request_auth: dict, optional
|
|
452
|
+
:param _content_type: force content-type for the request.
|
|
453
|
+
:type _content_type: str, Optional
|
|
454
|
+
:param _headers: set to override the headers for a single
|
|
455
|
+
request; this effectively ignores the headers
|
|
456
|
+
in the spec for a single request.
|
|
457
|
+
:type _headers: dict, optional
|
|
458
|
+
:param _host_index: set to override the host_index for a single
|
|
459
|
+
request; this effectively ignores the host_index
|
|
460
|
+
in the spec for a single request.
|
|
461
|
+
:type _host_index: int, optional
|
|
462
|
+
:return: Returns the result object.
|
|
463
|
+
""" # noqa: E501
|
|
464
|
+
|
|
465
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
466
|
+
path_query_id=path_query_id,
|
|
467
|
+
variables=variables,
|
|
468
|
+
_request_auth=_request_auth,
|
|
469
|
+
_content_type=_content_type,
|
|
470
|
+
_headers=_headers,
|
|
471
|
+
_host_index=_host_index
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
475
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
476
|
+
}
|
|
477
|
+
response_data = self.api_client.call_api(
|
|
478
|
+
*_param,
|
|
479
|
+
_request_timeout=_request_timeout
|
|
480
|
+
)
|
|
481
|
+
response_data.read()
|
|
482
|
+
return self.api_client.response_deserialize(
|
|
483
|
+
response_data=response_data,
|
|
484
|
+
response_types_map=_response_types_map,
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
@validate_call
|
|
489
|
+
def get_creator_studio_tab_bar_item_query_without_preload_content(
|
|
490
|
+
self,
|
|
491
|
+
path_query_id: StrictStr,
|
|
492
|
+
variables: StrictStr,
|
|
493
|
+
_request_timeout: Union[
|
|
494
|
+
None,
|
|
495
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
496
|
+
Tuple[
|
|
497
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
498
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
499
|
+
]
|
|
500
|
+
] = None,
|
|
501
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
502
|
+
_content_type: Optional[StrictStr] = None,
|
|
503
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
504
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
505
|
+
) -> RESTResponseType:
|
|
506
|
+
"""get_creator_studio_tab_bar_item_query
|
|
507
|
+
|
|
508
|
+
audience rewards tasks shown in Creator Studio
|
|
509
|
+
|
|
510
|
+
:param path_query_id: (required)
|
|
511
|
+
:type path_query_id: str
|
|
512
|
+
:param variables: (required)
|
|
513
|
+
:type variables: str
|
|
514
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
515
|
+
number provided, it will be total request
|
|
516
|
+
timeout. It can also be a pair (tuple) of
|
|
517
|
+
(connection, read) timeouts.
|
|
518
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
519
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
520
|
+
request; this effectively ignores the
|
|
521
|
+
authentication in the spec for a single request.
|
|
522
|
+
:type _request_auth: dict, optional
|
|
523
|
+
:param _content_type: force content-type for the request.
|
|
524
|
+
:type _content_type: str, Optional
|
|
525
|
+
:param _headers: set to override the headers for a single
|
|
526
|
+
request; this effectively ignores the headers
|
|
527
|
+
in the spec for a single request.
|
|
528
|
+
:type _headers: dict, optional
|
|
529
|
+
:param _host_index: set to override the host_index for a single
|
|
530
|
+
request; this effectively ignores the host_index
|
|
531
|
+
in the spec for a single request.
|
|
532
|
+
:type _host_index: int, optional
|
|
533
|
+
:return: Returns the result object.
|
|
534
|
+
""" # noqa: E501
|
|
535
|
+
|
|
536
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
537
|
+
path_query_id=path_query_id,
|
|
538
|
+
variables=variables,
|
|
539
|
+
_request_auth=_request_auth,
|
|
540
|
+
_content_type=_content_type,
|
|
541
|
+
_headers=_headers,
|
|
542
|
+
_host_index=_host_index
|
|
543
|
+
)
|
|
544
|
+
|
|
545
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
546
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
547
|
+
}
|
|
548
|
+
response_data = self.api_client.call_api(
|
|
549
|
+
*_param,
|
|
550
|
+
_request_timeout=_request_timeout
|
|
551
|
+
)
|
|
552
|
+
return response_data.response
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
def _get_creator_studio_tab_bar_item_query_serialize(
|
|
556
|
+
self,
|
|
557
|
+
path_query_id,
|
|
558
|
+
variables,
|
|
559
|
+
_request_auth,
|
|
560
|
+
_content_type,
|
|
561
|
+
_headers,
|
|
562
|
+
_host_index,
|
|
563
|
+
) -> RequestSerialized:
|
|
564
|
+
|
|
565
|
+
_host = None
|
|
566
|
+
|
|
567
|
+
_collection_formats: Dict[str, str] = {
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
_path_params: Dict[str, str] = {}
|
|
571
|
+
_query_params: List[Tuple[str, str]] = []
|
|
572
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
573
|
+
_form_params: List[Tuple[str, str]] = []
|
|
574
|
+
_files: Dict[
|
|
575
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
576
|
+
] = {}
|
|
577
|
+
_body_params: Optional[bytes] = None
|
|
578
|
+
|
|
579
|
+
# process the path parameters
|
|
580
|
+
if path_query_id is not None:
|
|
581
|
+
_path_params['pathQueryId'] = path_query_id
|
|
582
|
+
# process the query parameters
|
|
583
|
+
if variables is not None:
|
|
584
|
+
|
|
585
|
+
_query_params.append(('variables', variables))
|
|
586
|
+
|
|
587
|
+
# process the header parameters
|
|
588
|
+
# process the form parameters
|
|
589
|
+
# process the body parameter
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
# set the HTTP header `Accept`
|
|
593
|
+
if 'Accept' not in _header_params:
|
|
594
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
595
|
+
[
|
|
596
|
+
'application/json'
|
|
597
|
+
]
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
# authentication setting
|
|
602
|
+
_auth_settings: List[str] = [
|
|
603
|
+
'Accept',
|
|
604
|
+
'ClientLanguage',
|
|
605
|
+
'Priority',
|
|
606
|
+
'Referer',
|
|
607
|
+
'SecFetchDest',
|
|
608
|
+
'SecChUaPlatform',
|
|
609
|
+
'SecFetchMode',
|
|
610
|
+
'CsrfToken',
|
|
611
|
+
'ClientUuid',
|
|
612
|
+
'BearerAuth',
|
|
613
|
+
'GuestToken',
|
|
614
|
+
'SecChUa',
|
|
615
|
+
'CookieGt0',
|
|
616
|
+
'ClientTransactionId',
|
|
617
|
+
'ActiveUser',
|
|
618
|
+
'CookieCt0',
|
|
619
|
+
'UserAgent',
|
|
620
|
+
'AcceptLanguage',
|
|
621
|
+
'SecFetchSite',
|
|
622
|
+
'AuthType',
|
|
623
|
+
'CookieAuthToken',
|
|
624
|
+
'SecChUaMobile',
|
|
625
|
+
'AcceptEncoding'
|
|
626
|
+
]
|
|
627
|
+
|
|
628
|
+
return self.api_client.param_serialize(
|
|
629
|
+
method='GET',
|
|
630
|
+
resource_path='/graphql/{pathQueryId}/CreatorStudioTabBarItemQuery',
|
|
631
|
+
path_params=_path_params,
|
|
632
|
+
query_params=_query_params,
|
|
633
|
+
header_params=_header_params,
|
|
634
|
+
body=_body_params,
|
|
635
|
+
post_params=_form_params,
|
|
636
|
+
files=_files,
|
|
637
|
+
auth_settings=_auth_settings,
|
|
638
|
+
collection_formats=_collection_formats,
|
|
639
|
+
_host=_host,
|
|
640
|
+
_request_auth=_request_auth
|
|
641
|
+
)
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
@validate_call
|
|
647
|
+
def get_data_saver_mode(
|
|
648
|
+
self,
|
|
649
|
+
path_query_id: StrictStr,
|
|
650
|
+
variables: StrictStr,
|
|
651
|
+
_request_timeout: Union[
|
|
652
|
+
None,
|
|
653
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
654
|
+
Tuple[
|
|
655
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
656
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
657
|
+
]
|
|
658
|
+
] = None,
|
|
659
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
660
|
+
_content_type: Optional[StrictStr] = None,
|
|
661
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
662
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
663
|
+
) -> DataSaverModeResponse:
|
|
664
|
+
"""get_data_saver_mode
|
|
665
|
+
|
|
666
|
+
data saver setting of the account
|
|
667
|
+
|
|
668
|
+
:param path_query_id: (required)
|
|
669
|
+
:type path_query_id: str
|
|
670
|
+
:param variables: (required)
|
|
671
|
+
:type variables: str
|
|
672
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
673
|
+
number provided, it will be total request
|
|
674
|
+
timeout. It can also be a pair (tuple) of
|
|
675
|
+
(connection, read) timeouts.
|
|
676
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
677
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
678
|
+
request; this effectively ignores the
|
|
679
|
+
authentication in the spec for a single request.
|
|
680
|
+
:type _request_auth: dict, optional
|
|
681
|
+
:param _content_type: force content-type for the request.
|
|
682
|
+
:type _content_type: str, Optional
|
|
683
|
+
:param _headers: set to override the headers for a single
|
|
684
|
+
request; this effectively ignores the headers
|
|
685
|
+
in the spec for a single request.
|
|
686
|
+
:type _headers: dict, optional
|
|
687
|
+
:param _host_index: set to override the host_index for a single
|
|
688
|
+
request; this effectively ignores the host_index
|
|
689
|
+
in the spec for a single request.
|
|
690
|
+
:type _host_index: int, optional
|
|
691
|
+
:return: Returns the result object.
|
|
692
|
+
""" # noqa: E501
|
|
693
|
+
|
|
694
|
+
_param = self._get_data_saver_mode_serialize(
|
|
695
|
+
path_query_id=path_query_id,
|
|
696
|
+
variables=variables,
|
|
697
|
+
_request_auth=_request_auth,
|
|
698
|
+
_content_type=_content_type,
|
|
699
|
+
_headers=_headers,
|
|
700
|
+
_host_index=_host_index
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
704
|
+
'200': "DataSaverModeResponse",
|
|
705
|
+
}
|
|
706
|
+
response_data = self.api_client.call_api(
|
|
707
|
+
*_param,
|
|
708
|
+
_request_timeout=_request_timeout
|
|
709
|
+
)
|
|
710
|
+
response_data.read()
|
|
711
|
+
return self.api_client.response_deserialize(
|
|
712
|
+
response_data=response_data,
|
|
713
|
+
response_types_map=_response_types_map,
|
|
714
|
+
).data
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
@validate_call
|
|
718
|
+
def get_data_saver_mode_with_http_info(
|
|
719
|
+
self,
|
|
720
|
+
path_query_id: StrictStr,
|
|
721
|
+
variables: StrictStr,
|
|
722
|
+
_request_timeout: Union[
|
|
723
|
+
None,
|
|
724
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
725
|
+
Tuple[
|
|
726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
728
|
+
]
|
|
729
|
+
] = None,
|
|
730
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
731
|
+
_content_type: Optional[StrictStr] = None,
|
|
732
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
|
+
) -> ApiResponse[DataSaverModeResponse]:
|
|
735
|
+
"""get_data_saver_mode
|
|
736
|
+
|
|
737
|
+
data saver setting of the account
|
|
738
|
+
|
|
739
|
+
:param path_query_id: (required)
|
|
740
|
+
:type path_query_id: str
|
|
741
|
+
:param variables: (required)
|
|
742
|
+
:type variables: str
|
|
743
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
744
|
+
number provided, it will be total request
|
|
745
|
+
timeout. It can also be a pair (tuple) of
|
|
746
|
+
(connection, read) timeouts.
|
|
747
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
748
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
749
|
+
request; this effectively ignores the
|
|
750
|
+
authentication in the spec for a single request.
|
|
751
|
+
:type _request_auth: dict, optional
|
|
752
|
+
:param _content_type: force content-type for the request.
|
|
753
|
+
:type _content_type: str, Optional
|
|
754
|
+
:param _headers: set to override the headers for a single
|
|
755
|
+
request; this effectively ignores the headers
|
|
756
|
+
in the spec for a single request.
|
|
757
|
+
:type _headers: dict, optional
|
|
758
|
+
:param _host_index: set to override the host_index for a single
|
|
759
|
+
request; this effectively ignores the host_index
|
|
760
|
+
in the spec for a single request.
|
|
761
|
+
:type _host_index: int, optional
|
|
762
|
+
:return: Returns the result object.
|
|
763
|
+
""" # noqa: E501
|
|
764
|
+
|
|
765
|
+
_param = self._get_data_saver_mode_serialize(
|
|
766
|
+
path_query_id=path_query_id,
|
|
767
|
+
variables=variables,
|
|
768
|
+
_request_auth=_request_auth,
|
|
769
|
+
_content_type=_content_type,
|
|
770
|
+
_headers=_headers,
|
|
771
|
+
_host_index=_host_index
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
775
|
+
'200': "DataSaverModeResponse",
|
|
776
|
+
}
|
|
777
|
+
response_data = self.api_client.call_api(
|
|
778
|
+
*_param,
|
|
779
|
+
_request_timeout=_request_timeout
|
|
780
|
+
)
|
|
781
|
+
response_data.read()
|
|
782
|
+
return self.api_client.response_deserialize(
|
|
783
|
+
response_data=response_data,
|
|
784
|
+
response_types_map=_response_types_map,
|
|
785
|
+
)
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
@validate_call
|
|
789
|
+
def get_data_saver_mode_without_preload_content(
|
|
790
|
+
self,
|
|
791
|
+
path_query_id: StrictStr,
|
|
792
|
+
variables: StrictStr,
|
|
793
|
+
_request_timeout: Union[
|
|
794
|
+
None,
|
|
795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
796
|
+
Tuple[
|
|
797
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
798
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
799
|
+
]
|
|
800
|
+
] = None,
|
|
801
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
802
|
+
_content_type: Optional[StrictStr] = None,
|
|
803
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
804
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
805
|
+
) -> RESTResponseType:
|
|
806
|
+
"""get_data_saver_mode
|
|
807
|
+
|
|
808
|
+
data saver setting of the account
|
|
809
|
+
|
|
810
|
+
:param path_query_id: (required)
|
|
811
|
+
:type path_query_id: str
|
|
812
|
+
:param variables: (required)
|
|
813
|
+
:type variables: str
|
|
814
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
815
|
+
number provided, it will be total request
|
|
816
|
+
timeout. It can also be a pair (tuple) of
|
|
817
|
+
(connection, read) timeouts.
|
|
818
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
819
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
820
|
+
request; this effectively ignores the
|
|
821
|
+
authentication in the spec for a single request.
|
|
822
|
+
:type _request_auth: dict, optional
|
|
823
|
+
:param _content_type: force content-type for the request.
|
|
824
|
+
:type _content_type: str, Optional
|
|
825
|
+
:param _headers: set to override the headers for a single
|
|
826
|
+
request; this effectively ignores the headers
|
|
827
|
+
in the spec for a single request.
|
|
828
|
+
:type _headers: dict, optional
|
|
829
|
+
:param _host_index: set to override the host_index for a single
|
|
830
|
+
request; this effectively ignores the host_index
|
|
831
|
+
in the spec for a single request.
|
|
832
|
+
:type _host_index: int, optional
|
|
833
|
+
:return: Returns the result object.
|
|
834
|
+
""" # noqa: E501
|
|
835
|
+
|
|
836
|
+
_param = self._get_data_saver_mode_serialize(
|
|
837
|
+
path_query_id=path_query_id,
|
|
838
|
+
variables=variables,
|
|
839
|
+
_request_auth=_request_auth,
|
|
840
|
+
_content_type=_content_type,
|
|
841
|
+
_headers=_headers,
|
|
842
|
+
_host_index=_host_index
|
|
843
|
+
)
|
|
844
|
+
|
|
845
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
846
|
+
'200': "DataSaverModeResponse",
|
|
847
|
+
}
|
|
848
|
+
response_data = self.api_client.call_api(
|
|
849
|
+
*_param,
|
|
850
|
+
_request_timeout=_request_timeout
|
|
851
|
+
)
|
|
852
|
+
return response_data.response
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
def _get_data_saver_mode_serialize(
|
|
856
|
+
self,
|
|
857
|
+
path_query_id,
|
|
858
|
+
variables,
|
|
859
|
+
_request_auth,
|
|
860
|
+
_content_type,
|
|
861
|
+
_headers,
|
|
862
|
+
_host_index,
|
|
863
|
+
) -> RequestSerialized:
|
|
864
|
+
|
|
865
|
+
_host = None
|
|
866
|
+
|
|
867
|
+
_collection_formats: Dict[str, str] = {
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
_path_params: Dict[str, str] = {}
|
|
871
|
+
_query_params: List[Tuple[str, str]] = []
|
|
872
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
873
|
+
_form_params: List[Tuple[str, str]] = []
|
|
874
|
+
_files: Dict[
|
|
875
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
876
|
+
] = {}
|
|
877
|
+
_body_params: Optional[bytes] = None
|
|
878
|
+
|
|
879
|
+
# process the path parameters
|
|
880
|
+
if path_query_id is not None:
|
|
881
|
+
_path_params['pathQueryId'] = path_query_id
|
|
882
|
+
# process the query parameters
|
|
883
|
+
if variables is not None:
|
|
884
|
+
|
|
885
|
+
_query_params.append(('variables', variables))
|
|
886
|
+
|
|
887
|
+
# process the header parameters
|
|
888
|
+
# process the form parameters
|
|
889
|
+
# process the body parameter
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
# set the HTTP header `Accept`
|
|
893
|
+
if 'Accept' not in _header_params:
|
|
894
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
895
|
+
[
|
|
896
|
+
'application/json'
|
|
897
|
+
]
|
|
898
|
+
)
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
# authentication setting
|
|
902
|
+
_auth_settings: List[str] = [
|
|
903
|
+
'Accept',
|
|
904
|
+
'ClientLanguage',
|
|
905
|
+
'Priority',
|
|
906
|
+
'Referer',
|
|
907
|
+
'SecFetchDest',
|
|
908
|
+
'SecChUaPlatform',
|
|
909
|
+
'SecFetchMode',
|
|
910
|
+
'CsrfToken',
|
|
911
|
+
'ClientUuid',
|
|
912
|
+
'BearerAuth',
|
|
913
|
+
'GuestToken',
|
|
914
|
+
'SecChUa',
|
|
915
|
+
'CookieGt0',
|
|
916
|
+
'ClientTransactionId',
|
|
917
|
+
'ActiveUser',
|
|
918
|
+
'CookieCt0',
|
|
919
|
+
'UserAgent',
|
|
920
|
+
'AcceptLanguage',
|
|
921
|
+
'SecFetchSite',
|
|
922
|
+
'AuthType',
|
|
923
|
+
'CookieAuthToken',
|
|
924
|
+
'SecChUaMobile',
|
|
925
|
+
'AcceptEncoding'
|
|
926
|
+
]
|
|
927
|
+
|
|
928
|
+
return self.api_client.param_serialize(
|
|
929
|
+
method='GET',
|
|
930
|
+
resource_path='/graphql/{pathQueryId}/DataSaverMode',
|
|
931
|
+
path_params=_path_params,
|
|
932
|
+
query_params=_query_params,
|
|
933
|
+
header_params=_header_params,
|
|
934
|
+
body=_body_params,
|
|
935
|
+
post_params=_form_params,
|
|
936
|
+
files=_files,
|
|
937
|
+
auth_settings=_auth_settings,
|
|
938
|
+
collection_formats=_collection_formats,
|
|
939
|
+
_host=_host,
|
|
940
|
+
_request_auth=_request_auth
|
|
941
|
+
)
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
@validate_call
|
|
947
|
+
def get_grok_home(
|
|
948
|
+
self,
|
|
949
|
+
path_query_id: StrictStr,
|
|
950
|
+
variables: StrictStr,
|
|
951
|
+
_request_timeout: Union[
|
|
952
|
+
None,
|
|
953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
954
|
+
Tuple[
|
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
956
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
957
|
+
]
|
|
958
|
+
] = None,
|
|
959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
960
|
+
_content_type: Optional[StrictStr] = None,
|
|
961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
963
|
+
) -> GrokHomeResponse:
|
|
964
|
+
"""get_grok_home
|
|
965
|
+
|
|
966
|
+
Grok home: model options, prompts and eligibility
|
|
967
|
+
|
|
968
|
+
:param path_query_id: (required)
|
|
969
|
+
:type path_query_id: str
|
|
970
|
+
:param variables: (required)
|
|
971
|
+
:type variables: str
|
|
972
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
973
|
+
number provided, it will be total request
|
|
974
|
+
timeout. It can also be a pair (tuple) of
|
|
975
|
+
(connection, read) timeouts.
|
|
976
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
977
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
978
|
+
request; this effectively ignores the
|
|
979
|
+
authentication in the spec for a single request.
|
|
980
|
+
:type _request_auth: dict, optional
|
|
981
|
+
:param _content_type: force content-type for the request.
|
|
982
|
+
:type _content_type: str, Optional
|
|
983
|
+
:param _headers: set to override the headers for a single
|
|
984
|
+
request; this effectively ignores the headers
|
|
985
|
+
in the spec for a single request.
|
|
986
|
+
:type _headers: dict, optional
|
|
987
|
+
:param _host_index: set to override the host_index for a single
|
|
988
|
+
request; this effectively ignores the host_index
|
|
989
|
+
in the spec for a single request.
|
|
990
|
+
:type _host_index: int, optional
|
|
991
|
+
:return: Returns the result object.
|
|
992
|
+
""" # noqa: E501
|
|
993
|
+
|
|
994
|
+
_param = self._get_grok_home_serialize(
|
|
995
|
+
path_query_id=path_query_id,
|
|
996
|
+
variables=variables,
|
|
997
|
+
_request_auth=_request_auth,
|
|
998
|
+
_content_type=_content_type,
|
|
999
|
+
_headers=_headers,
|
|
1000
|
+
_host_index=_host_index
|
|
1001
|
+
)
|
|
1002
|
+
|
|
1003
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1004
|
+
'200': "GrokHomeResponse",
|
|
1005
|
+
}
|
|
1006
|
+
response_data = self.api_client.call_api(
|
|
1007
|
+
*_param,
|
|
1008
|
+
_request_timeout=_request_timeout
|
|
1009
|
+
)
|
|
1010
|
+
response_data.read()
|
|
1011
|
+
return self.api_client.response_deserialize(
|
|
1012
|
+
response_data=response_data,
|
|
1013
|
+
response_types_map=_response_types_map,
|
|
1014
|
+
).data
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
@validate_call
|
|
1018
|
+
def get_grok_home_with_http_info(
|
|
1019
|
+
self,
|
|
1020
|
+
path_query_id: StrictStr,
|
|
1021
|
+
variables: StrictStr,
|
|
1022
|
+
_request_timeout: Union[
|
|
1023
|
+
None,
|
|
1024
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1025
|
+
Tuple[
|
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1027
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1028
|
+
]
|
|
1029
|
+
] = None,
|
|
1030
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1031
|
+
_content_type: Optional[StrictStr] = None,
|
|
1032
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1033
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1034
|
+
) -> ApiResponse[GrokHomeResponse]:
|
|
1035
|
+
"""get_grok_home
|
|
1036
|
+
|
|
1037
|
+
Grok home: model options, prompts and eligibility
|
|
1038
|
+
|
|
1039
|
+
:param path_query_id: (required)
|
|
1040
|
+
:type path_query_id: str
|
|
1041
|
+
:param variables: (required)
|
|
1042
|
+
:type variables: str
|
|
1043
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1044
|
+
number provided, it will be total request
|
|
1045
|
+
timeout. It can also be a pair (tuple) of
|
|
1046
|
+
(connection, read) timeouts.
|
|
1047
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1048
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1049
|
+
request; this effectively ignores the
|
|
1050
|
+
authentication in the spec for a single request.
|
|
1051
|
+
:type _request_auth: dict, optional
|
|
1052
|
+
:param _content_type: force content-type for the request.
|
|
1053
|
+
:type _content_type: str, Optional
|
|
1054
|
+
:param _headers: set to override the headers for a single
|
|
1055
|
+
request; this effectively ignores the headers
|
|
1056
|
+
in the spec for a single request.
|
|
1057
|
+
:type _headers: dict, optional
|
|
1058
|
+
:param _host_index: set to override the host_index for a single
|
|
1059
|
+
request; this effectively ignores the host_index
|
|
1060
|
+
in the spec for a single request.
|
|
1061
|
+
:type _host_index: int, optional
|
|
1062
|
+
:return: Returns the result object.
|
|
1063
|
+
""" # noqa: E501
|
|
1064
|
+
|
|
1065
|
+
_param = self._get_grok_home_serialize(
|
|
1066
|
+
path_query_id=path_query_id,
|
|
1067
|
+
variables=variables,
|
|
1068
|
+
_request_auth=_request_auth,
|
|
1069
|
+
_content_type=_content_type,
|
|
1070
|
+
_headers=_headers,
|
|
1071
|
+
_host_index=_host_index
|
|
1072
|
+
)
|
|
1073
|
+
|
|
1074
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1075
|
+
'200': "GrokHomeResponse",
|
|
1076
|
+
}
|
|
1077
|
+
response_data = self.api_client.call_api(
|
|
1078
|
+
*_param,
|
|
1079
|
+
_request_timeout=_request_timeout
|
|
1080
|
+
)
|
|
1081
|
+
response_data.read()
|
|
1082
|
+
return self.api_client.response_deserialize(
|
|
1083
|
+
response_data=response_data,
|
|
1084
|
+
response_types_map=_response_types_map,
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
@validate_call
|
|
1089
|
+
def get_grok_home_without_preload_content(
|
|
1090
|
+
self,
|
|
1091
|
+
path_query_id: StrictStr,
|
|
1092
|
+
variables: StrictStr,
|
|
1093
|
+
_request_timeout: Union[
|
|
1094
|
+
None,
|
|
1095
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1096
|
+
Tuple[
|
|
1097
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1098
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1099
|
+
]
|
|
1100
|
+
] = None,
|
|
1101
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1102
|
+
_content_type: Optional[StrictStr] = None,
|
|
1103
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1104
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1105
|
+
) -> RESTResponseType:
|
|
1106
|
+
"""get_grok_home
|
|
1107
|
+
|
|
1108
|
+
Grok home: model options, prompts and eligibility
|
|
1109
|
+
|
|
1110
|
+
:param path_query_id: (required)
|
|
1111
|
+
:type path_query_id: str
|
|
1112
|
+
:param variables: (required)
|
|
1113
|
+
:type variables: str
|
|
1114
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1115
|
+
number provided, it will be total request
|
|
1116
|
+
timeout. It can also be a pair (tuple) of
|
|
1117
|
+
(connection, read) timeouts.
|
|
1118
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1119
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1120
|
+
request; this effectively ignores the
|
|
1121
|
+
authentication in the spec for a single request.
|
|
1122
|
+
:type _request_auth: dict, optional
|
|
1123
|
+
:param _content_type: force content-type for the request.
|
|
1124
|
+
:type _content_type: str, Optional
|
|
1125
|
+
:param _headers: set to override the headers for a single
|
|
1126
|
+
request; this effectively ignores the headers
|
|
1127
|
+
in the spec for a single request.
|
|
1128
|
+
:type _headers: dict, optional
|
|
1129
|
+
:param _host_index: set to override the host_index for a single
|
|
1130
|
+
request; this effectively ignores the host_index
|
|
1131
|
+
in the spec for a single request.
|
|
1132
|
+
:type _host_index: int, optional
|
|
1133
|
+
:return: Returns the result object.
|
|
1134
|
+
""" # noqa: E501
|
|
1135
|
+
|
|
1136
|
+
_param = self._get_grok_home_serialize(
|
|
1137
|
+
path_query_id=path_query_id,
|
|
1138
|
+
variables=variables,
|
|
1139
|
+
_request_auth=_request_auth,
|
|
1140
|
+
_content_type=_content_type,
|
|
1141
|
+
_headers=_headers,
|
|
1142
|
+
_host_index=_host_index
|
|
1143
|
+
)
|
|
1144
|
+
|
|
1145
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1146
|
+
'200': "GrokHomeResponse",
|
|
1147
|
+
}
|
|
1148
|
+
response_data = self.api_client.call_api(
|
|
1149
|
+
*_param,
|
|
1150
|
+
_request_timeout=_request_timeout
|
|
1151
|
+
)
|
|
1152
|
+
return response_data.response
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
def _get_grok_home_serialize(
|
|
1156
|
+
self,
|
|
1157
|
+
path_query_id,
|
|
1158
|
+
variables,
|
|
1159
|
+
_request_auth,
|
|
1160
|
+
_content_type,
|
|
1161
|
+
_headers,
|
|
1162
|
+
_host_index,
|
|
1163
|
+
) -> RequestSerialized:
|
|
1164
|
+
|
|
1165
|
+
_host = None
|
|
1166
|
+
|
|
1167
|
+
_collection_formats: Dict[str, str] = {
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
_path_params: Dict[str, str] = {}
|
|
1171
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1172
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1173
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1174
|
+
_files: Dict[
|
|
1175
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1176
|
+
] = {}
|
|
1177
|
+
_body_params: Optional[bytes] = None
|
|
1178
|
+
|
|
1179
|
+
# process the path parameters
|
|
1180
|
+
if path_query_id is not None:
|
|
1181
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1182
|
+
# process the query parameters
|
|
1183
|
+
if variables is not None:
|
|
1184
|
+
|
|
1185
|
+
_query_params.append(('variables', variables))
|
|
1186
|
+
|
|
1187
|
+
# process the header parameters
|
|
1188
|
+
# process the form parameters
|
|
1189
|
+
# process the body parameter
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
# set the HTTP header `Accept`
|
|
1193
|
+
if 'Accept' not in _header_params:
|
|
1194
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1195
|
+
[
|
|
1196
|
+
'application/json'
|
|
1197
|
+
]
|
|
1198
|
+
)
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
# authentication setting
|
|
1202
|
+
_auth_settings: List[str] = [
|
|
1203
|
+
'Accept',
|
|
1204
|
+
'ClientLanguage',
|
|
1205
|
+
'Priority',
|
|
1206
|
+
'Referer',
|
|
1207
|
+
'SecFetchDest',
|
|
1208
|
+
'SecChUaPlatform',
|
|
1209
|
+
'SecFetchMode',
|
|
1210
|
+
'CsrfToken',
|
|
1211
|
+
'ClientUuid',
|
|
1212
|
+
'BearerAuth',
|
|
1213
|
+
'GuestToken',
|
|
1214
|
+
'SecChUa',
|
|
1215
|
+
'CookieGt0',
|
|
1216
|
+
'ClientTransactionId',
|
|
1217
|
+
'ActiveUser',
|
|
1218
|
+
'CookieCt0',
|
|
1219
|
+
'UserAgent',
|
|
1220
|
+
'AcceptLanguage',
|
|
1221
|
+
'SecFetchSite',
|
|
1222
|
+
'AuthType',
|
|
1223
|
+
'CookieAuthToken',
|
|
1224
|
+
'SecChUaMobile',
|
|
1225
|
+
'AcceptEncoding'
|
|
1226
|
+
]
|
|
1227
|
+
|
|
1228
|
+
return self.api_client.param_serialize(
|
|
1229
|
+
method='GET',
|
|
1230
|
+
resource_path='/graphql/{pathQueryId}/GrokHome',
|
|
1231
|
+
path_params=_path_params,
|
|
1232
|
+
query_params=_query_params,
|
|
1233
|
+
header_params=_header_params,
|
|
1234
|
+
body=_body_params,
|
|
1235
|
+
post_params=_form_params,
|
|
1236
|
+
files=_files,
|
|
1237
|
+
auth_settings=_auth_settings,
|
|
1238
|
+
collection_formats=_collection_formats,
|
|
1239
|
+
_host=_host,
|
|
1240
|
+
_request_auth=_request_auth
|
|
1241
|
+
)
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
@validate_call
|
|
1247
|
+
def get_pinned_timelines(
|
|
1248
|
+
self,
|
|
1249
|
+
path_query_id: StrictStr,
|
|
1250
|
+
features: StrictStr,
|
|
1251
|
+
variables: StrictStr,
|
|
1252
|
+
_request_timeout: Union[
|
|
1253
|
+
None,
|
|
1254
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1255
|
+
Tuple[
|
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1257
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1258
|
+
]
|
|
1259
|
+
] = None,
|
|
1260
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1261
|
+
_content_type: Optional[StrictStr] = None,
|
|
1262
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1263
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1264
|
+
) -> PinnedTimelinesResponse:
|
|
1265
|
+
"""get_pinned_timelines
|
|
1266
|
+
|
|
1267
|
+
the account's pinned timelines
|
|
1268
|
+
|
|
1269
|
+
:param path_query_id: (required)
|
|
1270
|
+
:type path_query_id: str
|
|
1271
|
+
:param features: (required)
|
|
1272
|
+
:type features: str
|
|
1273
|
+
:param variables: (required)
|
|
1274
|
+
:type variables: str
|
|
1275
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1276
|
+
number provided, it will be total request
|
|
1277
|
+
timeout. It can also be a pair (tuple) of
|
|
1278
|
+
(connection, read) timeouts.
|
|
1279
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1280
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1281
|
+
request; this effectively ignores the
|
|
1282
|
+
authentication in the spec for a single request.
|
|
1283
|
+
:type _request_auth: dict, optional
|
|
1284
|
+
:param _content_type: force content-type for the request.
|
|
1285
|
+
:type _content_type: str, Optional
|
|
1286
|
+
:param _headers: set to override the headers for a single
|
|
1287
|
+
request; this effectively ignores the headers
|
|
1288
|
+
in the spec for a single request.
|
|
1289
|
+
:type _headers: dict, optional
|
|
1290
|
+
:param _host_index: set to override the host_index for a single
|
|
1291
|
+
request; this effectively ignores the host_index
|
|
1292
|
+
in the spec for a single request.
|
|
1293
|
+
:type _host_index: int, optional
|
|
1294
|
+
:return: Returns the result object.
|
|
1295
|
+
""" # noqa: E501
|
|
1296
|
+
|
|
1297
|
+
_param = self._get_pinned_timelines_serialize(
|
|
1298
|
+
path_query_id=path_query_id,
|
|
1299
|
+
features=features,
|
|
1300
|
+
variables=variables,
|
|
1301
|
+
_request_auth=_request_auth,
|
|
1302
|
+
_content_type=_content_type,
|
|
1303
|
+
_headers=_headers,
|
|
1304
|
+
_host_index=_host_index
|
|
1305
|
+
)
|
|
1306
|
+
|
|
1307
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1308
|
+
'200': "PinnedTimelinesResponse",
|
|
1309
|
+
}
|
|
1310
|
+
response_data = self.api_client.call_api(
|
|
1311
|
+
*_param,
|
|
1312
|
+
_request_timeout=_request_timeout
|
|
1313
|
+
)
|
|
1314
|
+
response_data.read()
|
|
1315
|
+
return self.api_client.response_deserialize(
|
|
1316
|
+
response_data=response_data,
|
|
1317
|
+
response_types_map=_response_types_map,
|
|
1318
|
+
).data
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
@validate_call
|
|
1322
|
+
def get_pinned_timelines_with_http_info(
|
|
1323
|
+
self,
|
|
1324
|
+
path_query_id: StrictStr,
|
|
1325
|
+
features: StrictStr,
|
|
1326
|
+
variables: StrictStr,
|
|
1327
|
+
_request_timeout: Union[
|
|
1328
|
+
None,
|
|
1329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1330
|
+
Tuple[
|
|
1331
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1332
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1333
|
+
]
|
|
1334
|
+
] = None,
|
|
1335
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1336
|
+
_content_type: Optional[StrictStr] = None,
|
|
1337
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1338
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1339
|
+
) -> ApiResponse[PinnedTimelinesResponse]:
|
|
1340
|
+
"""get_pinned_timelines
|
|
1341
|
+
|
|
1342
|
+
the account's pinned timelines
|
|
1343
|
+
|
|
1344
|
+
:param path_query_id: (required)
|
|
1345
|
+
:type path_query_id: str
|
|
1346
|
+
:param features: (required)
|
|
1347
|
+
:type features: str
|
|
1348
|
+
:param variables: (required)
|
|
1349
|
+
:type variables: str
|
|
1350
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1351
|
+
number provided, it will be total request
|
|
1352
|
+
timeout. It can also be a pair (tuple) of
|
|
1353
|
+
(connection, read) timeouts.
|
|
1354
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1355
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1356
|
+
request; this effectively ignores the
|
|
1357
|
+
authentication in the spec for a single request.
|
|
1358
|
+
:type _request_auth: dict, optional
|
|
1359
|
+
:param _content_type: force content-type for the request.
|
|
1360
|
+
:type _content_type: str, Optional
|
|
1361
|
+
:param _headers: set to override the headers for a single
|
|
1362
|
+
request; this effectively ignores the headers
|
|
1363
|
+
in the spec for a single request.
|
|
1364
|
+
:type _headers: dict, optional
|
|
1365
|
+
:param _host_index: set to override the host_index for a single
|
|
1366
|
+
request; this effectively ignores the host_index
|
|
1367
|
+
in the spec for a single request.
|
|
1368
|
+
:type _host_index: int, optional
|
|
1369
|
+
:return: Returns the result object.
|
|
1370
|
+
""" # noqa: E501
|
|
1371
|
+
|
|
1372
|
+
_param = self._get_pinned_timelines_serialize(
|
|
1373
|
+
path_query_id=path_query_id,
|
|
1374
|
+
features=features,
|
|
1375
|
+
variables=variables,
|
|
1376
|
+
_request_auth=_request_auth,
|
|
1377
|
+
_content_type=_content_type,
|
|
1378
|
+
_headers=_headers,
|
|
1379
|
+
_host_index=_host_index
|
|
1380
|
+
)
|
|
1381
|
+
|
|
1382
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1383
|
+
'200': "PinnedTimelinesResponse",
|
|
1384
|
+
}
|
|
1385
|
+
response_data = self.api_client.call_api(
|
|
1386
|
+
*_param,
|
|
1387
|
+
_request_timeout=_request_timeout
|
|
1388
|
+
)
|
|
1389
|
+
response_data.read()
|
|
1390
|
+
return self.api_client.response_deserialize(
|
|
1391
|
+
response_data=response_data,
|
|
1392
|
+
response_types_map=_response_types_map,
|
|
1393
|
+
)
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
@validate_call
|
|
1397
|
+
def get_pinned_timelines_without_preload_content(
|
|
1398
|
+
self,
|
|
1399
|
+
path_query_id: StrictStr,
|
|
1400
|
+
features: StrictStr,
|
|
1401
|
+
variables: StrictStr,
|
|
1402
|
+
_request_timeout: Union[
|
|
1403
|
+
None,
|
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1405
|
+
Tuple[
|
|
1406
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1407
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1408
|
+
]
|
|
1409
|
+
] = None,
|
|
1410
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
|
+
_content_type: Optional[StrictStr] = None,
|
|
1412
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1413
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1414
|
+
) -> RESTResponseType:
|
|
1415
|
+
"""get_pinned_timelines
|
|
1416
|
+
|
|
1417
|
+
the account's pinned timelines
|
|
1418
|
+
|
|
1419
|
+
:param path_query_id: (required)
|
|
1420
|
+
:type path_query_id: str
|
|
1421
|
+
:param features: (required)
|
|
1422
|
+
:type features: str
|
|
1423
|
+
:param variables: (required)
|
|
1424
|
+
:type variables: str
|
|
1425
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1426
|
+
number provided, it will be total request
|
|
1427
|
+
timeout. It can also be a pair (tuple) of
|
|
1428
|
+
(connection, read) timeouts.
|
|
1429
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1430
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1431
|
+
request; this effectively ignores the
|
|
1432
|
+
authentication in the spec for a single request.
|
|
1433
|
+
:type _request_auth: dict, optional
|
|
1434
|
+
:param _content_type: force content-type for the request.
|
|
1435
|
+
:type _content_type: str, Optional
|
|
1436
|
+
:param _headers: set to override the headers for a single
|
|
1437
|
+
request; this effectively ignores the headers
|
|
1438
|
+
in the spec for a single request.
|
|
1439
|
+
:type _headers: dict, optional
|
|
1440
|
+
:param _host_index: set to override the host_index for a single
|
|
1441
|
+
request; this effectively ignores the host_index
|
|
1442
|
+
in the spec for a single request.
|
|
1443
|
+
:type _host_index: int, optional
|
|
1444
|
+
:return: Returns the result object.
|
|
1445
|
+
""" # noqa: E501
|
|
1446
|
+
|
|
1447
|
+
_param = self._get_pinned_timelines_serialize(
|
|
1448
|
+
path_query_id=path_query_id,
|
|
1449
|
+
features=features,
|
|
1450
|
+
variables=variables,
|
|
1451
|
+
_request_auth=_request_auth,
|
|
1452
|
+
_content_type=_content_type,
|
|
1453
|
+
_headers=_headers,
|
|
1454
|
+
_host_index=_host_index
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1458
|
+
'200': "PinnedTimelinesResponse",
|
|
1459
|
+
}
|
|
1460
|
+
response_data = self.api_client.call_api(
|
|
1461
|
+
*_param,
|
|
1462
|
+
_request_timeout=_request_timeout
|
|
1463
|
+
)
|
|
1464
|
+
return response_data.response
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
def _get_pinned_timelines_serialize(
|
|
1468
|
+
self,
|
|
1469
|
+
path_query_id,
|
|
1470
|
+
features,
|
|
1471
|
+
variables,
|
|
1472
|
+
_request_auth,
|
|
1473
|
+
_content_type,
|
|
1474
|
+
_headers,
|
|
1475
|
+
_host_index,
|
|
1476
|
+
) -> RequestSerialized:
|
|
1477
|
+
|
|
1478
|
+
_host = None
|
|
1479
|
+
|
|
1480
|
+
_collection_formats: Dict[str, str] = {
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
_path_params: Dict[str, str] = {}
|
|
1484
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1485
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1486
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1487
|
+
_files: Dict[
|
|
1488
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1489
|
+
] = {}
|
|
1490
|
+
_body_params: Optional[bytes] = None
|
|
1491
|
+
|
|
1492
|
+
# process the path parameters
|
|
1493
|
+
if path_query_id is not None:
|
|
1494
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1495
|
+
# process the query parameters
|
|
1496
|
+
if features is not None:
|
|
1497
|
+
|
|
1498
|
+
_query_params.append(('features', features))
|
|
1499
|
+
|
|
1500
|
+
if variables is not None:
|
|
1501
|
+
|
|
1502
|
+
_query_params.append(('variables', variables))
|
|
1503
|
+
|
|
1504
|
+
# process the header parameters
|
|
1505
|
+
# process the form parameters
|
|
1506
|
+
# process the body parameter
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
# set the HTTP header `Accept`
|
|
1510
|
+
if 'Accept' not in _header_params:
|
|
1511
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1512
|
+
[
|
|
1513
|
+
'application/json'
|
|
1514
|
+
]
|
|
1515
|
+
)
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
# authentication setting
|
|
1519
|
+
_auth_settings: List[str] = [
|
|
1520
|
+
'Accept',
|
|
1521
|
+
'ClientLanguage',
|
|
1522
|
+
'Priority',
|
|
1523
|
+
'Referer',
|
|
1524
|
+
'SecFetchDest',
|
|
1525
|
+
'SecChUaPlatform',
|
|
1526
|
+
'SecFetchMode',
|
|
1527
|
+
'CsrfToken',
|
|
1528
|
+
'ClientUuid',
|
|
1529
|
+
'BearerAuth',
|
|
1530
|
+
'GuestToken',
|
|
1531
|
+
'SecChUa',
|
|
1532
|
+
'CookieGt0',
|
|
1533
|
+
'ClientTransactionId',
|
|
1534
|
+
'ActiveUser',
|
|
1535
|
+
'CookieCt0',
|
|
1536
|
+
'UserAgent',
|
|
1537
|
+
'AcceptLanguage',
|
|
1538
|
+
'SecFetchSite',
|
|
1539
|
+
'AuthType',
|
|
1540
|
+
'CookieAuthToken',
|
|
1541
|
+
'SecChUaMobile',
|
|
1542
|
+
'AcceptEncoding'
|
|
1543
|
+
]
|
|
1544
|
+
|
|
1545
|
+
return self.api_client.param_serialize(
|
|
1546
|
+
method='GET',
|
|
1547
|
+
resource_path='/graphql/{pathQueryId}/PinnedTimelines',
|
|
1548
|
+
path_params=_path_params,
|
|
1549
|
+
query_params=_query_params,
|
|
1550
|
+
header_params=_header_params,
|
|
1551
|
+
body=_body_params,
|
|
1552
|
+
post_params=_form_params,
|
|
1553
|
+
files=_files,
|
|
1554
|
+
auth_settings=_auth_settings,
|
|
1555
|
+
collection_formats=_collection_formats,
|
|
1556
|
+
_host=_host,
|
|
1557
|
+
_request_auth=_request_auth
|
|
1558
|
+
)
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
41
1563
|
@validate_call
|
|
42
1564
|
def get_profile_spotlights_query(
|
|
43
1565
|
self,
|