twitter-openapi-python-generated 0.1.2__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 +107 -1
- twitter_openapi_python_generated/api/default_api.py +1437 -199
- twitter_openapi_python_generated/api/user_api.py +301 -0
- 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 +53 -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/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/birdwatch_pivot.py +0 -17
- 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/community.py +2 -2
- twitter_openapi_python_generated/models/community_delete_action_result.py +1 -8
- 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/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/cta_client_event_info.py +1 -8
- twitter_openapi_python_generated/models/cta_limited_action_prompt.py +1 -8
- twitter_openapi_python_generated/models/feedback_action.py +1 -21
- 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_image_annotation.py +2 -2
- twitter_openapi_python_generated/models/identity_profile_labels_highlighted_label.py +93 -0
- 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/media_result.py +1 -1
- 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/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/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_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/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 +1 -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-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/METADATA +61 -2
- {twitter_openapi_python_generated-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/RECORD +104 -51
- {twitter_openapi_python_generated-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.1.2.dist-info → twitter_openapi_python_generated-0.1.3.dist-info}/top_level.txt +0 -0
|
@@ -17,12 +17,16 @@ 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.audio_space_response import AudioSpaceResponse
|
|
20
21
|
from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.broadcast_response import BroadcastResponse
|
|
21
23
|
from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
|
|
22
24
|
from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
|
|
25
|
+
from twitter_openapi_python_generated.models.grok_account_jwt_response import GrokAccountJwtResponse
|
|
23
26
|
from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
|
|
24
27
|
from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
|
|
25
28
|
from twitter_openapi_python_generated.models.profile_response import ProfileResponse
|
|
29
|
+
from twitter_openapi_python_generated.models.story_topic_response import StoryTopicResponse
|
|
26
30
|
from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse
|
|
27
31
|
|
|
28
32
|
from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
|
|
@@ -44,10 +48,11 @@ class DefaultApi:
|
|
|
44
48
|
|
|
45
49
|
|
|
46
50
|
@validate_call
|
|
47
|
-
def
|
|
51
|
+
def get_audio_space_by_id(
|
|
48
52
|
self,
|
|
49
53
|
path_query_id: StrictStr,
|
|
50
54
|
variables: StrictStr,
|
|
55
|
+
features: StrictStr,
|
|
51
56
|
_request_timeout: Union[
|
|
52
57
|
None,
|
|
53
58
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -60,15 +65,17 @@ class DefaultApi:
|
|
|
60
65
|
_content_type: Optional[StrictStr] = None,
|
|
61
66
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
67
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
-
) ->
|
|
64
|
-
"""
|
|
68
|
+
) -> AudioSpaceResponse:
|
|
69
|
+
"""get_audio_space_by_id
|
|
65
70
|
|
|
66
|
-
a
|
|
71
|
+
a Space by id: metadata, participants and the announcing post
|
|
67
72
|
|
|
68
73
|
:param path_query_id: (required)
|
|
69
74
|
:type path_query_id: str
|
|
70
75
|
:param variables: (required)
|
|
71
76
|
:type variables: str
|
|
77
|
+
:param features: (required)
|
|
78
|
+
:type features: str
|
|
72
79
|
:param _request_timeout: timeout setting for this request. If one
|
|
73
80
|
number provided, it will be total request
|
|
74
81
|
timeout. It can also be a pair (tuple) of
|
|
@@ -91,9 +98,10 @@ class DefaultApi:
|
|
|
91
98
|
:return: Returns the result object.
|
|
92
99
|
""" # noqa: E501
|
|
93
100
|
|
|
94
|
-
_param = self.
|
|
101
|
+
_param = self._get_audio_space_by_id_serialize(
|
|
95
102
|
path_query_id=path_query_id,
|
|
96
103
|
variables=variables,
|
|
104
|
+
features=features,
|
|
97
105
|
_request_auth=_request_auth,
|
|
98
106
|
_content_type=_content_type,
|
|
99
107
|
_headers=_headers,
|
|
@@ -101,7 +109,7 @@ class DefaultApi:
|
|
|
101
109
|
)
|
|
102
110
|
|
|
103
111
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
-
'200': "
|
|
112
|
+
'200': "AudioSpaceResponse",
|
|
105
113
|
}
|
|
106
114
|
response_data = self.api_client.call_api(
|
|
107
115
|
*_param,
|
|
@@ -115,10 +123,11 @@ class DefaultApi:
|
|
|
115
123
|
|
|
116
124
|
|
|
117
125
|
@validate_call
|
|
118
|
-
def
|
|
126
|
+
def get_audio_space_by_id_with_http_info(
|
|
119
127
|
self,
|
|
120
128
|
path_query_id: StrictStr,
|
|
121
129
|
variables: StrictStr,
|
|
130
|
+
features: StrictStr,
|
|
122
131
|
_request_timeout: Union[
|
|
123
132
|
None,
|
|
124
133
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -131,15 +140,17 @@ class DefaultApi:
|
|
|
131
140
|
_content_type: Optional[StrictStr] = None,
|
|
132
141
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
142
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
|
-
) -> ApiResponse[
|
|
135
|
-
"""
|
|
143
|
+
) -> ApiResponse[AudioSpaceResponse]:
|
|
144
|
+
"""get_audio_space_by_id
|
|
136
145
|
|
|
137
|
-
a
|
|
146
|
+
a Space by id: metadata, participants and the announcing post
|
|
138
147
|
|
|
139
148
|
:param path_query_id: (required)
|
|
140
149
|
:type path_query_id: str
|
|
141
150
|
:param variables: (required)
|
|
142
151
|
:type variables: str
|
|
152
|
+
:param features: (required)
|
|
153
|
+
:type features: str
|
|
143
154
|
:param _request_timeout: timeout setting for this request. If one
|
|
144
155
|
number provided, it will be total request
|
|
145
156
|
timeout. It can also be a pair (tuple) of
|
|
@@ -162,9 +173,10 @@ class DefaultApi:
|
|
|
162
173
|
:return: Returns the result object.
|
|
163
174
|
""" # noqa: E501
|
|
164
175
|
|
|
165
|
-
_param = self.
|
|
176
|
+
_param = self._get_audio_space_by_id_serialize(
|
|
166
177
|
path_query_id=path_query_id,
|
|
167
178
|
variables=variables,
|
|
179
|
+
features=features,
|
|
168
180
|
_request_auth=_request_auth,
|
|
169
181
|
_content_type=_content_type,
|
|
170
182
|
_headers=_headers,
|
|
@@ -172,7 +184,7 @@ class DefaultApi:
|
|
|
172
184
|
)
|
|
173
185
|
|
|
174
186
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
175
|
-
'200': "
|
|
187
|
+
'200': "AudioSpaceResponse",
|
|
176
188
|
}
|
|
177
189
|
response_data = self.api_client.call_api(
|
|
178
190
|
*_param,
|
|
@@ -186,10 +198,11 @@ class DefaultApi:
|
|
|
186
198
|
|
|
187
199
|
|
|
188
200
|
@validate_call
|
|
189
|
-
def
|
|
201
|
+
def get_audio_space_by_id_without_preload_content(
|
|
190
202
|
self,
|
|
191
203
|
path_query_id: StrictStr,
|
|
192
204
|
variables: StrictStr,
|
|
205
|
+
features: StrictStr,
|
|
193
206
|
_request_timeout: Union[
|
|
194
207
|
None,
|
|
195
208
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -203,14 +216,16 @@ class DefaultApi:
|
|
|
203
216
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
204
217
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
205
218
|
) -> RESTResponseType:
|
|
206
|
-
"""
|
|
219
|
+
"""get_audio_space_by_id
|
|
207
220
|
|
|
208
|
-
a
|
|
221
|
+
a Space by id: metadata, participants and the announcing post
|
|
209
222
|
|
|
210
223
|
:param path_query_id: (required)
|
|
211
224
|
:type path_query_id: str
|
|
212
225
|
:param variables: (required)
|
|
213
226
|
:type variables: str
|
|
227
|
+
:param features: (required)
|
|
228
|
+
:type features: str
|
|
214
229
|
:param _request_timeout: timeout setting for this request. If one
|
|
215
230
|
number provided, it will be total request
|
|
216
231
|
timeout. It can also be a pair (tuple) of
|
|
@@ -233,9 +248,10 @@ class DefaultApi:
|
|
|
233
248
|
:return: Returns the result object.
|
|
234
249
|
""" # noqa: E501
|
|
235
250
|
|
|
236
|
-
_param = self.
|
|
251
|
+
_param = self._get_audio_space_by_id_serialize(
|
|
237
252
|
path_query_id=path_query_id,
|
|
238
253
|
variables=variables,
|
|
254
|
+
features=features,
|
|
239
255
|
_request_auth=_request_auth,
|
|
240
256
|
_content_type=_content_type,
|
|
241
257
|
_headers=_headers,
|
|
@@ -243,7 +259,7 @@ class DefaultApi:
|
|
|
243
259
|
)
|
|
244
260
|
|
|
245
261
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
-
'200': "
|
|
262
|
+
'200': "AudioSpaceResponse",
|
|
247
263
|
}
|
|
248
264
|
response_data = self.api_client.call_api(
|
|
249
265
|
*_param,
|
|
@@ -252,10 +268,11 @@ class DefaultApi:
|
|
|
252
268
|
return response_data.response
|
|
253
269
|
|
|
254
270
|
|
|
255
|
-
def
|
|
271
|
+
def _get_audio_space_by_id_serialize(
|
|
256
272
|
self,
|
|
257
273
|
path_query_id,
|
|
258
274
|
variables,
|
|
275
|
+
features,
|
|
259
276
|
_request_auth,
|
|
260
277
|
_content_type,
|
|
261
278
|
_headers,
|
|
@@ -284,6 +301,10 @@ class DefaultApi:
|
|
|
284
301
|
|
|
285
302
|
_query_params.append(('variables', variables))
|
|
286
303
|
|
|
304
|
+
if features is not None:
|
|
305
|
+
|
|
306
|
+
_query_params.append(('features', features))
|
|
307
|
+
|
|
287
308
|
# process the header parameters
|
|
288
309
|
# process the form parameters
|
|
289
310
|
# process the body parameter
|
|
@@ -327,7 +348,7 @@ class DefaultApi:
|
|
|
327
348
|
|
|
328
349
|
return self.api_client.param_serialize(
|
|
329
350
|
method='GET',
|
|
330
|
-
resource_path='/graphql/{pathQueryId}/
|
|
351
|
+
resource_path='/graphql/{pathQueryId}/AudioSpaceById',
|
|
331
352
|
path_params=_path_params,
|
|
332
353
|
query_params=_query_params,
|
|
333
354
|
header_params=_header_params,
|
|
@@ -344,7 +365,7 @@ class DefaultApi:
|
|
|
344
365
|
|
|
345
366
|
|
|
346
367
|
@validate_call
|
|
347
|
-
def
|
|
368
|
+
def get_authenticate_periscope(
|
|
348
369
|
self,
|
|
349
370
|
path_query_id: StrictStr,
|
|
350
371
|
variables: StrictStr,
|
|
@@ -360,10 +381,10 @@ class DefaultApi:
|
|
|
360
381
|
_content_type: Optional[StrictStr] = None,
|
|
361
382
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
362
383
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
363
|
-
) ->
|
|
364
|
-
"""
|
|
384
|
+
) -> AuthenticatePeriscopeResponse:
|
|
385
|
+
"""get_authenticate_periscope
|
|
365
386
|
|
|
366
|
-
|
|
387
|
+
a Periscope (live video) token for the account
|
|
367
388
|
|
|
368
389
|
:param path_query_id: (required)
|
|
369
390
|
:type path_query_id: str
|
|
@@ -391,7 +412,7 @@ class DefaultApi:
|
|
|
391
412
|
:return: Returns the result object.
|
|
392
413
|
""" # noqa: E501
|
|
393
414
|
|
|
394
|
-
_param = self.
|
|
415
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
395
416
|
path_query_id=path_query_id,
|
|
396
417
|
variables=variables,
|
|
397
418
|
_request_auth=_request_auth,
|
|
@@ -401,7 +422,7 @@ class DefaultApi:
|
|
|
401
422
|
)
|
|
402
423
|
|
|
403
424
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
404
|
-
'200': "
|
|
425
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
405
426
|
}
|
|
406
427
|
response_data = self.api_client.call_api(
|
|
407
428
|
*_param,
|
|
@@ -415,7 +436,7 @@ class DefaultApi:
|
|
|
415
436
|
|
|
416
437
|
|
|
417
438
|
@validate_call
|
|
418
|
-
def
|
|
439
|
+
def get_authenticate_periscope_with_http_info(
|
|
419
440
|
self,
|
|
420
441
|
path_query_id: StrictStr,
|
|
421
442
|
variables: StrictStr,
|
|
@@ -431,10 +452,10 @@ class DefaultApi:
|
|
|
431
452
|
_content_type: Optional[StrictStr] = None,
|
|
432
453
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
433
454
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
434
|
-
) -> ApiResponse[
|
|
435
|
-
"""
|
|
455
|
+
) -> ApiResponse[AuthenticatePeriscopeResponse]:
|
|
456
|
+
"""get_authenticate_periscope
|
|
436
457
|
|
|
437
|
-
|
|
458
|
+
a Periscope (live video) token for the account
|
|
438
459
|
|
|
439
460
|
:param path_query_id: (required)
|
|
440
461
|
:type path_query_id: str
|
|
@@ -462,7 +483,7 @@ class DefaultApi:
|
|
|
462
483
|
:return: Returns the result object.
|
|
463
484
|
""" # noqa: E501
|
|
464
485
|
|
|
465
|
-
_param = self.
|
|
486
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
466
487
|
path_query_id=path_query_id,
|
|
467
488
|
variables=variables,
|
|
468
489
|
_request_auth=_request_auth,
|
|
@@ -472,7 +493,7 @@ class DefaultApi:
|
|
|
472
493
|
)
|
|
473
494
|
|
|
474
495
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
475
|
-
'200': "
|
|
496
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
476
497
|
}
|
|
477
498
|
response_data = self.api_client.call_api(
|
|
478
499
|
*_param,
|
|
@@ -486,7 +507,7 @@ class DefaultApi:
|
|
|
486
507
|
|
|
487
508
|
|
|
488
509
|
@validate_call
|
|
489
|
-
def
|
|
510
|
+
def get_authenticate_periscope_without_preload_content(
|
|
490
511
|
self,
|
|
491
512
|
path_query_id: StrictStr,
|
|
492
513
|
variables: StrictStr,
|
|
@@ -503,9 +524,9 @@ class DefaultApi:
|
|
|
503
524
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
504
525
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
505
526
|
) -> RESTResponseType:
|
|
506
|
-
"""
|
|
527
|
+
"""get_authenticate_periscope
|
|
507
528
|
|
|
508
|
-
|
|
529
|
+
a Periscope (live video) token for the account
|
|
509
530
|
|
|
510
531
|
:param path_query_id: (required)
|
|
511
532
|
:type path_query_id: str
|
|
@@ -533,7 +554,7 @@ class DefaultApi:
|
|
|
533
554
|
:return: Returns the result object.
|
|
534
555
|
""" # noqa: E501
|
|
535
556
|
|
|
536
|
-
_param = self.
|
|
557
|
+
_param = self._get_authenticate_periscope_serialize(
|
|
537
558
|
path_query_id=path_query_id,
|
|
538
559
|
variables=variables,
|
|
539
560
|
_request_auth=_request_auth,
|
|
@@ -543,7 +564,7 @@ class DefaultApi:
|
|
|
543
564
|
)
|
|
544
565
|
|
|
545
566
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
546
|
-
'200': "
|
|
567
|
+
'200': "AuthenticatePeriscopeResponse",
|
|
547
568
|
}
|
|
548
569
|
response_data = self.api_client.call_api(
|
|
549
570
|
*_param,
|
|
@@ -552,7 +573,7 @@ class DefaultApi:
|
|
|
552
573
|
return response_data.response
|
|
553
574
|
|
|
554
575
|
|
|
555
|
-
def
|
|
576
|
+
def _get_authenticate_periscope_serialize(
|
|
556
577
|
self,
|
|
557
578
|
path_query_id,
|
|
558
579
|
variables,
|
|
@@ -627,7 +648,7 @@ class DefaultApi:
|
|
|
627
648
|
|
|
628
649
|
return self.api_client.param_serialize(
|
|
629
650
|
method='GET',
|
|
630
|
-
resource_path='/graphql/{pathQueryId}/
|
|
651
|
+
resource_path='/graphql/{pathQueryId}/AuthenticatePeriscope',
|
|
631
652
|
path_params=_path_params,
|
|
632
653
|
query_params=_query_params,
|
|
633
654
|
header_params=_header_params,
|
|
@@ -644,10 +665,11 @@ class DefaultApi:
|
|
|
644
665
|
|
|
645
666
|
|
|
646
667
|
@validate_call
|
|
647
|
-
def
|
|
668
|
+
def get_broadcast_query(
|
|
648
669
|
self,
|
|
649
670
|
path_query_id: StrictStr,
|
|
650
671
|
variables: StrictStr,
|
|
672
|
+
features: StrictStr,
|
|
651
673
|
_request_timeout: Union[
|
|
652
674
|
None,
|
|
653
675
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -660,15 +682,17 @@ class DefaultApi:
|
|
|
660
682
|
_content_type: Optional[StrictStr] = None,
|
|
661
683
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
662
684
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
663
|
-
) ->
|
|
664
|
-
"""
|
|
685
|
+
) -> BroadcastResponse:
|
|
686
|
+
"""get_broadcast_query
|
|
665
687
|
|
|
666
|
-
|
|
688
|
+
a live video broadcast by id
|
|
667
689
|
|
|
668
690
|
:param path_query_id: (required)
|
|
669
691
|
:type path_query_id: str
|
|
670
692
|
:param variables: (required)
|
|
671
693
|
:type variables: str
|
|
694
|
+
:param features: (required)
|
|
695
|
+
:type features: str
|
|
672
696
|
:param _request_timeout: timeout setting for this request. If one
|
|
673
697
|
number provided, it will be total request
|
|
674
698
|
timeout. It can also be a pair (tuple) of
|
|
@@ -691,9 +715,10 @@ class DefaultApi:
|
|
|
691
715
|
:return: Returns the result object.
|
|
692
716
|
""" # noqa: E501
|
|
693
717
|
|
|
694
|
-
_param = self.
|
|
718
|
+
_param = self._get_broadcast_query_serialize(
|
|
695
719
|
path_query_id=path_query_id,
|
|
696
720
|
variables=variables,
|
|
721
|
+
features=features,
|
|
697
722
|
_request_auth=_request_auth,
|
|
698
723
|
_content_type=_content_type,
|
|
699
724
|
_headers=_headers,
|
|
@@ -701,7 +726,7 @@ class DefaultApi:
|
|
|
701
726
|
)
|
|
702
727
|
|
|
703
728
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
704
|
-
'200': "
|
|
729
|
+
'200': "BroadcastResponse",
|
|
705
730
|
}
|
|
706
731
|
response_data = self.api_client.call_api(
|
|
707
732
|
*_param,
|
|
@@ -715,10 +740,11 @@ class DefaultApi:
|
|
|
715
740
|
|
|
716
741
|
|
|
717
742
|
@validate_call
|
|
718
|
-
def
|
|
743
|
+
def get_broadcast_query_with_http_info(
|
|
719
744
|
self,
|
|
720
745
|
path_query_id: StrictStr,
|
|
721
746
|
variables: StrictStr,
|
|
747
|
+
features: StrictStr,
|
|
722
748
|
_request_timeout: Union[
|
|
723
749
|
None,
|
|
724
750
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -731,15 +757,17 @@ class DefaultApi:
|
|
|
731
757
|
_content_type: Optional[StrictStr] = None,
|
|
732
758
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
759
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
|
-
) -> ApiResponse[
|
|
735
|
-
"""
|
|
760
|
+
) -> ApiResponse[BroadcastResponse]:
|
|
761
|
+
"""get_broadcast_query
|
|
736
762
|
|
|
737
|
-
|
|
763
|
+
a live video broadcast by id
|
|
738
764
|
|
|
739
765
|
:param path_query_id: (required)
|
|
740
766
|
:type path_query_id: str
|
|
741
767
|
:param variables: (required)
|
|
742
768
|
:type variables: str
|
|
769
|
+
:param features: (required)
|
|
770
|
+
:type features: str
|
|
743
771
|
:param _request_timeout: timeout setting for this request. If one
|
|
744
772
|
number provided, it will be total request
|
|
745
773
|
timeout. It can also be a pair (tuple) of
|
|
@@ -762,9 +790,10 @@ class DefaultApi:
|
|
|
762
790
|
:return: Returns the result object.
|
|
763
791
|
""" # noqa: E501
|
|
764
792
|
|
|
765
|
-
_param = self.
|
|
793
|
+
_param = self._get_broadcast_query_serialize(
|
|
766
794
|
path_query_id=path_query_id,
|
|
767
795
|
variables=variables,
|
|
796
|
+
features=features,
|
|
768
797
|
_request_auth=_request_auth,
|
|
769
798
|
_content_type=_content_type,
|
|
770
799
|
_headers=_headers,
|
|
@@ -772,7 +801,7 @@ class DefaultApi:
|
|
|
772
801
|
)
|
|
773
802
|
|
|
774
803
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
775
|
-
'200': "
|
|
804
|
+
'200': "BroadcastResponse",
|
|
776
805
|
}
|
|
777
806
|
response_data = self.api_client.call_api(
|
|
778
807
|
*_param,
|
|
@@ -786,10 +815,11 @@ class DefaultApi:
|
|
|
786
815
|
|
|
787
816
|
|
|
788
817
|
@validate_call
|
|
789
|
-
def
|
|
818
|
+
def get_broadcast_query_without_preload_content(
|
|
790
819
|
self,
|
|
791
820
|
path_query_id: StrictStr,
|
|
792
821
|
variables: StrictStr,
|
|
822
|
+
features: StrictStr,
|
|
793
823
|
_request_timeout: Union[
|
|
794
824
|
None,
|
|
795
825
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -803,14 +833,16 @@ class DefaultApi:
|
|
|
803
833
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
804
834
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
805
835
|
) -> RESTResponseType:
|
|
806
|
-
"""
|
|
836
|
+
"""get_broadcast_query
|
|
807
837
|
|
|
808
|
-
|
|
838
|
+
a live video broadcast by id
|
|
809
839
|
|
|
810
840
|
:param path_query_id: (required)
|
|
811
841
|
:type path_query_id: str
|
|
812
842
|
:param variables: (required)
|
|
813
843
|
:type variables: str
|
|
844
|
+
:param features: (required)
|
|
845
|
+
:type features: str
|
|
814
846
|
:param _request_timeout: timeout setting for this request. If one
|
|
815
847
|
number provided, it will be total request
|
|
816
848
|
timeout. It can also be a pair (tuple) of
|
|
@@ -833,9 +865,10 @@ class DefaultApi:
|
|
|
833
865
|
:return: Returns the result object.
|
|
834
866
|
""" # noqa: E501
|
|
835
867
|
|
|
836
|
-
_param = self.
|
|
868
|
+
_param = self._get_broadcast_query_serialize(
|
|
837
869
|
path_query_id=path_query_id,
|
|
838
870
|
variables=variables,
|
|
871
|
+
features=features,
|
|
839
872
|
_request_auth=_request_auth,
|
|
840
873
|
_content_type=_content_type,
|
|
841
874
|
_headers=_headers,
|
|
@@ -843,7 +876,7 @@ class DefaultApi:
|
|
|
843
876
|
)
|
|
844
877
|
|
|
845
878
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
846
|
-
'200': "
|
|
879
|
+
'200': "BroadcastResponse",
|
|
847
880
|
}
|
|
848
881
|
response_data = self.api_client.call_api(
|
|
849
882
|
*_param,
|
|
@@ -852,10 +885,11 @@ class DefaultApi:
|
|
|
852
885
|
return response_data.response
|
|
853
886
|
|
|
854
887
|
|
|
855
|
-
def
|
|
888
|
+
def _get_broadcast_query_serialize(
|
|
856
889
|
self,
|
|
857
890
|
path_query_id,
|
|
858
891
|
variables,
|
|
892
|
+
features,
|
|
859
893
|
_request_auth,
|
|
860
894
|
_content_type,
|
|
861
895
|
_headers,
|
|
@@ -884,6 +918,10 @@ class DefaultApi:
|
|
|
884
918
|
|
|
885
919
|
_query_params.append(('variables', variables))
|
|
886
920
|
|
|
921
|
+
if features is not None:
|
|
922
|
+
|
|
923
|
+
_query_params.append(('features', features))
|
|
924
|
+
|
|
887
925
|
# process the header parameters
|
|
888
926
|
# process the form parameters
|
|
889
927
|
# process the body parameter
|
|
@@ -927,7 +965,7 @@ class DefaultApi:
|
|
|
927
965
|
|
|
928
966
|
return self.api_client.param_serialize(
|
|
929
967
|
method='GET',
|
|
930
|
-
resource_path='/graphql/{pathQueryId}/
|
|
968
|
+
resource_path='/graphql/{pathQueryId}/BroadcastQuery',
|
|
931
969
|
path_params=_path_params,
|
|
932
970
|
query_params=_query_params,
|
|
933
971
|
header_params=_header_params,
|
|
@@ -944,7 +982,7 @@ class DefaultApi:
|
|
|
944
982
|
|
|
945
983
|
|
|
946
984
|
@validate_call
|
|
947
|
-
def
|
|
985
|
+
def get_creator_studio_tab_bar_item_query(
|
|
948
986
|
self,
|
|
949
987
|
path_query_id: StrictStr,
|
|
950
988
|
variables: StrictStr,
|
|
@@ -960,10 +998,10 @@ class DefaultApi:
|
|
|
960
998
|
_content_type: Optional[StrictStr] = None,
|
|
961
999
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
962
1000
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
963
|
-
) ->
|
|
964
|
-
"""
|
|
1001
|
+
) -> CreatorStudioTabBarItemQueryResponse:
|
|
1002
|
+
"""get_creator_studio_tab_bar_item_query
|
|
965
1003
|
|
|
966
|
-
|
|
1004
|
+
audience rewards tasks shown in Creator Studio
|
|
967
1005
|
|
|
968
1006
|
:param path_query_id: (required)
|
|
969
1007
|
:type path_query_id: str
|
|
@@ -991,7 +1029,7 @@ class DefaultApi:
|
|
|
991
1029
|
:return: Returns the result object.
|
|
992
1030
|
""" # noqa: E501
|
|
993
1031
|
|
|
994
|
-
_param = self.
|
|
1032
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
995
1033
|
path_query_id=path_query_id,
|
|
996
1034
|
variables=variables,
|
|
997
1035
|
_request_auth=_request_auth,
|
|
@@ -1001,7 +1039,7 @@ class DefaultApi:
|
|
|
1001
1039
|
)
|
|
1002
1040
|
|
|
1003
1041
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1004
|
-
'200': "
|
|
1042
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
1005
1043
|
}
|
|
1006
1044
|
response_data = self.api_client.call_api(
|
|
1007
1045
|
*_param,
|
|
@@ -1015,7 +1053,7 @@ class DefaultApi:
|
|
|
1015
1053
|
|
|
1016
1054
|
|
|
1017
1055
|
@validate_call
|
|
1018
|
-
def
|
|
1056
|
+
def get_creator_studio_tab_bar_item_query_with_http_info(
|
|
1019
1057
|
self,
|
|
1020
1058
|
path_query_id: StrictStr,
|
|
1021
1059
|
variables: StrictStr,
|
|
@@ -1031,10 +1069,10 @@ class DefaultApi:
|
|
|
1031
1069
|
_content_type: Optional[StrictStr] = None,
|
|
1032
1070
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1033
1071
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1034
|
-
) -> ApiResponse[
|
|
1035
|
-
"""
|
|
1072
|
+
) -> ApiResponse[CreatorStudioTabBarItemQueryResponse]:
|
|
1073
|
+
"""get_creator_studio_tab_bar_item_query
|
|
1036
1074
|
|
|
1037
|
-
|
|
1075
|
+
audience rewards tasks shown in Creator Studio
|
|
1038
1076
|
|
|
1039
1077
|
:param path_query_id: (required)
|
|
1040
1078
|
:type path_query_id: str
|
|
@@ -1062,7 +1100,7 @@ class DefaultApi:
|
|
|
1062
1100
|
:return: Returns the result object.
|
|
1063
1101
|
""" # noqa: E501
|
|
1064
1102
|
|
|
1065
|
-
_param = self.
|
|
1103
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
1066
1104
|
path_query_id=path_query_id,
|
|
1067
1105
|
variables=variables,
|
|
1068
1106
|
_request_auth=_request_auth,
|
|
@@ -1072,7 +1110,7 @@ class DefaultApi:
|
|
|
1072
1110
|
)
|
|
1073
1111
|
|
|
1074
1112
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1075
|
-
'200': "
|
|
1113
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
1076
1114
|
}
|
|
1077
1115
|
response_data = self.api_client.call_api(
|
|
1078
1116
|
*_param,
|
|
@@ -1086,7 +1124,7 @@ class DefaultApi:
|
|
|
1086
1124
|
|
|
1087
1125
|
|
|
1088
1126
|
@validate_call
|
|
1089
|
-
def
|
|
1127
|
+
def get_creator_studio_tab_bar_item_query_without_preload_content(
|
|
1090
1128
|
self,
|
|
1091
1129
|
path_query_id: StrictStr,
|
|
1092
1130
|
variables: StrictStr,
|
|
@@ -1103,9 +1141,9 @@ class DefaultApi:
|
|
|
1103
1141
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1104
1142
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1105
1143
|
) -> RESTResponseType:
|
|
1106
|
-
"""
|
|
1144
|
+
"""get_creator_studio_tab_bar_item_query
|
|
1107
1145
|
|
|
1108
|
-
|
|
1146
|
+
audience rewards tasks shown in Creator Studio
|
|
1109
1147
|
|
|
1110
1148
|
:param path_query_id: (required)
|
|
1111
1149
|
:type path_query_id: str
|
|
@@ -1133,7 +1171,7 @@ class DefaultApi:
|
|
|
1133
1171
|
:return: Returns the result object.
|
|
1134
1172
|
""" # noqa: E501
|
|
1135
1173
|
|
|
1136
|
-
_param = self.
|
|
1174
|
+
_param = self._get_creator_studio_tab_bar_item_query_serialize(
|
|
1137
1175
|
path_query_id=path_query_id,
|
|
1138
1176
|
variables=variables,
|
|
1139
1177
|
_request_auth=_request_auth,
|
|
@@ -1143,7 +1181,7 @@ class DefaultApi:
|
|
|
1143
1181
|
)
|
|
1144
1182
|
|
|
1145
1183
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1146
|
-
'200': "
|
|
1184
|
+
'200': "CreatorStudioTabBarItemQueryResponse",
|
|
1147
1185
|
}
|
|
1148
1186
|
response_data = self.api_client.call_api(
|
|
1149
1187
|
*_param,
|
|
@@ -1152,7 +1190,7 @@ class DefaultApi:
|
|
|
1152
1190
|
return response_data.response
|
|
1153
1191
|
|
|
1154
1192
|
|
|
1155
|
-
def
|
|
1193
|
+
def _get_creator_studio_tab_bar_item_query_serialize(
|
|
1156
1194
|
self,
|
|
1157
1195
|
path_query_id,
|
|
1158
1196
|
variables,
|
|
@@ -1227,7 +1265,7 @@ class DefaultApi:
|
|
|
1227
1265
|
|
|
1228
1266
|
return self.api_client.param_serialize(
|
|
1229
1267
|
method='GET',
|
|
1230
|
-
resource_path='/graphql/{pathQueryId}/
|
|
1268
|
+
resource_path='/graphql/{pathQueryId}/CreatorStudioTabBarItemQuery',
|
|
1231
1269
|
path_params=_path_params,
|
|
1232
1270
|
query_params=_query_params,
|
|
1233
1271
|
header_params=_header_params,
|
|
@@ -1244,10 +1282,9 @@ class DefaultApi:
|
|
|
1244
1282
|
|
|
1245
1283
|
|
|
1246
1284
|
@validate_call
|
|
1247
|
-
def
|
|
1285
|
+
def get_data_saver_mode(
|
|
1248
1286
|
self,
|
|
1249
1287
|
path_query_id: StrictStr,
|
|
1250
|
-
features: StrictStr,
|
|
1251
1288
|
variables: StrictStr,
|
|
1252
1289
|
_request_timeout: Union[
|
|
1253
1290
|
None,
|
|
@@ -1261,15 +1298,13 @@ class DefaultApi:
|
|
|
1261
1298
|
_content_type: Optional[StrictStr] = None,
|
|
1262
1299
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1263
1300
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1264
|
-
) ->
|
|
1265
|
-
"""
|
|
1301
|
+
) -> DataSaverModeResponse:
|
|
1302
|
+
"""get_data_saver_mode
|
|
1266
1303
|
|
|
1267
|
-
the account
|
|
1304
|
+
data saver setting of the account
|
|
1268
1305
|
|
|
1269
1306
|
:param path_query_id: (required)
|
|
1270
1307
|
:type path_query_id: str
|
|
1271
|
-
:param features: (required)
|
|
1272
|
-
:type features: str
|
|
1273
1308
|
:param variables: (required)
|
|
1274
1309
|
:type variables: str
|
|
1275
1310
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1294,9 +1329,8 @@ class DefaultApi:
|
|
|
1294
1329
|
:return: Returns the result object.
|
|
1295
1330
|
""" # noqa: E501
|
|
1296
1331
|
|
|
1297
|
-
_param = self.
|
|
1332
|
+
_param = self._get_data_saver_mode_serialize(
|
|
1298
1333
|
path_query_id=path_query_id,
|
|
1299
|
-
features=features,
|
|
1300
1334
|
variables=variables,
|
|
1301
1335
|
_request_auth=_request_auth,
|
|
1302
1336
|
_content_type=_content_type,
|
|
@@ -1305,7 +1339,7 @@ class DefaultApi:
|
|
|
1305
1339
|
)
|
|
1306
1340
|
|
|
1307
1341
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1308
|
-
'200': "
|
|
1342
|
+
'200': "DataSaverModeResponse",
|
|
1309
1343
|
}
|
|
1310
1344
|
response_data = self.api_client.call_api(
|
|
1311
1345
|
*_param,
|
|
@@ -1319,10 +1353,9 @@ class DefaultApi:
|
|
|
1319
1353
|
|
|
1320
1354
|
|
|
1321
1355
|
@validate_call
|
|
1322
|
-
def
|
|
1356
|
+
def get_data_saver_mode_with_http_info(
|
|
1323
1357
|
self,
|
|
1324
1358
|
path_query_id: StrictStr,
|
|
1325
|
-
features: StrictStr,
|
|
1326
1359
|
variables: StrictStr,
|
|
1327
1360
|
_request_timeout: Union[
|
|
1328
1361
|
None,
|
|
@@ -1336,15 +1369,13 @@ class DefaultApi:
|
|
|
1336
1369
|
_content_type: Optional[StrictStr] = None,
|
|
1337
1370
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1338
1371
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1339
|
-
) -> ApiResponse[
|
|
1340
|
-
"""
|
|
1372
|
+
) -> ApiResponse[DataSaverModeResponse]:
|
|
1373
|
+
"""get_data_saver_mode
|
|
1341
1374
|
|
|
1342
|
-
the account
|
|
1375
|
+
data saver setting of the account
|
|
1343
1376
|
|
|
1344
1377
|
:param path_query_id: (required)
|
|
1345
1378
|
:type path_query_id: str
|
|
1346
|
-
:param features: (required)
|
|
1347
|
-
:type features: str
|
|
1348
1379
|
:param variables: (required)
|
|
1349
1380
|
:type variables: str
|
|
1350
1381
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1369,9 +1400,8 @@ class DefaultApi:
|
|
|
1369
1400
|
:return: Returns the result object.
|
|
1370
1401
|
""" # noqa: E501
|
|
1371
1402
|
|
|
1372
|
-
_param = self.
|
|
1403
|
+
_param = self._get_data_saver_mode_serialize(
|
|
1373
1404
|
path_query_id=path_query_id,
|
|
1374
|
-
features=features,
|
|
1375
1405
|
variables=variables,
|
|
1376
1406
|
_request_auth=_request_auth,
|
|
1377
1407
|
_content_type=_content_type,
|
|
@@ -1380,7 +1410,7 @@ class DefaultApi:
|
|
|
1380
1410
|
)
|
|
1381
1411
|
|
|
1382
1412
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1383
|
-
'200': "
|
|
1413
|
+
'200': "DataSaverModeResponse",
|
|
1384
1414
|
}
|
|
1385
1415
|
response_data = self.api_client.call_api(
|
|
1386
1416
|
*_param,
|
|
@@ -1394,10 +1424,9 @@ class DefaultApi:
|
|
|
1394
1424
|
|
|
1395
1425
|
|
|
1396
1426
|
@validate_call
|
|
1397
|
-
def
|
|
1427
|
+
def get_data_saver_mode_without_preload_content(
|
|
1398
1428
|
self,
|
|
1399
1429
|
path_query_id: StrictStr,
|
|
1400
|
-
features: StrictStr,
|
|
1401
1430
|
variables: StrictStr,
|
|
1402
1431
|
_request_timeout: Union[
|
|
1403
1432
|
None,
|
|
@@ -1412,14 +1441,12 @@ class DefaultApi:
|
|
|
1412
1441
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1413
1442
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1414
1443
|
) -> RESTResponseType:
|
|
1415
|
-
"""
|
|
1444
|
+
"""get_data_saver_mode
|
|
1416
1445
|
|
|
1417
|
-
the account
|
|
1446
|
+
data saver setting of the account
|
|
1418
1447
|
|
|
1419
1448
|
:param path_query_id: (required)
|
|
1420
1449
|
:type path_query_id: str
|
|
1421
|
-
:param features: (required)
|
|
1422
|
-
:type features: str
|
|
1423
1450
|
:param variables: (required)
|
|
1424
1451
|
:type variables: str
|
|
1425
1452
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1444,9 +1471,8 @@ class DefaultApi:
|
|
|
1444
1471
|
:return: Returns the result object.
|
|
1445
1472
|
""" # noqa: E501
|
|
1446
1473
|
|
|
1447
|
-
_param = self.
|
|
1474
|
+
_param = self._get_data_saver_mode_serialize(
|
|
1448
1475
|
path_query_id=path_query_id,
|
|
1449
|
-
features=features,
|
|
1450
1476
|
variables=variables,
|
|
1451
1477
|
_request_auth=_request_auth,
|
|
1452
1478
|
_content_type=_content_type,
|
|
@@ -1455,7 +1481,7 @@ class DefaultApi:
|
|
|
1455
1481
|
)
|
|
1456
1482
|
|
|
1457
1483
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1458
|
-
'200': "
|
|
1484
|
+
'200': "DataSaverModeResponse",
|
|
1459
1485
|
}
|
|
1460
1486
|
response_data = self.api_client.call_api(
|
|
1461
1487
|
*_param,
|
|
@@ -1464,10 +1490,9 @@ class DefaultApi:
|
|
|
1464
1490
|
return response_data.response
|
|
1465
1491
|
|
|
1466
1492
|
|
|
1467
|
-
def
|
|
1493
|
+
def _get_data_saver_mode_serialize(
|
|
1468
1494
|
self,
|
|
1469
1495
|
path_query_id,
|
|
1470
|
-
features,
|
|
1471
1496
|
variables,
|
|
1472
1497
|
_request_auth,
|
|
1473
1498
|
_content_type,
|
|
@@ -1493,10 +1518,6 @@ class DefaultApi:
|
|
|
1493
1518
|
if path_query_id is not None:
|
|
1494
1519
|
_path_params['pathQueryId'] = path_query_id
|
|
1495
1520
|
# process the query parameters
|
|
1496
|
-
if features is not None:
|
|
1497
|
-
|
|
1498
|
-
_query_params.append(('features', features))
|
|
1499
|
-
|
|
1500
1521
|
if variables is not None:
|
|
1501
1522
|
|
|
1502
1523
|
_query_params.append(('variables', variables))
|
|
@@ -1544,7 +1565,7 @@ class DefaultApi:
|
|
|
1544
1565
|
|
|
1545
1566
|
return self.api_client.param_serialize(
|
|
1546
1567
|
method='GET',
|
|
1547
|
-
resource_path='/graphql/{pathQueryId}/
|
|
1568
|
+
resource_path='/graphql/{pathQueryId}/DataSaverMode',
|
|
1548
1569
|
path_params=_path_params,
|
|
1549
1570
|
query_params=_query_params,
|
|
1550
1571
|
header_params=_header_params,
|
|
@@ -1561,11 +1582,10 @@ class DefaultApi:
|
|
|
1561
1582
|
|
|
1562
1583
|
|
|
1563
1584
|
@validate_call
|
|
1564
|
-
def
|
|
1585
|
+
def get_grok_account_jwt_query(
|
|
1565
1586
|
self,
|
|
1566
1587
|
path_query_id: StrictStr,
|
|
1567
1588
|
variables: StrictStr,
|
|
1568
|
-
features: StrictStr,
|
|
1569
1589
|
_request_timeout: Union[
|
|
1570
1590
|
None,
|
|
1571
1591
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1578,17 +1598,15 @@ class DefaultApi:
|
|
|
1578
1598
|
_content_type: Optional[StrictStr] = None,
|
|
1579
1599
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1580
1600
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1581
|
-
) ->
|
|
1582
|
-
"""
|
|
1601
|
+
) -> GrokAccountJwtResponse:
|
|
1602
|
+
"""get_grok_account_jwt_query
|
|
1583
1603
|
|
|
1584
|
-
|
|
1604
|
+
whether the account is linked to a Grok account
|
|
1585
1605
|
|
|
1586
1606
|
:param path_query_id: (required)
|
|
1587
1607
|
:type path_query_id: str
|
|
1588
1608
|
:param variables: (required)
|
|
1589
1609
|
:type variables: str
|
|
1590
|
-
:param features: (required)
|
|
1591
|
-
:type features: str
|
|
1592
1610
|
:param _request_timeout: timeout setting for this request. If one
|
|
1593
1611
|
number provided, it will be total request
|
|
1594
1612
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1611,10 +1629,9 @@ class DefaultApi:
|
|
|
1611
1629
|
:return: Returns the result object.
|
|
1612
1630
|
""" # noqa: E501
|
|
1613
1631
|
|
|
1614
|
-
_param = self.
|
|
1632
|
+
_param = self._get_grok_account_jwt_query_serialize(
|
|
1615
1633
|
path_query_id=path_query_id,
|
|
1616
1634
|
variables=variables,
|
|
1617
|
-
features=features,
|
|
1618
1635
|
_request_auth=_request_auth,
|
|
1619
1636
|
_content_type=_content_type,
|
|
1620
1637
|
_headers=_headers,
|
|
@@ -1622,7 +1639,7 @@ class DefaultApi:
|
|
|
1622
1639
|
)
|
|
1623
1640
|
|
|
1624
1641
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1625
|
-
'200': "
|
|
1642
|
+
'200': "GrokAccountJwtResponse",
|
|
1626
1643
|
}
|
|
1627
1644
|
response_data = self.api_client.call_api(
|
|
1628
1645
|
*_param,
|
|
@@ -1636,11 +1653,10 @@ class DefaultApi:
|
|
|
1636
1653
|
|
|
1637
1654
|
|
|
1638
1655
|
@validate_call
|
|
1639
|
-
def
|
|
1656
|
+
def get_grok_account_jwt_query_with_http_info(
|
|
1640
1657
|
self,
|
|
1641
1658
|
path_query_id: StrictStr,
|
|
1642
1659
|
variables: StrictStr,
|
|
1643
|
-
features: StrictStr,
|
|
1644
1660
|
_request_timeout: Union[
|
|
1645
1661
|
None,
|
|
1646
1662
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1653,17 +1669,15 @@ class DefaultApi:
|
|
|
1653
1669
|
_content_type: Optional[StrictStr] = None,
|
|
1654
1670
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1655
1671
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1656
|
-
) -> ApiResponse[
|
|
1657
|
-
"""
|
|
1672
|
+
) -> ApiResponse[GrokAccountJwtResponse]:
|
|
1673
|
+
"""get_grok_account_jwt_query
|
|
1658
1674
|
|
|
1659
|
-
|
|
1675
|
+
whether the account is linked to a Grok account
|
|
1660
1676
|
|
|
1661
1677
|
:param path_query_id: (required)
|
|
1662
1678
|
:type path_query_id: str
|
|
1663
1679
|
:param variables: (required)
|
|
1664
1680
|
:type variables: str
|
|
1665
|
-
:param features: (required)
|
|
1666
|
-
:type features: str
|
|
1667
1681
|
:param _request_timeout: timeout setting for this request. If one
|
|
1668
1682
|
number provided, it will be total request
|
|
1669
1683
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1686,10 +1700,9 @@ class DefaultApi:
|
|
|
1686
1700
|
:return: Returns the result object.
|
|
1687
1701
|
""" # noqa: E501
|
|
1688
1702
|
|
|
1689
|
-
_param = self.
|
|
1703
|
+
_param = self._get_grok_account_jwt_query_serialize(
|
|
1690
1704
|
path_query_id=path_query_id,
|
|
1691
1705
|
variables=variables,
|
|
1692
|
-
features=features,
|
|
1693
1706
|
_request_auth=_request_auth,
|
|
1694
1707
|
_content_type=_content_type,
|
|
1695
1708
|
_headers=_headers,
|
|
@@ -1697,7 +1710,7 @@ class DefaultApi:
|
|
|
1697
1710
|
)
|
|
1698
1711
|
|
|
1699
1712
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1700
|
-
'200': "
|
|
1713
|
+
'200': "GrokAccountJwtResponse",
|
|
1701
1714
|
}
|
|
1702
1715
|
response_data = self.api_client.call_api(
|
|
1703
1716
|
*_param,
|
|
@@ -1711,11 +1724,10 @@ class DefaultApi:
|
|
|
1711
1724
|
|
|
1712
1725
|
|
|
1713
1726
|
@validate_call
|
|
1714
|
-
def
|
|
1727
|
+
def get_grok_account_jwt_query_without_preload_content(
|
|
1715
1728
|
self,
|
|
1716
1729
|
path_query_id: StrictStr,
|
|
1717
1730
|
variables: StrictStr,
|
|
1718
|
-
features: StrictStr,
|
|
1719
1731
|
_request_timeout: Union[
|
|
1720
1732
|
None,
|
|
1721
1733
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1729,16 +1741,14 @@ class DefaultApi:
|
|
|
1729
1741
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1730
1742
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1731
1743
|
) -> RESTResponseType:
|
|
1732
|
-
"""
|
|
1744
|
+
"""get_grok_account_jwt_query
|
|
1733
1745
|
|
|
1734
|
-
|
|
1746
|
+
whether the account is linked to a Grok account
|
|
1735
1747
|
|
|
1736
1748
|
:param path_query_id: (required)
|
|
1737
1749
|
:type path_query_id: str
|
|
1738
1750
|
:param variables: (required)
|
|
1739
1751
|
:type variables: str
|
|
1740
|
-
:param features: (required)
|
|
1741
|
-
:type features: str
|
|
1742
1752
|
:param _request_timeout: timeout setting for this request. If one
|
|
1743
1753
|
number provided, it will be total request
|
|
1744
1754
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1761,10 +1771,9 @@ class DefaultApi:
|
|
|
1761
1771
|
:return: Returns the result object.
|
|
1762
1772
|
""" # noqa: E501
|
|
1763
1773
|
|
|
1764
|
-
_param = self.
|
|
1774
|
+
_param = self._get_grok_account_jwt_query_serialize(
|
|
1765
1775
|
path_query_id=path_query_id,
|
|
1766
1776
|
variables=variables,
|
|
1767
|
-
features=features,
|
|
1768
1777
|
_request_auth=_request_auth,
|
|
1769
1778
|
_content_type=_content_type,
|
|
1770
1779
|
_headers=_headers,
|
|
@@ -1772,7 +1781,7 @@ class DefaultApi:
|
|
|
1772
1781
|
)
|
|
1773
1782
|
|
|
1774
1783
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1775
|
-
'200': "
|
|
1784
|
+
'200': "GrokAccountJwtResponse",
|
|
1776
1785
|
}
|
|
1777
1786
|
response_data = self.api_client.call_api(
|
|
1778
1787
|
*_param,
|
|
@@ -1781,11 +1790,10 @@ class DefaultApi:
|
|
|
1781
1790
|
return response_data.response
|
|
1782
1791
|
|
|
1783
1792
|
|
|
1784
|
-
def
|
|
1793
|
+
def _get_grok_account_jwt_query_serialize(
|
|
1785
1794
|
self,
|
|
1786
1795
|
path_query_id,
|
|
1787
1796
|
variables,
|
|
1788
|
-
features,
|
|
1789
1797
|
_request_auth,
|
|
1790
1798
|
_content_type,
|
|
1791
1799
|
_headers,
|
|
@@ -1814,10 +1822,6 @@ class DefaultApi:
|
|
|
1814
1822
|
|
|
1815
1823
|
_query_params.append(('variables', variables))
|
|
1816
1824
|
|
|
1817
|
-
if features is not None:
|
|
1818
|
-
|
|
1819
|
-
_query_params.append(('features', features))
|
|
1820
|
-
|
|
1821
1825
|
# process the header parameters
|
|
1822
1826
|
# process the form parameters
|
|
1823
1827
|
# process the body parameter
|
|
@@ -1861,7 +1865,7 @@ class DefaultApi:
|
|
|
1861
1865
|
|
|
1862
1866
|
return self.api_client.param_serialize(
|
|
1863
1867
|
method='GET',
|
|
1864
|
-
resource_path='/graphql/{pathQueryId}/
|
|
1868
|
+
resource_path='/graphql/{pathQueryId}/grokAccountJwtQuery',
|
|
1865
1869
|
path_params=_path_params,
|
|
1866
1870
|
query_params=_query_params,
|
|
1867
1871
|
header_params=_header_params,
|
|
@@ -1878,12 +1882,10 @@ class DefaultApi:
|
|
|
1878
1882
|
|
|
1879
1883
|
|
|
1880
1884
|
@validate_call
|
|
1881
|
-
def
|
|
1885
|
+
def get_grok_home(
|
|
1882
1886
|
self,
|
|
1883
1887
|
path_query_id: StrictStr,
|
|
1884
1888
|
variables: StrictStr,
|
|
1885
|
-
features: StrictStr,
|
|
1886
|
-
field_toggles: StrictStr,
|
|
1887
1889
|
_request_timeout: Union[
|
|
1888
1890
|
None,
|
|
1889
1891
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1896,19 +1898,15 @@ class DefaultApi:
|
|
|
1896
1898
|
_content_type: Optional[StrictStr] = None,
|
|
1897
1899
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1898
1900
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1899
|
-
) ->
|
|
1900
|
-
"""
|
|
1901
|
+
) -> GrokHomeResponse:
|
|
1902
|
+
"""get_grok_home
|
|
1901
1903
|
|
|
1902
|
-
|
|
1904
|
+
Grok home: model options, prompts and eligibility
|
|
1903
1905
|
|
|
1904
1906
|
:param path_query_id: (required)
|
|
1905
1907
|
:type path_query_id: str
|
|
1906
1908
|
:param variables: (required)
|
|
1907
1909
|
:type variables: str
|
|
1908
|
-
:param features: (required)
|
|
1909
|
-
:type features: str
|
|
1910
|
-
:param field_toggles: (required)
|
|
1911
|
-
:type field_toggles: str
|
|
1912
1910
|
:param _request_timeout: timeout setting for this request. If one
|
|
1913
1911
|
number provided, it will be total request
|
|
1914
1912
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1931,10 +1929,1108 @@ class DefaultApi:
|
|
|
1931
1929
|
:return: Returns the result object.
|
|
1932
1930
|
""" # noqa: E501
|
|
1933
1931
|
|
|
1934
|
-
_param = self.
|
|
1932
|
+
_param = self._get_grok_home_serialize(
|
|
1935
1933
|
path_query_id=path_query_id,
|
|
1936
1934
|
variables=variables,
|
|
1937
|
-
|
|
1935
|
+
_request_auth=_request_auth,
|
|
1936
|
+
_content_type=_content_type,
|
|
1937
|
+
_headers=_headers,
|
|
1938
|
+
_host_index=_host_index
|
|
1939
|
+
)
|
|
1940
|
+
|
|
1941
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1942
|
+
'200': "GrokHomeResponse",
|
|
1943
|
+
}
|
|
1944
|
+
response_data = self.api_client.call_api(
|
|
1945
|
+
*_param,
|
|
1946
|
+
_request_timeout=_request_timeout
|
|
1947
|
+
)
|
|
1948
|
+
response_data.read()
|
|
1949
|
+
return self.api_client.response_deserialize(
|
|
1950
|
+
response_data=response_data,
|
|
1951
|
+
response_types_map=_response_types_map,
|
|
1952
|
+
).data
|
|
1953
|
+
|
|
1954
|
+
|
|
1955
|
+
@validate_call
|
|
1956
|
+
def get_grok_home_with_http_info(
|
|
1957
|
+
self,
|
|
1958
|
+
path_query_id: StrictStr,
|
|
1959
|
+
variables: StrictStr,
|
|
1960
|
+
_request_timeout: Union[
|
|
1961
|
+
None,
|
|
1962
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1963
|
+
Tuple[
|
|
1964
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1965
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1966
|
+
]
|
|
1967
|
+
] = None,
|
|
1968
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1969
|
+
_content_type: Optional[StrictStr] = None,
|
|
1970
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1971
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1972
|
+
) -> ApiResponse[GrokHomeResponse]:
|
|
1973
|
+
"""get_grok_home
|
|
1974
|
+
|
|
1975
|
+
Grok home: model options, prompts and eligibility
|
|
1976
|
+
|
|
1977
|
+
:param path_query_id: (required)
|
|
1978
|
+
:type path_query_id: str
|
|
1979
|
+
:param variables: (required)
|
|
1980
|
+
:type variables: str
|
|
1981
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1982
|
+
number provided, it will be total request
|
|
1983
|
+
timeout. It can also be a pair (tuple) of
|
|
1984
|
+
(connection, read) timeouts.
|
|
1985
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1986
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1987
|
+
request; this effectively ignores the
|
|
1988
|
+
authentication in the spec for a single request.
|
|
1989
|
+
:type _request_auth: dict, optional
|
|
1990
|
+
:param _content_type: force content-type for the request.
|
|
1991
|
+
:type _content_type: str, Optional
|
|
1992
|
+
:param _headers: set to override the headers for a single
|
|
1993
|
+
request; this effectively ignores the headers
|
|
1994
|
+
in the spec for a single request.
|
|
1995
|
+
:type _headers: dict, optional
|
|
1996
|
+
:param _host_index: set to override the host_index for a single
|
|
1997
|
+
request; this effectively ignores the host_index
|
|
1998
|
+
in the spec for a single request.
|
|
1999
|
+
:type _host_index: int, optional
|
|
2000
|
+
:return: Returns the result object.
|
|
2001
|
+
""" # noqa: E501
|
|
2002
|
+
|
|
2003
|
+
_param = self._get_grok_home_serialize(
|
|
2004
|
+
path_query_id=path_query_id,
|
|
2005
|
+
variables=variables,
|
|
2006
|
+
_request_auth=_request_auth,
|
|
2007
|
+
_content_type=_content_type,
|
|
2008
|
+
_headers=_headers,
|
|
2009
|
+
_host_index=_host_index
|
|
2010
|
+
)
|
|
2011
|
+
|
|
2012
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2013
|
+
'200': "GrokHomeResponse",
|
|
2014
|
+
}
|
|
2015
|
+
response_data = self.api_client.call_api(
|
|
2016
|
+
*_param,
|
|
2017
|
+
_request_timeout=_request_timeout
|
|
2018
|
+
)
|
|
2019
|
+
response_data.read()
|
|
2020
|
+
return self.api_client.response_deserialize(
|
|
2021
|
+
response_data=response_data,
|
|
2022
|
+
response_types_map=_response_types_map,
|
|
2023
|
+
)
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
@validate_call
|
|
2027
|
+
def get_grok_home_without_preload_content(
|
|
2028
|
+
self,
|
|
2029
|
+
path_query_id: StrictStr,
|
|
2030
|
+
variables: StrictStr,
|
|
2031
|
+
_request_timeout: Union[
|
|
2032
|
+
None,
|
|
2033
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2034
|
+
Tuple[
|
|
2035
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2036
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2037
|
+
]
|
|
2038
|
+
] = None,
|
|
2039
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2040
|
+
_content_type: Optional[StrictStr] = None,
|
|
2041
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2042
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2043
|
+
) -> RESTResponseType:
|
|
2044
|
+
"""get_grok_home
|
|
2045
|
+
|
|
2046
|
+
Grok home: model options, prompts and eligibility
|
|
2047
|
+
|
|
2048
|
+
:param path_query_id: (required)
|
|
2049
|
+
:type path_query_id: str
|
|
2050
|
+
:param variables: (required)
|
|
2051
|
+
:type variables: str
|
|
2052
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2053
|
+
number provided, it will be total request
|
|
2054
|
+
timeout. It can also be a pair (tuple) of
|
|
2055
|
+
(connection, read) timeouts.
|
|
2056
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2057
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2058
|
+
request; this effectively ignores the
|
|
2059
|
+
authentication in the spec for a single request.
|
|
2060
|
+
:type _request_auth: dict, optional
|
|
2061
|
+
:param _content_type: force content-type for the request.
|
|
2062
|
+
:type _content_type: str, Optional
|
|
2063
|
+
:param _headers: set to override the headers for a single
|
|
2064
|
+
request; this effectively ignores the headers
|
|
2065
|
+
in the spec for a single request.
|
|
2066
|
+
:type _headers: dict, optional
|
|
2067
|
+
:param _host_index: set to override the host_index for a single
|
|
2068
|
+
request; this effectively ignores the host_index
|
|
2069
|
+
in the spec for a single request.
|
|
2070
|
+
:type _host_index: int, optional
|
|
2071
|
+
:return: Returns the result object.
|
|
2072
|
+
""" # noqa: E501
|
|
2073
|
+
|
|
2074
|
+
_param = self._get_grok_home_serialize(
|
|
2075
|
+
path_query_id=path_query_id,
|
|
2076
|
+
variables=variables,
|
|
2077
|
+
_request_auth=_request_auth,
|
|
2078
|
+
_content_type=_content_type,
|
|
2079
|
+
_headers=_headers,
|
|
2080
|
+
_host_index=_host_index
|
|
2081
|
+
)
|
|
2082
|
+
|
|
2083
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2084
|
+
'200': "GrokHomeResponse",
|
|
2085
|
+
}
|
|
2086
|
+
response_data = self.api_client.call_api(
|
|
2087
|
+
*_param,
|
|
2088
|
+
_request_timeout=_request_timeout
|
|
2089
|
+
)
|
|
2090
|
+
return response_data.response
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
def _get_grok_home_serialize(
|
|
2094
|
+
self,
|
|
2095
|
+
path_query_id,
|
|
2096
|
+
variables,
|
|
2097
|
+
_request_auth,
|
|
2098
|
+
_content_type,
|
|
2099
|
+
_headers,
|
|
2100
|
+
_host_index,
|
|
2101
|
+
) -> RequestSerialized:
|
|
2102
|
+
|
|
2103
|
+
_host = None
|
|
2104
|
+
|
|
2105
|
+
_collection_formats: Dict[str, str] = {
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
_path_params: Dict[str, str] = {}
|
|
2109
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2110
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2111
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2112
|
+
_files: Dict[
|
|
2113
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2114
|
+
] = {}
|
|
2115
|
+
_body_params: Optional[bytes] = None
|
|
2116
|
+
|
|
2117
|
+
# process the path parameters
|
|
2118
|
+
if path_query_id is not None:
|
|
2119
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2120
|
+
# process the query parameters
|
|
2121
|
+
if variables is not None:
|
|
2122
|
+
|
|
2123
|
+
_query_params.append(('variables', variables))
|
|
2124
|
+
|
|
2125
|
+
# process the header parameters
|
|
2126
|
+
# process the form parameters
|
|
2127
|
+
# process the body parameter
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
# set the HTTP header `Accept`
|
|
2131
|
+
if 'Accept' not in _header_params:
|
|
2132
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2133
|
+
[
|
|
2134
|
+
'application/json'
|
|
2135
|
+
]
|
|
2136
|
+
)
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
# authentication setting
|
|
2140
|
+
_auth_settings: List[str] = [
|
|
2141
|
+
'Accept',
|
|
2142
|
+
'ClientLanguage',
|
|
2143
|
+
'Priority',
|
|
2144
|
+
'Referer',
|
|
2145
|
+
'SecFetchDest',
|
|
2146
|
+
'SecChUaPlatform',
|
|
2147
|
+
'SecFetchMode',
|
|
2148
|
+
'CsrfToken',
|
|
2149
|
+
'ClientUuid',
|
|
2150
|
+
'BearerAuth',
|
|
2151
|
+
'GuestToken',
|
|
2152
|
+
'SecChUa',
|
|
2153
|
+
'CookieGt0',
|
|
2154
|
+
'ClientTransactionId',
|
|
2155
|
+
'ActiveUser',
|
|
2156
|
+
'CookieCt0',
|
|
2157
|
+
'UserAgent',
|
|
2158
|
+
'AcceptLanguage',
|
|
2159
|
+
'SecFetchSite',
|
|
2160
|
+
'AuthType',
|
|
2161
|
+
'CookieAuthToken',
|
|
2162
|
+
'SecChUaMobile',
|
|
2163
|
+
'AcceptEncoding'
|
|
2164
|
+
]
|
|
2165
|
+
|
|
2166
|
+
return self.api_client.param_serialize(
|
|
2167
|
+
method='GET',
|
|
2168
|
+
resource_path='/graphql/{pathQueryId}/GrokHome',
|
|
2169
|
+
path_params=_path_params,
|
|
2170
|
+
query_params=_query_params,
|
|
2171
|
+
header_params=_header_params,
|
|
2172
|
+
body=_body_params,
|
|
2173
|
+
post_params=_form_params,
|
|
2174
|
+
files=_files,
|
|
2175
|
+
auth_settings=_auth_settings,
|
|
2176
|
+
collection_formats=_collection_formats,
|
|
2177
|
+
_host=_host,
|
|
2178
|
+
_request_auth=_request_auth
|
|
2179
|
+
)
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
@validate_call
|
|
2185
|
+
def get_pinned_timelines(
|
|
2186
|
+
self,
|
|
2187
|
+
path_query_id: StrictStr,
|
|
2188
|
+
features: StrictStr,
|
|
2189
|
+
variables: StrictStr,
|
|
2190
|
+
_request_timeout: Union[
|
|
2191
|
+
None,
|
|
2192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2193
|
+
Tuple[
|
|
2194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2196
|
+
]
|
|
2197
|
+
] = None,
|
|
2198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2199
|
+
_content_type: Optional[StrictStr] = None,
|
|
2200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2202
|
+
) -> PinnedTimelinesResponse:
|
|
2203
|
+
"""get_pinned_timelines
|
|
2204
|
+
|
|
2205
|
+
the account's pinned timelines
|
|
2206
|
+
|
|
2207
|
+
:param path_query_id: (required)
|
|
2208
|
+
:type path_query_id: str
|
|
2209
|
+
:param features: (required)
|
|
2210
|
+
:type features: str
|
|
2211
|
+
:param variables: (required)
|
|
2212
|
+
:type variables: str
|
|
2213
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2214
|
+
number provided, it will be total request
|
|
2215
|
+
timeout. It can also be a pair (tuple) of
|
|
2216
|
+
(connection, read) timeouts.
|
|
2217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2218
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2219
|
+
request; this effectively ignores the
|
|
2220
|
+
authentication in the spec for a single request.
|
|
2221
|
+
:type _request_auth: dict, optional
|
|
2222
|
+
:param _content_type: force content-type for the request.
|
|
2223
|
+
:type _content_type: str, Optional
|
|
2224
|
+
:param _headers: set to override the headers for a single
|
|
2225
|
+
request; this effectively ignores the headers
|
|
2226
|
+
in the spec for a single request.
|
|
2227
|
+
:type _headers: dict, optional
|
|
2228
|
+
:param _host_index: set to override the host_index for a single
|
|
2229
|
+
request; this effectively ignores the host_index
|
|
2230
|
+
in the spec for a single request.
|
|
2231
|
+
:type _host_index: int, optional
|
|
2232
|
+
:return: Returns the result object.
|
|
2233
|
+
""" # noqa: E501
|
|
2234
|
+
|
|
2235
|
+
_param = self._get_pinned_timelines_serialize(
|
|
2236
|
+
path_query_id=path_query_id,
|
|
2237
|
+
features=features,
|
|
2238
|
+
variables=variables,
|
|
2239
|
+
_request_auth=_request_auth,
|
|
2240
|
+
_content_type=_content_type,
|
|
2241
|
+
_headers=_headers,
|
|
2242
|
+
_host_index=_host_index
|
|
2243
|
+
)
|
|
2244
|
+
|
|
2245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2246
|
+
'200': "PinnedTimelinesResponse",
|
|
2247
|
+
}
|
|
2248
|
+
response_data = self.api_client.call_api(
|
|
2249
|
+
*_param,
|
|
2250
|
+
_request_timeout=_request_timeout
|
|
2251
|
+
)
|
|
2252
|
+
response_data.read()
|
|
2253
|
+
return self.api_client.response_deserialize(
|
|
2254
|
+
response_data=response_data,
|
|
2255
|
+
response_types_map=_response_types_map,
|
|
2256
|
+
).data
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
@validate_call
|
|
2260
|
+
def get_pinned_timelines_with_http_info(
|
|
2261
|
+
self,
|
|
2262
|
+
path_query_id: StrictStr,
|
|
2263
|
+
features: StrictStr,
|
|
2264
|
+
variables: StrictStr,
|
|
2265
|
+
_request_timeout: Union[
|
|
2266
|
+
None,
|
|
2267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2268
|
+
Tuple[
|
|
2269
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2270
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2271
|
+
]
|
|
2272
|
+
] = None,
|
|
2273
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2274
|
+
_content_type: Optional[StrictStr] = None,
|
|
2275
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2276
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2277
|
+
) -> ApiResponse[PinnedTimelinesResponse]:
|
|
2278
|
+
"""get_pinned_timelines
|
|
2279
|
+
|
|
2280
|
+
the account's pinned timelines
|
|
2281
|
+
|
|
2282
|
+
:param path_query_id: (required)
|
|
2283
|
+
:type path_query_id: str
|
|
2284
|
+
:param features: (required)
|
|
2285
|
+
:type features: str
|
|
2286
|
+
:param variables: (required)
|
|
2287
|
+
:type variables: str
|
|
2288
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2289
|
+
number provided, it will be total request
|
|
2290
|
+
timeout. It can also be a pair (tuple) of
|
|
2291
|
+
(connection, read) timeouts.
|
|
2292
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2293
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2294
|
+
request; this effectively ignores the
|
|
2295
|
+
authentication in the spec for a single request.
|
|
2296
|
+
:type _request_auth: dict, optional
|
|
2297
|
+
:param _content_type: force content-type for the request.
|
|
2298
|
+
:type _content_type: str, Optional
|
|
2299
|
+
:param _headers: set to override the headers for a single
|
|
2300
|
+
request; this effectively ignores the headers
|
|
2301
|
+
in the spec for a single request.
|
|
2302
|
+
:type _headers: dict, optional
|
|
2303
|
+
:param _host_index: set to override the host_index for a single
|
|
2304
|
+
request; this effectively ignores the host_index
|
|
2305
|
+
in the spec for a single request.
|
|
2306
|
+
:type _host_index: int, optional
|
|
2307
|
+
:return: Returns the result object.
|
|
2308
|
+
""" # noqa: E501
|
|
2309
|
+
|
|
2310
|
+
_param = self._get_pinned_timelines_serialize(
|
|
2311
|
+
path_query_id=path_query_id,
|
|
2312
|
+
features=features,
|
|
2313
|
+
variables=variables,
|
|
2314
|
+
_request_auth=_request_auth,
|
|
2315
|
+
_content_type=_content_type,
|
|
2316
|
+
_headers=_headers,
|
|
2317
|
+
_host_index=_host_index
|
|
2318
|
+
)
|
|
2319
|
+
|
|
2320
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2321
|
+
'200': "PinnedTimelinesResponse",
|
|
2322
|
+
}
|
|
2323
|
+
response_data = self.api_client.call_api(
|
|
2324
|
+
*_param,
|
|
2325
|
+
_request_timeout=_request_timeout
|
|
2326
|
+
)
|
|
2327
|
+
response_data.read()
|
|
2328
|
+
return self.api_client.response_deserialize(
|
|
2329
|
+
response_data=response_data,
|
|
2330
|
+
response_types_map=_response_types_map,
|
|
2331
|
+
)
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
@validate_call
|
|
2335
|
+
def get_pinned_timelines_without_preload_content(
|
|
2336
|
+
self,
|
|
2337
|
+
path_query_id: StrictStr,
|
|
2338
|
+
features: StrictStr,
|
|
2339
|
+
variables: StrictStr,
|
|
2340
|
+
_request_timeout: Union[
|
|
2341
|
+
None,
|
|
2342
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2343
|
+
Tuple[
|
|
2344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2345
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2346
|
+
]
|
|
2347
|
+
] = None,
|
|
2348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2349
|
+
_content_type: Optional[StrictStr] = None,
|
|
2350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2352
|
+
) -> RESTResponseType:
|
|
2353
|
+
"""get_pinned_timelines
|
|
2354
|
+
|
|
2355
|
+
the account's pinned timelines
|
|
2356
|
+
|
|
2357
|
+
:param path_query_id: (required)
|
|
2358
|
+
:type path_query_id: str
|
|
2359
|
+
:param features: (required)
|
|
2360
|
+
:type features: str
|
|
2361
|
+
:param variables: (required)
|
|
2362
|
+
:type variables: str
|
|
2363
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2364
|
+
number provided, it will be total request
|
|
2365
|
+
timeout. It can also be a pair (tuple) of
|
|
2366
|
+
(connection, read) timeouts.
|
|
2367
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2368
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2369
|
+
request; this effectively ignores the
|
|
2370
|
+
authentication in the spec for a single request.
|
|
2371
|
+
:type _request_auth: dict, optional
|
|
2372
|
+
:param _content_type: force content-type for the request.
|
|
2373
|
+
:type _content_type: str, Optional
|
|
2374
|
+
:param _headers: set to override the headers for a single
|
|
2375
|
+
request; this effectively ignores the headers
|
|
2376
|
+
in the spec for a single request.
|
|
2377
|
+
:type _headers: dict, optional
|
|
2378
|
+
:param _host_index: set to override the host_index for a single
|
|
2379
|
+
request; this effectively ignores the host_index
|
|
2380
|
+
in the spec for a single request.
|
|
2381
|
+
:type _host_index: int, optional
|
|
2382
|
+
:return: Returns the result object.
|
|
2383
|
+
""" # noqa: E501
|
|
2384
|
+
|
|
2385
|
+
_param = self._get_pinned_timelines_serialize(
|
|
2386
|
+
path_query_id=path_query_id,
|
|
2387
|
+
features=features,
|
|
2388
|
+
variables=variables,
|
|
2389
|
+
_request_auth=_request_auth,
|
|
2390
|
+
_content_type=_content_type,
|
|
2391
|
+
_headers=_headers,
|
|
2392
|
+
_host_index=_host_index
|
|
2393
|
+
)
|
|
2394
|
+
|
|
2395
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2396
|
+
'200': "PinnedTimelinesResponse",
|
|
2397
|
+
}
|
|
2398
|
+
response_data = self.api_client.call_api(
|
|
2399
|
+
*_param,
|
|
2400
|
+
_request_timeout=_request_timeout
|
|
2401
|
+
)
|
|
2402
|
+
return response_data.response
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
def _get_pinned_timelines_serialize(
|
|
2406
|
+
self,
|
|
2407
|
+
path_query_id,
|
|
2408
|
+
features,
|
|
2409
|
+
variables,
|
|
2410
|
+
_request_auth,
|
|
2411
|
+
_content_type,
|
|
2412
|
+
_headers,
|
|
2413
|
+
_host_index,
|
|
2414
|
+
) -> RequestSerialized:
|
|
2415
|
+
|
|
2416
|
+
_host = None
|
|
2417
|
+
|
|
2418
|
+
_collection_formats: Dict[str, str] = {
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
_path_params: Dict[str, str] = {}
|
|
2422
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2423
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2424
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2425
|
+
_files: Dict[
|
|
2426
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2427
|
+
] = {}
|
|
2428
|
+
_body_params: Optional[bytes] = None
|
|
2429
|
+
|
|
2430
|
+
# process the path parameters
|
|
2431
|
+
if path_query_id is not None:
|
|
2432
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2433
|
+
# process the query parameters
|
|
2434
|
+
if features is not None:
|
|
2435
|
+
|
|
2436
|
+
_query_params.append(('features', features))
|
|
2437
|
+
|
|
2438
|
+
if variables is not None:
|
|
2439
|
+
|
|
2440
|
+
_query_params.append(('variables', variables))
|
|
2441
|
+
|
|
2442
|
+
# process the header parameters
|
|
2443
|
+
# process the form parameters
|
|
2444
|
+
# process the body parameter
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
# set the HTTP header `Accept`
|
|
2448
|
+
if 'Accept' not in _header_params:
|
|
2449
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2450
|
+
[
|
|
2451
|
+
'application/json'
|
|
2452
|
+
]
|
|
2453
|
+
)
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
# authentication setting
|
|
2457
|
+
_auth_settings: List[str] = [
|
|
2458
|
+
'Accept',
|
|
2459
|
+
'ClientLanguage',
|
|
2460
|
+
'Priority',
|
|
2461
|
+
'Referer',
|
|
2462
|
+
'SecFetchDest',
|
|
2463
|
+
'SecChUaPlatform',
|
|
2464
|
+
'SecFetchMode',
|
|
2465
|
+
'CsrfToken',
|
|
2466
|
+
'ClientUuid',
|
|
2467
|
+
'BearerAuth',
|
|
2468
|
+
'GuestToken',
|
|
2469
|
+
'SecChUa',
|
|
2470
|
+
'CookieGt0',
|
|
2471
|
+
'ClientTransactionId',
|
|
2472
|
+
'ActiveUser',
|
|
2473
|
+
'CookieCt0',
|
|
2474
|
+
'UserAgent',
|
|
2475
|
+
'AcceptLanguage',
|
|
2476
|
+
'SecFetchSite',
|
|
2477
|
+
'AuthType',
|
|
2478
|
+
'CookieAuthToken',
|
|
2479
|
+
'SecChUaMobile',
|
|
2480
|
+
'AcceptEncoding'
|
|
2481
|
+
]
|
|
2482
|
+
|
|
2483
|
+
return self.api_client.param_serialize(
|
|
2484
|
+
method='GET',
|
|
2485
|
+
resource_path='/graphql/{pathQueryId}/PinnedTimelines',
|
|
2486
|
+
path_params=_path_params,
|
|
2487
|
+
query_params=_query_params,
|
|
2488
|
+
header_params=_header_params,
|
|
2489
|
+
body=_body_params,
|
|
2490
|
+
post_params=_form_params,
|
|
2491
|
+
files=_files,
|
|
2492
|
+
auth_settings=_auth_settings,
|
|
2493
|
+
collection_formats=_collection_formats,
|
|
2494
|
+
_host=_host,
|
|
2495
|
+
_request_auth=_request_auth
|
|
2496
|
+
)
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
@validate_call
|
|
2502
|
+
def get_profile_spotlights_query(
|
|
2503
|
+
self,
|
|
2504
|
+
path_query_id: StrictStr,
|
|
2505
|
+
variables: StrictStr,
|
|
2506
|
+
features: StrictStr,
|
|
2507
|
+
_request_timeout: Union[
|
|
2508
|
+
None,
|
|
2509
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2510
|
+
Tuple[
|
|
2511
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2512
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2513
|
+
]
|
|
2514
|
+
] = None,
|
|
2515
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2516
|
+
_content_type: Optional[StrictStr] = None,
|
|
2517
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2518
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2519
|
+
) -> ProfileResponse:
|
|
2520
|
+
"""get_profile_spotlights_query
|
|
2521
|
+
|
|
2522
|
+
get user by screen name
|
|
2523
|
+
|
|
2524
|
+
:param path_query_id: (required)
|
|
2525
|
+
:type path_query_id: str
|
|
2526
|
+
:param variables: (required)
|
|
2527
|
+
:type variables: str
|
|
2528
|
+
:param features: (required)
|
|
2529
|
+
:type features: str
|
|
2530
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2531
|
+
number provided, it will be total request
|
|
2532
|
+
timeout. It can also be a pair (tuple) of
|
|
2533
|
+
(connection, read) timeouts.
|
|
2534
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2535
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2536
|
+
request; this effectively ignores the
|
|
2537
|
+
authentication in the spec for a single request.
|
|
2538
|
+
:type _request_auth: dict, optional
|
|
2539
|
+
:param _content_type: force content-type for the request.
|
|
2540
|
+
:type _content_type: str, Optional
|
|
2541
|
+
:param _headers: set to override the headers for a single
|
|
2542
|
+
request; this effectively ignores the headers
|
|
2543
|
+
in the spec for a single request.
|
|
2544
|
+
:type _headers: dict, optional
|
|
2545
|
+
:param _host_index: set to override the host_index for a single
|
|
2546
|
+
request; this effectively ignores the host_index
|
|
2547
|
+
in the spec for a single request.
|
|
2548
|
+
:type _host_index: int, optional
|
|
2549
|
+
:return: Returns the result object.
|
|
2550
|
+
""" # noqa: E501
|
|
2551
|
+
|
|
2552
|
+
_param = self._get_profile_spotlights_query_serialize(
|
|
2553
|
+
path_query_id=path_query_id,
|
|
2554
|
+
variables=variables,
|
|
2555
|
+
features=features,
|
|
2556
|
+
_request_auth=_request_auth,
|
|
2557
|
+
_content_type=_content_type,
|
|
2558
|
+
_headers=_headers,
|
|
2559
|
+
_host_index=_host_index
|
|
2560
|
+
)
|
|
2561
|
+
|
|
2562
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2563
|
+
'200': "ProfileResponse",
|
|
2564
|
+
}
|
|
2565
|
+
response_data = self.api_client.call_api(
|
|
2566
|
+
*_param,
|
|
2567
|
+
_request_timeout=_request_timeout
|
|
2568
|
+
)
|
|
2569
|
+
response_data.read()
|
|
2570
|
+
return self.api_client.response_deserialize(
|
|
2571
|
+
response_data=response_data,
|
|
2572
|
+
response_types_map=_response_types_map,
|
|
2573
|
+
).data
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
@validate_call
|
|
2577
|
+
def get_profile_spotlights_query_with_http_info(
|
|
2578
|
+
self,
|
|
2579
|
+
path_query_id: StrictStr,
|
|
2580
|
+
variables: StrictStr,
|
|
2581
|
+
features: StrictStr,
|
|
2582
|
+
_request_timeout: Union[
|
|
2583
|
+
None,
|
|
2584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2585
|
+
Tuple[
|
|
2586
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2587
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2588
|
+
]
|
|
2589
|
+
] = None,
|
|
2590
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2591
|
+
_content_type: Optional[StrictStr] = None,
|
|
2592
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2593
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2594
|
+
) -> ApiResponse[ProfileResponse]:
|
|
2595
|
+
"""get_profile_spotlights_query
|
|
2596
|
+
|
|
2597
|
+
get user by screen name
|
|
2598
|
+
|
|
2599
|
+
:param path_query_id: (required)
|
|
2600
|
+
:type path_query_id: str
|
|
2601
|
+
:param variables: (required)
|
|
2602
|
+
:type variables: str
|
|
2603
|
+
:param features: (required)
|
|
2604
|
+
:type features: str
|
|
2605
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2606
|
+
number provided, it will be total request
|
|
2607
|
+
timeout. It can also be a pair (tuple) of
|
|
2608
|
+
(connection, read) timeouts.
|
|
2609
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2610
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2611
|
+
request; this effectively ignores the
|
|
2612
|
+
authentication in the spec for a single request.
|
|
2613
|
+
:type _request_auth: dict, optional
|
|
2614
|
+
:param _content_type: force content-type for the request.
|
|
2615
|
+
:type _content_type: str, Optional
|
|
2616
|
+
:param _headers: set to override the headers for a single
|
|
2617
|
+
request; this effectively ignores the headers
|
|
2618
|
+
in the spec for a single request.
|
|
2619
|
+
:type _headers: dict, optional
|
|
2620
|
+
:param _host_index: set to override the host_index for a single
|
|
2621
|
+
request; this effectively ignores the host_index
|
|
2622
|
+
in the spec for a single request.
|
|
2623
|
+
:type _host_index: int, optional
|
|
2624
|
+
:return: Returns the result object.
|
|
2625
|
+
""" # noqa: E501
|
|
2626
|
+
|
|
2627
|
+
_param = self._get_profile_spotlights_query_serialize(
|
|
2628
|
+
path_query_id=path_query_id,
|
|
2629
|
+
variables=variables,
|
|
2630
|
+
features=features,
|
|
2631
|
+
_request_auth=_request_auth,
|
|
2632
|
+
_content_type=_content_type,
|
|
2633
|
+
_headers=_headers,
|
|
2634
|
+
_host_index=_host_index
|
|
2635
|
+
)
|
|
2636
|
+
|
|
2637
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2638
|
+
'200': "ProfileResponse",
|
|
2639
|
+
}
|
|
2640
|
+
response_data = self.api_client.call_api(
|
|
2641
|
+
*_param,
|
|
2642
|
+
_request_timeout=_request_timeout
|
|
2643
|
+
)
|
|
2644
|
+
response_data.read()
|
|
2645
|
+
return self.api_client.response_deserialize(
|
|
2646
|
+
response_data=response_data,
|
|
2647
|
+
response_types_map=_response_types_map,
|
|
2648
|
+
)
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
@validate_call
|
|
2652
|
+
def get_profile_spotlights_query_without_preload_content(
|
|
2653
|
+
self,
|
|
2654
|
+
path_query_id: StrictStr,
|
|
2655
|
+
variables: StrictStr,
|
|
2656
|
+
features: StrictStr,
|
|
2657
|
+
_request_timeout: Union[
|
|
2658
|
+
None,
|
|
2659
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2660
|
+
Tuple[
|
|
2661
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2662
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2663
|
+
]
|
|
2664
|
+
] = None,
|
|
2665
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2666
|
+
_content_type: Optional[StrictStr] = None,
|
|
2667
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2668
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2669
|
+
) -> RESTResponseType:
|
|
2670
|
+
"""get_profile_spotlights_query
|
|
2671
|
+
|
|
2672
|
+
get user by screen name
|
|
2673
|
+
|
|
2674
|
+
:param path_query_id: (required)
|
|
2675
|
+
:type path_query_id: str
|
|
2676
|
+
:param variables: (required)
|
|
2677
|
+
:type variables: str
|
|
2678
|
+
:param features: (required)
|
|
2679
|
+
:type features: str
|
|
2680
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2681
|
+
number provided, it will be total request
|
|
2682
|
+
timeout. It can also be a pair (tuple) of
|
|
2683
|
+
(connection, read) timeouts.
|
|
2684
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2685
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2686
|
+
request; this effectively ignores the
|
|
2687
|
+
authentication in the spec for a single request.
|
|
2688
|
+
:type _request_auth: dict, optional
|
|
2689
|
+
:param _content_type: force content-type for the request.
|
|
2690
|
+
:type _content_type: str, Optional
|
|
2691
|
+
:param _headers: set to override the headers for a single
|
|
2692
|
+
request; this effectively ignores the headers
|
|
2693
|
+
in the spec for a single request.
|
|
2694
|
+
:type _headers: dict, optional
|
|
2695
|
+
:param _host_index: set to override the host_index for a single
|
|
2696
|
+
request; this effectively ignores the host_index
|
|
2697
|
+
in the spec for a single request.
|
|
2698
|
+
:type _host_index: int, optional
|
|
2699
|
+
:return: Returns the result object.
|
|
2700
|
+
""" # noqa: E501
|
|
2701
|
+
|
|
2702
|
+
_param = self._get_profile_spotlights_query_serialize(
|
|
2703
|
+
path_query_id=path_query_id,
|
|
2704
|
+
variables=variables,
|
|
2705
|
+
features=features,
|
|
2706
|
+
_request_auth=_request_auth,
|
|
2707
|
+
_content_type=_content_type,
|
|
2708
|
+
_headers=_headers,
|
|
2709
|
+
_host_index=_host_index
|
|
2710
|
+
)
|
|
2711
|
+
|
|
2712
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2713
|
+
'200': "ProfileResponse",
|
|
2714
|
+
}
|
|
2715
|
+
response_data = self.api_client.call_api(
|
|
2716
|
+
*_param,
|
|
2717
|
+
_request_timeout=_request_timeout
|
|
2718
|
+
)
|
|
2719
|
+
return response_data.response
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
def _get_profile_spotlights_query_serialize(
|
|
2723
|
+
self,
|
|
2724
|
+
path_query_id,
|
|
2725
|
+
variables,
|
|
2726
|
+
features,
|
|
2727
|
+
_request_auth,
|
|
2728
|
+
_content_type,
|
|
2729
|
+
_headers,
|
|
2730
|
+
_host_index,
|
|
2731
|
+
) -> RequestSerialized:
|
|
2732
|
+
|
|
2733
|
+
_host = None
|
|
2734
|
+
|
|
2735
|
+
_collection_formats: Dict[str, str] = {
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
_path_params: Dict[str, str] = {}
|
|
2739
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2740
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2741
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2742
|
+
_files: Dict[
|
|
2743
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2744
|
+
] = {}
|
|
2745
|
+
_body_params: Optional[bytes] = None
|
|
2746
|
+
|
|
2747
|
+
# process the path parameters
|
|
2748
|
+
if path_query_id is not None:
|
|
2749
|
+
_path_params['pathQueryId'] = path_query_id
|
|
2750
|
+
# process the query parameters
|
|
2751
|
+
if variables is not None:
|
|
2752
|
+
|
|
2753
|
+
_query_params.append(('variables', variables))
|
|
2754
|
+
|
|
2755
|
+
if features is not None:
|
|
2756
|
+
|
|
2757
|
+
_query_params.append(('features', features))
|
|
2758
|
+
|
|
2759
|
+
# process the header parameters
|
|
2760
|
+
# process the form parameters
|
|
2761
|
+
# process the body parameter
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
# set the HTTP header `Accept`
|
|
2765
|
+
if 'Accept' not in _header_params:
|
|
2766
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2767
|
+
[
|
|
2768
|
+
'application/json'
|
|
2769
|
+
]
|
|
2770
|
+
)
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
# authentication setting
|
|
2774
|
+
_auth_settings: List[str] = [
|
|
2775
|
+
'Accept',
|
|
2776
|
+
'ClientLanguage',
|
|
2777
|
+
'Priority',
|
|
2778
|
+
'Referer',
|
|
2779
|
+
'SecFetchDest',
|
|
2780
|
+
'SecChUaPlatform',
|
|
2781
|
+
'SecFetchMode',
|
|
2782
|
+
'CsrfToken',
|
|
2783
|
+
'ClientUuid',
|
|
2784
|
+
'BearerAuth',
|
|
2785
|
+
'GuestToken',
|
|
2786
|
+
'SecChUa',
|
|
2787
|
+
'CookieGt0',
|
|
2788
|
+
'ClientTransactionId',
|
|
2789
|
+
'ActiveUser',
|
|
2790
|
+
'CookieCt0',
|
|
2791
|
+
'UserAgent',
|
|
2792
|
+
'AcceptLanguage',
|
|
2793
|
+
'SecFetchSite',
|
|
2794
|
+
'AuthType',
|
|
2795
|
+
'CookieAuthToken',
|
|
2796
|
+
'SecChUaMobile',
|
|
2797
|
+
'AcceptEncoding'
|
|
2798
|
+
]
|
|
2799
|
+
|
|
2800
|
+
return self.api_client.param_serialize(
|
|
2801
|
+
method='GET',
|
|
2802
|
+
resource_path='/graphql/{pathQueryId}/ProfileSpotlightsQuery',
|
|
2803
|
+
path_params=_path_params,
|
|
2804
|
+
query_params=_query_params,
|
|
2805
|
+
header_params=_header_params,
|
|
2806
|
+
body=_body_params,
|
|
2807
|
+
post_params=_form_params,
|
|
2808
|
+
files=_files,
|
|
2809
|
+
auth_settings=_auth_settings,
|
|
2810
|
+
collection_formats=_collection_formats,
|
|
2811
|
+
_host=_host,
|
|
2812
|
+
_request_auth=_request_auth
|
|
2813
|
+
)
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
@validate_call
|
|
2819
|
+
def get_tweet_result_by_rest_id(
|
|
2820
|
+
self,
|
|
2821
|
+
path_query_id: StrictStr,
|
|
2822
|
+
variables: StrictStr,
|
|
2823
|
+
features: StrictStr,
|
|
2824
|
+
field_toggles: StrictStr,
|
|
2825
|
+
_request_timeout: Union[
|
|
2826
|
+
None,
|
|
2827
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2828
|
+
Tuple[
|
|
2829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2830
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2831
|
+
]
|
|
2832
|
+
] = None,
|
|
2833
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2834
|
+
_content_type: Optional[StrictStr] = None,
|
|
2835
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2836
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2837
|
+
) -> TweetResultByRestIdResponse:
|
|
2838
|
+
"""get_tweet_result_by_rest_id
|
|
2839
|
+
|
|
2840
|
+
get TweetResultByRestId
|
|
2841
|
+
|
|
2842
|
+
:param path_query_id: (required)
|
|
2843
|
+
:type path_query_id: str
|
|
2844
|
+
:param variables: (required)
|
|
2845
|
+
:type variables: str
|
|
2846
|
+
:param features: (required)
|
|
2847
|
+
:type features: str
|
|
2848
|
+
:param field_toggles: (required)
|
|
2849
|
+
:type field_toggles: str
|
|
2850
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2851
|
+
number provided, it will be total request
|
|
2852
|
+
timeout. It can also be a pair (tuple) of
|
|
2853
|
+
(connection, read) timeouts.
|
|
2854
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2855
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2856
|
+
request; this effectively ignores the
|
|
2857
|
+
authentication in the spec for a single request.
|
|
2858
|
+
:type _request_auth: dict, optional
|
|
2859
|
+
:param _content_type: force content-type for the request.
|
|
2860
|
+
:type _content_type: str, Optional
|
|
2861
|
+
:param _headers: set to override the headers for a single
|
|
2862
|
+
request; this effectively ignores the headers
|
|
2863
|
+
in the spec for a single request.
|
|
2864
|
+
:type _headers: dict, optional
|
|
2865
|
+
:param _host_index: set to override the host_index for a single
|
|
2866
|
+
request; this effectively ignores the host_index
|
|
2867
|
+
in the spec for a single request.
|
|
2868
|
+
:type _host_index: int, optional
|
|
2869
|
+
:return: Returns the result object.
|
|
2870
|
+
""" # noqa: E501
|
|
2871
|
+
|
|
2872
|
+
_param = self._get_tweet_result_by_rest_id_serialize(
|
|
2873
|
+
path_query_id=path_query_id,
|
|
2874
|
+
variables=variables,
|
|
2875
|
+
features=features,
|
|
2876
|
+
field_toggles=field_toggles,
|
|
2877
|
+
_request_auth=_request_auth,
|
|
2878
|
+
_content_type=_content_type,
|
|
2879
|
+
_headers=_headers,
|
|
2880
|
+
_host_index=_host_index
|
|
2881
|
+
)
|
|
2882
|
+
|
|
2883
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2884
|
+
'200': "TweetResultByRestIdResponse",
|
|
2885
|
+
}
|
|
2886
|
+
response_data = self.api_client.call_api(
|
|
2887
|
+
*_param,
|
|
2888
|
+
_request_timeout=_request_timeout
|
|
2889
|
+
)
|
|
2890
|
+
response_data.read()
|
|
2891
|
+
return self.api_client.response_deserialize(
|
|
2892
|
+
response_data=response_data,
|
|
2893
|
+
response_types_map=_response_types_map,
|
|
2894
|
+
).data
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
@validate_call
|
|
2898
|
+
def get_tweet_result_by_rest_id_with_http_info(
|
|
2899
|
+
self,
|
|
2900
|
+
path_query_id: StrictStr,
|
|
2901
|
+
variables: StrictStr,
|
|
2902
|
+
features: StrictStr,
|
|
2903
|
+
field_toggles: StrictStr,
|
|
2904
|
+
_request_timeout: Union[
|
|
2905
|
+
None,
|
|
2906
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2907
|
+
Tuple[
|
|
2908
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2909
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2910
|
+
]
|
|
2911
|
+
] = None,
|
|
2912
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2913
|
+
_content_type: Optional[StrictStr] = None,
|
|
2914
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2915
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2916
|
+
) -> ApiResponse[TweetResultByRestIdResponse]:
|
|
2917
|
+
"""get_tweet_result_by_rest_id
|
|
2918
|
+
|
|
2919
|
+
get TweetResultByRestId
|
|
2920
|
+
|
|
2921
|
+
:param path_query_id: (required)
|
|
2922
|
+
:type path_query_id: str
|
|
2923
|
+
:param variables: (required)
|
|
2924
|
+
:type variables: str
|
|
2925
|
+
:param features: (required)
|
|
2926
|
+
:type features: str
|
|
2927
|
+
:param field_toggles: (required)
|
|
2928
|
+
:type field_toggles: str
|
|
2929
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2930
|
+
number provided, it will be total request
|
|
2931
|
+
timeout. It can also be a pair (tuple) of
|
|
2932
|
+
(connection, read) timeouts.
|
|
2933
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2934
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2935
|
+
request; this effectively ignores the
|
|
2936
|
+
authentication in the spec for a single request.
|
|
2937
|
+
:type _request_auth: dict, optional
|
|
2938
|
+
:param _content_type: force content-type for the request.
|
|
2939
|
+
:type _content_type: str, Optional
|
|
2940
|
+
:param _headers: set to override the headers for a single
|
|
2941
|
+
request; this effectively ignores the headers
|
|
2942
|
+
in the spec for a single request.
|
|
2943
|
+
:type _headers: dict, optional
|
|
2944
|
+
:param _host_index: set to override the host_index for a single
|
|
2945
|
+
request; this effectively ignores the host_index
|
|
2946
|
+
in the spec for a single request.
|
|
2947
|
+
:type _host_index: int, optional
|
|
2948
|
+
:return: Returns the result object.
|
|
2949
|
+
""" # noqa: E501
|
|
2950
|
+
|
|
2951
|
+
_param = self._get_tweet_result_by_rest_id_serialize(
|
|
2952
|
+
path_query_id=path_query_id,
|
|
2953
|
+
variables=variables,
|
|
2954
|
+
features=features,
|
|
2955
|
+
field_toggles=field_toggles,
|
|
2956
|
+
_request_auth=_request_auth,
|
|
2957
|
+
_content_type=_content_type,
|
|
2958
|
+
_headers=_headers,
|
|
2959
|
+
_host_index=_host_index
|
|
2960
|
+
)
|
|
2961
|
+
|
|
2962
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2963
|
+
'200': "TweetResultByRestIdResponse",
|
|
2964
|
+
}
|
|
2965
|
+
response_data = self.api_client.call_api(
|
|
2966
|
+
*_param,
|
|
2967
|
+
_request_timeout=_request_timeout
|
|
2968
|
+
)
|
|
2969
|
+
response_data.read()
|
|
2970
|
+
return self.api_client.response_deserialize(
|
|
2971
|
+
response_data=response_data,
|
|
2972
|
+
response_types_map=_response_types_map,
|
|
2973
|
+
)
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
@validate_call
|
|
2977
|
+
def get_tweet_result_by_rest_id_without_preload_content(
|
|
2978
|
+
self,
|
|
2979
|
+
path_query_id: StrictStr,
|
|
2980
|
+
variables: StrictStr,
|
|
2981
|
+
features: StrictStr,
|
|
2982
|
+
field_toggles: StrictStr,
|
|
2983
|
+
_request_timeout: Union[
|
|
2984
|
+
None,
|
|
2985
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2986
|
+
Tuple[
|
|
2987
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2988
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2989
|
+
]
|
|
2990
|
+
] = None,
|
|
2991
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2992
|
+
_content_type: Optional[StrictStr] = None,
|
|
2993
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2994
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2995
|
+
) -> RESTResponseType:
|
|
2996
|
+
"""get_tweet_result_by_rest_id
|
|
2997
|
+
|
|
2998
|
+
get TweetResultByRestId
|
|
2999
|
+
|
|
3000
|
+
:param path_query_id: (required)
|
|
3001
|
+
:type path_query_id: str
|
|
3002
|
+
:param variables: (required)
|
|
3003
|
+
:type variables: str
|
|
3004
|
+
:param features: (required)
|
|
3005
|
+
:type features: str
|
|
3006
|
+
:param field_toggles: (required)
|
|
3007
|
+
:type field_toggles: str
|
|
3008
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3009
|
+
number provided, it will be total request
|
|
3010
|
+
timeout. It can also be a pair (tuple) of
|
|
3011
|
+
(connection, read) timeouts.
|
|
3012
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3013
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3014
|
+
request; this effectively ignores the
|
|
3015
|
+
authentication in the spec for a single request.
|
|
3016
|
+
:type _request_auth: dict, optional
|
|
3017
|
+
:param _content_type: force content-type for the request.
|
|
3018
|
+
:type _content_type: str, Optional
|
|
3019
|
+
:param _headers: set to override the headers for a single
|
|
3020
|
+
request; this effectively ignores the headers
|
|
3021
|
+
in the spec for a single request.
|
|
3022
|
+
:type _headers: dict, optional
|
|
3023
|
+
:param _host_index: set to override the host_index for a single
|
|
3024
|
+
request; this effectively ignores the host_index
|
|
3025
|
+
in the spec for a single request.
|
|
3026
|
+
:type _host_index: int, optional
|
|
3027
|
+
:return: Returns the result object.
|
|
3028
|
+
""" # noqa: E501
|
|
3029
|
+
|
|
3030
|
+
_param = self._get_tweet_result_by_rest_id_serialize(
|
|
3031
|
+
path_query_id=path_query_id,
|
|
3032
|
+
variables=variables,
|
|
3033
|
+
features=features,
|
|
1938
3034
|
field_toggles=field_toggles,
|
|
1939
3035
|
_request_auth=_request_auth,
|
|
1940
3036
|
_content_type=_content_type,
|
|
@@ -1949,6 +3045,174 @@ class DefaultApi:
|
|
|
1949
3045
|
*_param,
|
|
1950
3046
|
_request_timeout=_request_timeout
|
|
1951
3047
|
)
|
|
3048
|
+
return response_data.response
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
def _get_tweet_result_by_rest_id_serialize(
|
|
3052
|
+
self,
|
|
3053
|
+
path_query_id,
|
|
3054
|
+
variables,
|
|
3055
|
+
features,
|
|
3056
|
+
field_toggles,
|
|
3057
|
+
_request_auth,
|
|
3058
|
+
_content_type,
|
|
3059
|
+
_headers,
|
|
3060
|
+
_host_index,
|
|
3061
|
+
) -> RequestSerialized:
|
|
3062
|
+
|
|
3063
|
+
_host = None
|
|
3064
|
+
|
|
3065
|
+
_collection_formats: Dict[str, str] = {
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
_path_params: Dict[str, str] = {}
|
|
3069
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3070
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3071
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3072
|
+
_files: Dict[
|
|
3073
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3074
|
+
] = {}
|
|
3075
|
+
_body_params: Optional[bytes] = None
|
|
3076
|
+
|
|
3077
|
+
# process the path parameters
|
|
3078
|
+
if path_query_id is not None:
|
|
3079
|
+
_path_params['pathQueryId'] = path_query_id
|
|
3080
|
+
# process the query parameters
|
|
3081
|
+
if variables is not None:
|
|
3082
|
+
|
|
3083
|
+
_query_params.append(('variables', variables))
|
|
3084
|
+
|
|
3085
|
+
if features is not None:
|
|
3086
|
+
|
|
3087
|
+
_query_params.append(('features', features))
|
|
3088
|
+
|
|
3089
|
+
if field_toggles is not None:
|
|
3090
|
+
|
|
3091
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
3092
|
+
|
|
3093
|
+
# process the header parameters
|
|
3094
|
+
# process the form parameters
|
|
3095
|
+
# process the body parameter
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
# set the HTTP header `Accept`
|
|
3099
|
+
if 'Accept' not in _header_params:
|
|
3100
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3101
|
+
[
|
|
3102
|
+
'application/json'
|
|
3103
|
+
]
|
|
3104
|
+
)
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
# authentication setting
|
|
3108
|
+
_auth_settings: List[str] = [
|
|
3109
|
+
'Accept',
|
|
3110
|
+
'ClientLanguage',
|
|
3111
|
+
'Priority',
|
|
3112
|
+
'Referer',
|
|
3113
|
+
'SecFetchDest',
|
|
3114
|
+
'SecChUaPlatform',
|
|
3115
|
+
'SecFetchMode',
|
|
3116
|
+
'CsrfToken',
|
|
3117
|
+
'ClientUuid',
|
|
3118
|
+
'BearerAuth',
|
|
3119
|
+
'GuestToken',
|
|
3120
|
+
'SecChUa',
|
|
3121
|
+
'CookieGt0',
|
|
3122
|
+
'ClientTransactionId',
|
|
3123
|
+
'ActiveUser',
|
|
3124
|
+
'CookieCt0',
|
|
3125
|
+
'UserAgent',
|
|
3126
|
+
'AcceptLanguage',
|
|
3127
|
+
'SecFetchSite',
|
|
3128
|
+
'AuthType',
|
|
3129
|
+
'CookieAuthToken',
|
|
3130
|
+
'SecChUaMobile',
|
|
3131
|
+
'AcceptEncoding'
|
|
3132
|
+
]
|
|
3133
|
+
|
|
3134
|
+
return self.api_client.param_serialize(
|
|
3135
|
+
method='GET',
|
|
3136
|
+
resource_path='/graphql/{pathQueryId}/TweetResultByRestId',
|
|
3137
|
+
path_params=_path_params,
|
|
3138
|
+
query_params=_query_params,
|
|
3139
|
+
header_params=_header_params,
|
|
3140
|
+
body=_body_params,
|
|
3141
|
+
post_params=_form_params,
|
|
3142
|
+
files=_files,
|
|
3143
|
+
auth_settings=_auth_settings,
|
|
3144
|
+
collection_formats=_collection_formats,
|
|
3145
|
+
_host=_host,
|
|
3146
|
+
_request_auth=_request_auth
|
|
3147
|
+
)
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
@validate_call
|
|
3153
|
+
def get_use_story_topic_query(
|
|
3154
|
+
self,
|
|
3155
|
+
path_query_id: StrictStr,
|
|
3156
|
+
variables: StrictStr,
|
|
3157
|
+
_request_timeout: Union[
|
|
3158
|
+
None,
|
|
3159
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3160
|
+
Tuple[
|
|
3161
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3162
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3163
|
+
]
|
|
3164
|
+
] = None,
|
|
3165
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3166
|
+
_content_type: Optional[StrictStr] = None,
|
|
3167
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3168
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3169
|
+
) -> StoryTopicResponse:
|
|
3170
|
+
"""get_use_story_topic_query
|
|
3171
|
+
|
|
3172
|
+
AI-written stories of an explore topic (rest_id: For You)
|
|
3173
|
+
|
|
3174
|
+
:param path_query_id: (required)
|
|
3175
|
+
:type path_query_id: str
|
|
3176
|
+
:param variables: (required)
|
|
3177
|
+
:type variables: str
|
|
3178
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3179
|
+
number provided, it will be total request
|
|
3180
|
+
timeout. It can also be a pair (tuple) of
|
|
3181
|
+
(connection, read) timeouts.
|
|
3182
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3183
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3184
|
+
request; this effectively ignores the
|
|
3185
|
+
authentication in the spec for a single request.
|
|
3186
|
+
:type _request_auth: dict, optional
|
|
3187
|
+
:param _content_type: force content-type for the request.
|
|
3188
|
+
:type _content_type: str, Optional
|
|
3189
|
+
:param _headers: set to override the headers for a single
|
|
3190
|
+
request; this effectively ignores the headers
|
|
3191
|
+
in the spec for a single request.
|
|
3192
|
+
:type _headers: dict, optional
|
|
3193
|
+
:param _host_index: set to override the host_index for a single
|
|
3194
|
+
request; this effectively ignores the host_index
|
|
3195
|
+
in the spec for a single request.
|
|
3196
|
+
:type _host_index: int, optional
|
|
3197
|
+
:return: Returns the result object.
|
|
3198
|
+
""" # noqa: E501
|
|
3199
|
+
|
|
3200
|
+
_param = self._get_use_story_topic_query_serialize(
|
|
3201
|
+
path_query_id=path_query_id,
|
|
3202
|
+
variables=variables,
|
|
3203
|
+
_request_auth=_request_auth,
|
|
3204
|
+
_content_type=_content_type,
|
|
3205
|
+
_headers=_headers,
|
|
3206
|
+
_host_index=_host_index
|
|
3207
|
+
)
|
|
3208
|
+
|
|
3209
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3210
|
+
'200': "StoryTopicResponse",
|
|
3211
|
+
}
|
|
3212
|
+
response_data = self.api_client.call_api(
|
|
3213
|
+
*_param,
|
|
3214
|
+
_request_timeout=_request_timeout
|
|
3215
|
+
)
|
|
1952
3216
|
response_data.read()
|
|
1953
3217
|
return self.api_client.response_deserialize(
|
|
1954
3218
|
response_data=response_data,
|
|
@@ -1957,12 +3221,10 @@ class DefaultApi:
|
|
|
1957
3221
|
|
|
1958
3222
|
|
|
1959
3223
|
@validate_call
|
|
1960
|
-
def
|
|
3224
|
+
def get_use_story_topic_query_with_http_info(
|
|
1961
3225
|
self,
|
|
1962
3226
|
path_query_id: StrictStr,
|
|
1963
3227
|
variables: StrictStr,
|
|
1964
|
-
features: StrictStr,
|
|
1965
|
-
field_toggles: StrictStr,
|
|
1966
3228
|
_request_timeout: Union[
|
|
1967
3229
|
None,
|
|
1968
3230
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1975,19 +3237,15 @@ class DefaultApi:
|
|
|
1975
3237
|
_content_type: Optional[StrictStr] = None,
|
|
1976
3238
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1977
3239
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1978
|
-
) -> ApiResponse[
|
|
1979
|
-
"""
|
|
3240
|
+
) -> ApiResponse[StoryTopicResponse]:
|
|
3241
|
+
"""get_use_story_topic_query
|
|
1980
3242
|
|
|
1981
|
-
|
|
3243
|
+
AI-written stories of an explore topic (rest_id: For You)
|
|
1982
3244
|
|
|
1983
3245
|
:param path_query_id: (required)
|
|
1984
3246
|
:type path_query_id: str
|
|
1985
3247
|
:param variables: (required)
|
|
1986
3248
|
:type variables: str
|
|
1987
|
-
:param features: (required)
|
|
1988
|
-
:type features: str
|
|
1989
|
-
:param field_toggles: (required)
|
|
1990
|
-
:type field_toggles: str
|
|
1991
3249
|
:param _request_timeout: timeout setting for this request. If one
|
|
1992
3250
|
number provided, it will be total request
|
|
1993
3251
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2010,11 +3268,9 @@ class DefaultApi:
|
|
|
2010
3268
|
:return: Returns the result object.
|
|
2011
3269
|
""" # noqa: E501
|
|
2012
3270
|
|
|
2013
|
-
_param = self.
|
|
3271
|
+
_param = self._get_use_story_topic_query_serialize(
|
|
2014
3272
|
path_query_id=path_query_id,
|
|
2015
3273
|
variables=variables,
|
|
2016
|
-
features=features,
|
|
2017
|
-
field_toggles=field_toggles,
|
|
2018
3274
|
_request_auth=_request_auth,
|
|
2019
3275
|
_content_type=_content_type,
|
|
2020
3276
|
_headers=_headers,
|
|
@@ -2022,7 +3278,7 @@ class DefaultApi:
|
|
|
2022
3278
|
)
|
|
2023
3279
|
|
|
2024
3280
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2025
|
-
'200': "
|
|
3281
|
+
'200': "StoryTopicResponse",
|
|
2026
3282
|
}
|
|
2027
3283
|
response_data = self.api_client.call_api(
|
|
2028
3284
|
*_param,
|
|
@@ -2036,12 +3292,10 @@ class DefaultApi:
|
|
|
2036
3292
|
|
|
2037
3293
|
|
|
2038
3294
|
@validate_call
|
|
2039
|
-
def
|
|
3295
|
+
def get_use_story_topic_query_without_preload_content(
|
|
2040
3296
|
self,
|
|
2041
3297
|
path_query_id: StrictStr,
|
|
2042
3298
|
variables: StrictStr,
|
|
2043
|
-
features: StrictStr,
|
|
2044
|
-
field_toggles: StrictStr,
|
|
2045
3299
|
_request_timeout: Union[
|
|
2046
3300
|
None,
|
|
2047
3301
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2055,18 +3309,14 @@ class DefaultApi:
|
|
|
2055
3309
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2056
3310
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2057
3311
|
) -> RESTResponseType:
|
|
2058
|
-
"""
|
|
3312
|
+
"""get_use_story_topic_query
|
|
2059
3313
|
|
|
2060
|
-
|
|
3314
|
+
AI-written stories of an explore topic (rest_id: For You)
|
|
2061
3315
|
|
|
2062
3316
|
:param path_query_id: (required)
|
|
2063
3317
|
:type path_query_id: str
|
|
2064
3318
|
:param variables: (required)
|
|
2065
3319
|
:type variables: str
|
|
2066
|
-
:param features: (required)
|
|
2067
|
-
:type features: str
|
|
2068
|
-
:param field_toggles: (required)
|
|
2069
|
-
:type field_toggles: str
|
|
2070
3320
|
:param _request_timeout: timeout setting for this request. If one
|
|
2071
3321
|
number provided, it will be total request
|
|
2072
3322
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2089,11 +3339,9 @@ class DefaultApi:
|
|
|
2089
3339
|
:return: Returns the result object.
|
|
2090
3340
|
""" # noqa: E501
|
|
2091
3341
|
|
|
2092
|
-
_param = self.
|
|
3342
|
+
_param = self._get_use_story_topic_query_serialize(
|
|
2093
3343
|
path_query_id=path_query_id,
|
|
2094
3344
|
variables=variables,
|
|
2095
|
-
features=features,
|
|
2096
|
-
field_toggles=field_toggles,
|
|
2097
3345
|
_request_auth=_request_auth,
|
|
2098
3346
|
_content_type=_content_type,
|
|
2099
3347
|
_headers=_headers,
|
|
@@ -2101,7 +3349,7 @@ class DefaultApi:
|
|
|
2101
3349
|
)
|
|
2102
3350
|
|
|
2103
3351
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2104
|
-
'200': "
|
|
3352
|
+
'200': "StoryTopicResponse",
|
|
2105
3353
|
}
|
|
2106
3354
|
response_data = self.api_client.call_api(
|
|
2107
3355
|
*_param,
|
|
@@ -2110,12 +3358,10 @@ class DefaultApi:
|
|
|
2110
3358
|
return response_data.response
|
|
2111
3359
|
|
|
2112
3360
|
|
|
2113
|
-
def
|
|
3361
|
+
def _get_use_story_topic_query_serialize(
|
|
2114
3362
|
self,
|
|
2115
3363
|
path_query_id,
|
|
2116
3364
|
variables,
|
|
2117
|
-
features,
|
|
2118
|
-
field_toggles,
|
|
2119
3365
|
_request_auth,
|
|
2120
3366
|
_content_type,
|
|
2121
3367
|
_headers,
|
|
@@ -2144,14 +3390,6 @@ class DefaultApi:
|
|
|
2144
3390
|
|
|
2145
3391
|
_query_params.append(('variables', variables))
|
|
2146
3392
|
|
|
2147
|
-
if features is not None:
|
|
2148
|
-
|
|
2149
|
-
_query_params.append(('features', features))
|
|
2150
|
-
|
|
2151
|
-
if field_toggles is not None:
|
|
2152
|
-
|
|
2153
|
-
_query_params.append(('fieldToggles', field_toggles))
|
|
2154
|
-
|
|
2155
3393
|
# process the header parameters
|
|
2156
3394
|
# process the form parameters
|
|
2157
3395
|
# process the body parameter
|
|
@@ -2195,7 +3433,7 @@ class DefaultApi:
|
|
|
2195
3433
|
|
|
2196
3434
|
return self.api_client.param_serialize(
|
|
2197
3435
|
method='GET',
|
|
2198
|
-
resource_path='/graphql/{pathQueryId}/
|
|
3436
|
+
resource_path='/graphql/{pathQueryId}/useStoryTopicQuery',
|
|
2199
3437
|
path_params=_path_params,
|
|
2200
3438
|
query_params=_query_params,
|
|
2201
3439
|
header_params=_header_params,
|