twitter-openapi-python-generated 0.0.31__py3-none-any.whl → 0.0.32__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 +28 -4
- twitter_openapi_python_generated/api/tweet_api.py +1356 -84
- twitter_openapi_python_generated/api_client.py +1 -1
- twitter_openapi_python_generated/configuration.py +1 -1
- twitter_openapi_python_generated/models/__init__.py +27 -3
- twitter_openapi_python_generated/models/about_community_result.py +95 -0
- twitter_openapi_python_generated/models/{timeline_v2.py → about_community_results.py} +12 -12
- twitter_openapi_python_generated/models/about_community_tweet_data.py +92 -0
- twitter_openapi_python_generated/models/analysis_results.py +94 -0
- twitter_openapi_python_generated/models/birdwatch_pivot.py +3 -1
- twitter_openapi_python_generated/models/community_about_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/community_media_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/community_tweets_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/content_item_type.py +2 -0
- twitter_openapi_python_generated/models/grok_image_annotation.py +90 -0
- twitter_openapi_python_generated/models/grok_share_attachment.py +3 -1
- twitter_openapi_python_generated/models/grok_share_attachment_item.py +10 -2
- twitter_openapi_python_generated/models/home_timeline_response_data.py +2 -2
- twitter_openapi_python_generated/models/instruction_type.py +2 -0
- twitter_openapi_python_generated/models/instruction_union.py +46 -8
- twitter_openapi_python_generated/models/item_content_union.py +27 -8
- twitter_openapi_python_generated/models/list_tweets_timeline_data.py +2 -2
- twitter_openapi_python_generated/models/list_tweets_timeline_list.py +3 -3
- twitter_openapi_python_generated/models/media_community_result.py +95 -0
- twitter_openapi_python_generated/models/media_community_results.py +92 -0
- twitter_openapi_python_generated/models/media_community_tweet_data.py +92 -0
- twitter_openapi_python_generated/models/media_result.py +8 -2
- twitter_openapi_python_generated/models/module_item.py +2 -2
- twitter_openapi_python_generated/models/notification_template.py +93 -0
- twitter_openapi_python_generated/models/notifications_result.py +105 -0
- twitter_openapi_python_generated/models/notifications_timeline_data.py +92 -0
- twitter_openapi_python_generated/models/notifications_timeline_response.py +102 -0
- twitter_openapi_python_generated/models/notifications_user_results.py +92 -0
- twitter_openapi_python_generated/models/notifications_viewer_v2.py +92 -0
- twitter_openapi_python_generated/models/post_create_bookmark_request.py +5 -1
- twitter_openapi_python_generated/models/post_create_retweet_request.py +5 -1
- twitter_openapi_python_generated/models/post_create_tweet_request.py +6 -2
- twitter_openapi_python_generated/models/post_create_tweet_request_features.py +19 -5
- twitter_openapi_python_generated/models/post_delete_bookmark_request.py +5 -1
- twitter_openapi_python_generated/models/post_delete_retweet_request.py +5 -1
- twitter_openapi_python_generated/models/post_delete_tweet_request.py +5 -1
- twitter_openapi_python_generated/models/post_favorite_tweet_request.py +5 -1
- twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +5 -1
- twitter_openapi_python_generated/models/ranked_community_result.py +95 -0
- twitter_openapi_python_generated/models/ranked_community_results.py +92 -0
- twitter_openapi_python_generated/models/ranked_community_tweet_data.py +92 -0
- twitter_openapi_python_generated/models/rich_message.py +90 -0
- twitter_openapi_python_generated/models/search_timeline_data.py +2 -2
- twitter_openapi_python_generated/models/timeline_add_entry.py +2 -2
- twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py +89 -0
- twitter_openapi_python_generated/models/timeline_general_context.py +5 -3
- twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +102 -0
- twitter_openapi_python_generated/models/timeline_notification.py +116 -0
- twitter_openapi_python_generated/models/{list_tweets_timeline.py → timeline_result.py} +8 -6
- twitter_openapi_python_generated/models/timeline_timeline_module.py +1 -1
- twitter_openapi_python_generated/models/timeline_trend.py +3 -3
- twitter_openapi_python_generated/models/timeline_user.py +2 -2
- twitter_openapi_python_generated/models/tweet.py +1 -1
- twitter_openapi_python_generated/models/tweet_favoriters_response_data.py +3 -3
- twitter_openapi_python_generated/models/tweet_retweeters_response_data.py +3 -3
- twitter_openapi_python_generated/models/type_name.py +2 -0
- twitter_openapi_python_generated/models/user.py +2 -2
- twitter_openapi_python_generated/models/user_tweets_result_v1.py +95 -0
- twitter_openapi_python_generated/models/{user_tweets_result.py → user_tweets_result_v2.py} +7 -7
- twitter_openapi_python_generated/models/user_tweets_user.py +3 -3
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info}/METADATA +12 -2
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info}/RECORD +71 -47
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info}/WHEEL +1 -1
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info/licenses}/LICENSE +0 -0
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info/licenses}/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.0.31.dist-info → twitter_openapi_python_generated-0.0.32.dist-info}/top_level.txt +0 -0
|
@@ -19,7 +19,11 @@ from typing_extensions import Annotated
|
|
|
19
19
|
|
|
20
20
|
from pydantic import StrictStr
|
|
21
21
|
from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
|
|
22
|
+
from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse
|
|
23
|
+
from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse
|
|
24
|
+
from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse
|
|
22
25
|
from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
|
|
26
|
+
from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse
|
|
23
27
|
from twitter_openapi_python_generated.models.search_timeline_response import SearchTimelineResponse
|
|
24
28
|
from twitter_openapi_python_generated.models.timeline_response import TimelineResponse
|
|
25
29
|
from twitter_openapi_python_generated.models.tweet_detail_response import TweetDetailResponse
|
|
@@ -361,6 +365,957 @@ class TweetApi:
|
|
|
361
365
|
|
|
362
366
|
|
|
363
367
|
|
|
368
|
+
@validate_call
|
|
369
|
+
def get_community_about_timeline(
|
|
370
|
+
self,
|
|
371
|
+
path_query_id: StrictStr,
|
|
372
|
+
variables: StrictStr,
|
|
373
|
+
features: StrictStr,
|
|
374
|
+
_request_timeout: Union[
|
|
375
|
+
None,
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
377
|
+
Tuple[
|
|
378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
379
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
380
|
+
]
|
|
381
|
+
] = None,
|
|
382
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
383
|
+
_content_type: Optional[StrictStr] = None,
|
|
384
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
385
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
386
|
+
) -> CommunityAboutTimelineResponse:
|
|
387
|
+
"""get_community_about_timeline
|
|
388
|
+
|
|
389
|
+
get about of community
|
|
390
|
+
|
|
391
|
+
:param path_query_id: (required)
|
|
392
|
+
:type path_query_id: str
|
|
393
|
+
:param variables: (required)
|
|
394
|
+
:type variables: str
|
|
395
|
+
:param features: (required)
|
|
396
|
+
:type features: str
|
|
397
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
398
|
+
number provided, it will be total request
|
|
399
|
+
timeout. It can also be a pair (tuple) of
|
|
400
|
+
(connection, read) timeouts.
|
|
401
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
402
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
403
|
+
request; this effectively ignores the
|
|
404
|
+
authentication in the spec for a single request.
|
|
405
|
+
:type _request_auth: dict, optional
|
|
406
|
+
:param _content_type: force content-type for the request.
|
|
407
|
+
:type _content_type: str, Optional
|
|
408
|
+
:param _headers: set to override the headers for a single
|
|
409
|
+
request; this effectively ignores the headers
|
|
410
|
+
in the spec for a single request.
|
|
411
|
+
:type _headers: dict, optional
|
|
412
|
+
:param _host_index: set to override the host_index for a single
|
|
413
|
+
request; this effectively ignores the host_index
|
|
414
|
+
in the spec for a single request.
|
|
415
|
+
:type _host_index: int, optional
|
|
416
|
+
:return: Returns the result object.
|
|
417
|
+
""" # noqa: E501
|
|
418
|
+
|
|
419
|
+
_param = self._get_community_about_timeline_serialize(
|
|
420
|
+
path_query_id=path_query_id,
|
|
421
|
+
variables=variables,
|
|
422
|
+
features=features,
|
|
423
|
+
_request_auth=_request_auth,
|
|
424
|
+
_content_type=_content_type,
|
|
425
|
+
_headers=_headers,
|
|
426
|
+
_host_index=_host_index
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
430
|
+
'200': "CommunityAboutTimelineResponse",
|
|
431
|
+
}
|
|
432
|
+
response_data = self.api_client.call_api(
|
|
433
|
+
*_param,
|
|
434
|
+
_request_timeout=_request_timeout
|
|
435
|
+
)
|
|
436
|
+
response_data.read()
|
|
437
|
+
return self.api_client.response_deserialize(
|
|
438
|
+
response_data=response_data,
|
|
439
|
+
response_types_map=_response_types_map,
|
|
440
|
+
).data
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
@validate_call
|
|
444
|
+
def get_community_about_timeline_with_http_info(
|
|
445
|
+
self,
|
|
446
|
+
path_query_id: StrictStr,
|
|
447
|
+
variables: StrictStr,
|
|
448
|
+
features: StrictStr,
|
|
449
|
+
_request_timeout: Union[
|
|
450
|
+
None,
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
452
|
+
Tuple[
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
455
|
+
]
|
|
456
|
+
] = None,
|
|
457
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
458
|
+
_content_type: Optional[StrictStr] = None,
|
|
459
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
461
|
+
) -> ApiResponse[CommunityAboutTimelineResponse]:
|
|
462
|
+
"""get_community_about_timeline
|
|
463
|
+
|
|
464
|
+
get about of community
|
|
465
|
+
|
|
466
|
+
:param path_query_id: (required)
|
|
467
|
+
:type path_query_id: str
|
|
468
|
+
:param variables: (required)
|
|
469
|
+
:type variables: str
|
|
470
|
+
:param features: (required)
|
|
471
|
+
:type features: str
|
|
472
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
473
|
+
number provided, it will be total request
|
|
474
|
+
timeout. It can also be a pair (tuple) of
|
|
475
|
+
(connection, read) timeouts.
|
|
476
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
477
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
478
|
+
request; this effectively ignores the
|
|
479
|
+
authentication in the spec for a single request.
|
|
480
|
+
:type _request_auth: dict, optional
|
|
481
|
+
:param _content_type: force content-type for the request.
|
|
482
|
+
:type _content_type: str, Optional
|
|
483
|
+
:param _headers: set to override the headers for a single
|
|
484
|
+
request; this effectively ignores the headers
|
|
485
|
+
in the spec for a single request.
|
|
486
|
+
:type _headers: dict, optional
|
|
487
|
+
:param _host_index: set to override the host_index for a single
|
|
488
|
+
request; this effectively ignores the host_index
|
|
489
|
+
in the spec for a single request.
|
|
490
|
+
:type _host_index: int, optional
|
|
491
|
+
:return: Returns the result object.
|
|
492
|
+
""" # noqa: E501
|
|
493
|
+
|
|
494
|
+
_param = self._get_community_about_timeline_serialize(
|
|
495
|
+
path_query_id=path_query_id,
|
|
496
|
+
variables=variables,
|
|
497
|
+
features=features,
|
|
498
|
+
_request_auth=_request_auth,
|
|
499
|
+
_content_type=_content_type,
|
|
500
|
+
_headers=_headers,
|
|
501
|
+
_host_index=_host_index
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
505
|
+
'200': "CommunityAboutTimelineResponse",
|
|
506
|
+
}
|
|
507
|
+
response_data = self.api_client.call_api(
|
|
508
|
+
*_param,
|
|
509
|
+
_request_timeout=_request_timeout
|
|
510
|
+
)
|
|
511
|
+
response_data.read()
|
|
512
|
+
return self.api_client.response_deserialize(
|
|
513
|
+
response_data=response_data,
|
|
514
|
+
response_types_map=_response_types_map,
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
@validate_call
|
|
519
|
+
def get_community_about_timeline_without_preload_content(
|
|
520
|
+
self,
|
|
521
|
+
path_query_id: StrictStr,
|
|
522
|
+
variables: StrictStr,
|
|
523
|
+
features: StrictStr,
|
|
524
|
+
_request_timeout: Union[
|
|
525
|
+
None,
|
|
526
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
527
|
+
Tuple[
|
|
528
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
529
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
530
|
+
]
|
|
531
|
+
] = None,
|
|
532
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
533
|
+
_content_type: Optional[StrictStr] = None,
|
|
534
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
535
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
536
|
+
) -> RESTResponseType:
|
|
537
|
+
"""get_community_about_timeline
|
|
538
|
+
|
|
539
|
+
get about of community
|
|
540
|
+
|
|
541
|
+
:param path_query_id: (required)
|
|
542
|
+
:type path_query_id: str
|
|
543
|
+
:param variables: (required)
|
|
544
|
+
:type variables: str
|
|
545
|
+
:param features: (required)
|
|
546
|
+
:type features: str
|
|
547
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
548
|
+
number provided, it will be total request
|
|
549
|
+
timeout. It can also be a pair (tuple) of
|
|
550
|
+
(connection, read) timeouts.
|
|
551
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
552
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
553
|
+
request; this effectively ignores the
|
|
554
|
+
authentication in the spec for a single request.
|
|
555
|
+
:type _request_auth: dict, optional
|
|
556
|
+
:param _content_type: force content-type for the request.
|
|
557
|
+
:type _content_type: str, Optional
|
|
558
|
+
:param _headers: set to override the headers for a single
|
|
559
|
+
request; this effectively ignores the headers
|
|
560
|
+
in the spec for a single request.
|
|
561
|
+
:type _headers: dict, optional
|
|
562
|
+
:param _host_index: set to override the host_index for a single
|
|
563
|
+
request; this effectively ignores the host_index
|
|
564
|
+
in the spec for a single request.
|
|
565
|
+
:type _host_index: int, optional
|
|
566
|
+
:return: Returns the result object.
|
|
567
|
+
""" # noqa: E501
|
|
568
|
+
|
|
569
|
+
_param = self._get_community_about_timeline_serialize(
|
|
570
|
+
path_query_id=path_query_id,
|
|
571
|
+
variables=variables,
|
|
572
|
+
features=features,
|
|
573
|
+
_request_auth=_request_auth,
|
|
574
|
+
_content_type=_content_type,
|
|
575
|
+
_headers=_headers,
|
|
576
|
+
_host_index=_host_index
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
580
|
+
'200': "CommunityAboutTimelineResponse",
|
|
581
|
+
}
|
|
582
|
+
response_data = self.api_client.call_api(
|
|
583
|
+
*_param,
|
|
584
|
+
_request_timeout=_request_timeout
|
|
585
|
+
)
|
|
586
|
+
return response_data.response
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
def _get_community_about_timeline_serialize(
|
|
590
|
+
self,
|
|
591
|
+
path_query_id,
|
|
592
|
+
variables,
|
|
593
|
+
features,
|
|
594
|
+
_request_auth,
|
|
595
|
+
_content_type,
|
|
596
|
+
_headers,
|
|
597
|
+
_host_index,
|
|
598
|
+
) -> RequestSerialized:
|
|
599
|
+
|
|
600
|
+
_host = None
|
|
601
|
+
|
|
602
|
+
_collection_formats: Dict[str, str] = {
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
_path_params: Dict[str, str] = {}
|
|
606
|
+
_query_params: List[Tuple[str, str]] = []
|
|
607
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
608
|
+
_form_params: List[Tuple[str, str]] = []
|
|
609
|
+
_files: Dict[
|
|
610
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
611
|
+
] = {}
|
|
612
|
+
_body_params: Optional[bytes] = None
|
|
613
|
+
|
|
614
|
+
# process the path parameters
|
|
615
|
+
if path_query_id is not None:
|
|
616
|
+
_path_params['pathQueryId'] = path_query_id
|
|
617
|
+
# process the query parameters
|
|
618
|
+
if variables is not None:
|
|
619
|
+
|
|
620
|
+
_query_params.append(('variables', variables))
|
|
621
|
+
|
|
622
|
+
if features is not None:
|
|
623
|
+
|
|
624
|
+
_query_params.append(('features', features))
|
|
625
|
+
|
|
626
|
+
# process the header parameters
|
|
627
|
+
# process the form parameters
|
|
628
|
+
# process the body parameter
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
# set the HTTP header `Accept`
|
|
632
|
+
if 'Accept' not in _header_params:
|
|
633
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
634
|
+
[
|
|
635
|
+
'application/json'
|
|
636
|
+
]
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
# authentication setting
|
|
641
|
+
_auth_settings: List[str] = [
|
|
642
|
+
'Accept',
|
|
643
|
+
'ClientLanguage',
|
|
644
|
+
'Priority',
|
|
645
|
+
'Referer',
|
|
646
|
+
'SecFetchDest',
|
|
647
|
+
'SecChUaPlatform',
|
|
648
|
+
'SecFetchMode',
|
|
649
|
+
'CsrfToken',
|
|
650
|
+
'ClientUuid',
|
|
651
|
+
'BearerAuth',
|
|
652
|
+
'GuestToken',
|
|
653
|
+
'SecChUa',
|
|
654
|
+
'CookieGt0',
|
|
655
|
+
'ClientTransactionId',
|
|
656
|
+
'ActiveUser',
|
|
657
|
+
'CookieCt0',
|
|
658
|
+
'UserAgent',
|
|
659
|
+
'AcceptLanguage',
|
|
660
|
+
'SecFetchSite',
|
|
661
|
+
'AuthType',
|
|
662
|
+
'CookieAuthToken',
|
|
663
|
+
'SecChUaMobile',
|
|
664
|
+
'AcceptEncoding'
|
|
665
|
+
]
|
|
666
|
+
|
|
667
|
+
return self.api_client.param_serialize(
|
|
668
|
+
method='GET',
|
|
669
|
+
resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline',
|
|
670
|
+
path_params=_path_params,
|
|
671
|
+
query_params=_query_params,
|
|
672
|
+
header_params=_header_params,
|
|
673
|
+
body=_body_params,
|
|
674
|
+
post_params=_form_params,
|
|
675
|
+
files=_files,
|
|
676
|
+
auth_settings=_auth_settings,
|
|
677
|
+
collection_formats=_collection_formats,
|
|
678
|
+
_host=_host,
|
|
679
|
+
_request_auth=_request_auth
|
|
680
|
+
)
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
@validate_call
|
|
686
|
+
def get_community_media_timeline(
|
|
687
|
+
self,
|
|
688
|
+
path_query_id: StrictStr,
|
|
689
|
+
variables: StrictStr,
|
|
690
|
+
features: StrictStr,
|
|
691
|
+
_request_timeout: Union[
|
|
692
|
+
None,
|
|
693
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
694
|
+
Tuple[
|
|
695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
696
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
697
|
+
]
|
|
698
|
+
] = None,
|
|
699
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
700
|
+
_content_type: Optional[StrictStr] = None,
|
|
701
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
702
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
703
|
+
) -> CommunityMediaTimelineResponse:
|
|
704
|
+
"""get_community_media_timeline
|
|
705
|
+
|
|
706
|
+
get media list of community
|
|
707
|
+
|
|
708
|
+
:param path_query_id: (required)
|
|
709
|
+
:type path_query_id: str
|
|
710
|
+
:param variables: (required)
|
|
711
|
+
:type variables: str
|
|
712
|
+
:param features: (required)
|
|
713
|
+
:type features: str
|
|
714
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
715
|
+
number provided, it will be total request
|
|
716
|
+
timeout. It can also be a pair (tuple) of
|
|
717
|
+
(connection, read) timeouts.
|
|
718
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
719
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
720
|
+
request; this effectively ignores the
|
|
721
|
+
authentication in the spec for a single request.
|
|
722
|
+
:type _request_auth: dict, optional
|
|
723
|
+
:param _content_type: force content-type for the request.
|
|
724
|
+
:type _content_type: str, Optional
|
|
725
|
+
:param _headers: set to override the headers for a single
|
|
726
|
+
request; this effectively ignores the headers
|
|
727
|
+
in the spec for a single request.
|
|
728
|
+
:type _headers: dict, optional
|
|
729
|
+
:param _host_index: set to override the host_index for a single
|
|
730
|
+
request; this effectively ignores the host_index
|
|
731
|
+
in the spec for a single request.
|
|
732
|
+
:type _host_index: int, optional
|
|
733
|
+
:return: Returns the result object.
|
|
734
|
+
""" # noqa: E501
|
|
735
|
+
|
|
736
|
+
_param = self._get_community_media_timeline_serialize(
|
|
737
|
+
path_query_id=path_query_id,
|
|
738
|
+
variables=variables,
|
|
739
|
+
features=features,
|
|
740
|
+
_request_auth=_request_auth,
|
|
741
|
+
_content_type=_content_type,
|
|
742
|
+
_headers=_headers,
|
|
743
|
+
_host_index=_host_index
|
|
744
|
+
)
|
|
745
|
+
|
|
746
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
747
|
+
'200': "CommunityMediaTimelineResponse",
|
|
748
|
+
}
|
|
749
|
+
response_data = self.api_client.call_api(
|
|
750
|
+
*_param,
|
|
751
|
+
_request_timeout=_request_timeout
|
|
752
|
+
)
|
|
753
|
+
response_data.read()
|
|
754
|
+
return self.api_client.response_deserialize(
|
|
755
|
+
response_data=response_data,
|
|
756
|
+
response_types_map=_response_types_map,
|
|
757
|
+
).data
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
@validate_call
|
|
761
|
+
def get_community_media_timeline_with_http_info(
|
|
762
|
+
self,
|
|
763
|
+
path_query_id: StrictStr,
|
|
764
|
+
variables: StrictStr,
|
|
765
|
+
features: StrictStr,
|
|
766
|
+
_request_timeout: Union[
|
|
767
|
+
None,
|
|
768
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
769
|
+
Tuple[
|
|
770
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
771
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
772
|
+
]
|
|
773
|
+
] = None,
|
|
774
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
775
|
+
_content_type: Optional[StrictStr] = None,
|
|
776
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
777
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
778
|
+
) -> ApiResponse[CommunityMediaTimelineResponse]:
|
|
779
|
+
"""get_community_media_timeline
|
|
780
|
+
|
|
781
|
+
get media list of community
|
|
782
|
+
|
|
783
|
+
:param path_query_id: (required)
|
|
784
|
+
:type path_query_id: str
|
|
785
|
+
:param variables: (required)
|
|
786
|
+
:type variables: str
|
|
787
|
+
:param features: (required)
|
|
788
|
+
:type features: str
|
|
789
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
790
|
+
number provided, it will be total request
|
|
791
|
+
timeout. It can also be a pair (tuple) of
|
|
792
|
+
(connection, read) timeouts.
|
|
793
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
794
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
795
|
+
request; this effectively ignores the
|
|
796
|
+
authentication in the spec for a single request.
|
|
797
|
+
:type _request_auth: dict, optional
|
|
798
|
+
:param _content_type: force content-type for the request.
|
|
799
|
+
:type _content_type: str, Optional
|
|
800
|
+
:param _headers: set to override the headers for a single
|
|
801
|
+
request; this effectively ignores the headers
|
|
802
|
+
in the spec for a single request.
|
|
803
|
+
:type _headers: dict, optional
|
|
804
|
+
:param _host_index: set to override the host_index for a single
|
|
805
|
+
request; this effectively ignores the host_index
|
|
806
|
+
in the spec for a single request.
|
|
807
|
+
:type _host_index: int, optional
|
|
808
|
+
:return: Returns the result object.
|
|
809
|
+
""" # noqa: E501
|
|
810
|
+
|
|
811
|
+
_param = self._get_community_media_timeline_serialize(
|
|
812
|
+
path_query_id=path_query_id,
|
|
813
|
+
variables=variables,
|
|
814
|
+
features=features,
|
|
815
|
+
_request_auth=_request_auth,
|
|
816
|
+
_content_type=_content_type,
|
|
817
|
+
_headers=_headers,
|
|
818
|
+
_host_index=_host_index
|
|
819
|
+
)
|
|
820
|
+
|
|
821
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
822
|
+
'200': "CommunityMediaTimelineResponse",
|
|
823
|
+
}
|
|
824
|
+
response_data = self.api_client.call_api(
|
|
825
|
+
*_param,
|
|
826
|
+
_request_timeout=_request_timeout
|
|
827
|
+
)
|
|
828
|
+
response_data.read()
|
|
829
|
+
return self.api_client.response_deserialize(
|
|
830
|
+
response_data=response_data,
|
|
831
|
+
response_types_map=_response_types_map,
|
|
832
|
+
)
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
@validate_call
|
|
836
|
+
def get_community_media_timeline_without_preload_content(
|
|
837
|
+
self,
|
|
838
|
+
path_query_id: StrictStr,
|
|
839
|
+
variables: StrictStr,
|
|
840
|
+
features: StrictStr,
|
|
841
|
+
_request_timeout: Union[
|
|
842
|
+
None,
|
|
843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
844
|
+
Tuple[
|
|
845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
846
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
847
|
+
]
|
|
848
|
+
] = None,
|
|
849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
850
|
+
_content_type: Optional[StrictStr] = None,
|
|
851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
853
|
+
) -> RESTResponseType:
|
|
854
|
+
"""get_community_media_timeline
|
|
855
|
+
|
|
856
|
+
get media list of community
|
|
857
|
+
|
|
858
|
+
:param path_query_id: (required)
|
|
859
|
+
:type path_query_id: str
|
|
860
|
+
:param variables: (required)
|
|
861
|
+
:type variables: str
|
|
862
|
+
:param features: (required)
|
|
863
|
+
:type features: str
|
|
864
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
865
|
+
number provided, it will be total request
|
|
866
|
+
timeout. It can also be a pair (tuple) of
|
|
867
|
+
(connection, read) timeouts.
|
|
868
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
869
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
870
|
+
request; this effectively ignores the
|
|
871
|
+
authentication in the spec for a single request.
|
|
872
|
+
:type _request_auth: dict, optional
|
|
873
|
+
:param _content_type: force content-type for the request.
|
|
874
|
+
:type _content_type: str, Optional
|
|
875
|
+
:param _headers: set to override the headers for a single
|
|
876
|
+
request; this effectively ignores the headers
|
|
877
|
+
in the spec for a single request.
|
|
878
|
+
:type _headers: dict, optional
|
|
879
|
+
:param _host_index: set to override the host_index for a single
|
|
880
|
+
request; this effectively ignores the host_index
|
|
881
|
+
in the spec for a single request.
|
|
882
|
+
:type _host_index: int, optional
|
|
883
|
+
:return: Returns the result object.
|
|
884
|
+
""" # noqa: E501
|
|
885
|
+
|
|
886
|
+
_param = self._get_community_media_timeline_serialize(
|
|
887
|
+
path_query_id=path_query_id,
|
|
888
|
+
variables=variables,
|
|
889
|
+
features=features,
|
|
890
|
+
_request_auth=_request_auth,
|
|
891
|
+
_content_type=_content_type,
|
|
892
|
+
_headers=_headers,
|
|
893
|
+
_host_index=_host_index
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
897
|
+
'200': "CommunityMediaTimelineResponse",
|
|
898
|
+
}
|
|
899
|
+
response_data = self.api_client.call_api(
|
|
900
|
+
*_param,
|
|
901
|
+
_request_timeout=_request_timeout
|
|
902
|
+
)
|
|
903
|
+
return response_data.response
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
def _get_community_media_timeline_serialize(
|
|
907
|
+
self,
|
|
908
|
+
path_query_id,
|
|
909
|
+
variables,
|
|
910
|
+
features,
|
|
911
|
+
_request_auth,
|
|
912
|
+
_content_type,
|
|
913
|
+
_headers,
|
|
914
|
+
_host_index,
|
|
915
|
+
) -> RequestSerialized:
|
|
916
|
+
|
|
917
|
+
_host = None
|
|
918
|
+
|
|
919
|
+
_collection_formats: Dict[str, str] = {
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
_path_params: Dict[str, str] = {}
|
|
923
|
+
_query_params: List[Tuple[str, str]] = []
|
|
924
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
925
|
+
_form_params: List[Tuple[str, str]] = []
|
|
926
|
+
_files: Dict[
|
|
927
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
928
|
+
] = {}
|
|
929
|
+
_body_params: Optional[bytes] = None
|
|
930
|
+
|
|
931
|
+
# process the path parameters
|
|
932
|
+
if path_query_id is not None:
|
|
933
|
+
_path_params['pathQueryId'] = path_query_id
|
|
934
|
+
# process the query parameters
|
|
935
|
+
if variables is not None:
|
|
936
|
+
|
|
937
|
+
_query_params.append(('variables', variables))
|
|
938
|
+
|
|
939
|
+
if features is not None:
|
|
940
|
+
|
|
941
|
+
_query_params.append(('features', features))
|
|
942
|
+
|
|
943
|
+
# process the header parameters
|
|
944
|
+
# process the form parameters
|
|
945
|
+
# process the body parameter
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
# set the HTTP header `Accept`
|
|
949
|
+
if 'Accept' not in _header_params:
|
|
950
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
951
|
+
[
|
|
952
|
+
'application/json'
|
|
953
|
+
]
|
|
954
|
+
)
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
# authentication setting
|
|
958
|
+
_auth_settings: List[str] = [
|
|
959
|
+
'Accept',
|
|
960
|
+
'ClientLanguage',
|
|
961
|
+
'Priority',
|
|
962
|
+
'Referer',
|
|
963
|
+
'SecFetchDest',
|
|
964
|
+
'SecChUaPlatform',
|
|
965
|
+
'SecFetchMode',
|
|
966
|
+
'CsrfToken',
|
|
967
|
+
'ClientUuid',
|
|
968
|
+
'BearerAuth',
|
|
969
|
+
'GuestToken',
|
|
970
|
+
'SecChUa',
|
|
971
|
+
'CookieGt0',
|
|
972
|
+
'ClientTransactionId',
|
|
973
|
+
'ActiveUser',
|
|
974
|
+
'CookieCt0',
|
|
975
|
+
'UserAgent',
|
|
976
|
+
'AcceptLanguage',
|
|
977
|
+
'SecFetchSite',
|
|
978
|
+
'AuthType',
|
|
979
|
+
'CookieAuthToken',
|
|
980
|
+
'SecChUaMobile',
|
|
981
|
+
'AcceptEncoding'
|
|
982
|
+
]
|
|
983
|
+
|
|
984
|
+
return self.api_client.param_serialize(
|
|
985
|
+
method='GET',
|
|
986
|
+
resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
|
|
987
|
+
path_params=_path_params,
|
|
988
|
+
query_params=_query_params,
|
|
989
|
+
header_params=_header_params,
|
|
990
|
+
body=_body_params,
|
|
991
|
+
post_params=_form_params,
|
|
992
|
+
files=_files,
|
|
993
|
+
auth_settings=_auth_settings,
|
|
994
|
+
collection_formats=_collection_formats,
|
|
995
|
+
_host=_host,
|
|
996
|
+
_request_auth=_request_auth
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
@validate_call
|
|
1003
|
+
def get_community_tweets_timeline(
|
|
1004
|
+
self,
|
|
1005
|
+
path_query_id: StrictStr,
|
|
1006
|
+
variables: StrictStr,
|
|
1007
|
+
features: StrictStr,
|
|
1008
|
+
_request_timeout: Union[
|
|
1009
|
+
None,
|
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1011
|
+
Tuple[
|
|
1012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1014
|
+
]
|
|
1015
|
+
] = None,
|
|
1016
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1017
|
+
_content_type: Optional[StrictStr] = None,
|
|
1018
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1019
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1020
|
+
) -> CommunityTweetsTimelineResponse:
|
|
1021
|
+
"""get_community_tweets_timeline
|
|
1022
|
+
|
|
1023
|
+
get tweet list of community. rankingMode:[Recency, Relevance]
|
|
1024
|
+
|
|
1025
|
+
:param path_query_id: (required)
|
|
1026
|
+
:type path_query_id: str
|
|
1027
|
+
:param variables: (required)
|
|
1028
|
+
:type variables: str
|
|
1029
|
+
:param features: (required)
|
|
1030
|
+
:type features: str
|
|
1031
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1032
|
+
number provided, it will be total request
|
|
1033
|
+
timeout. It can also be a pair (tuple) of
|
|
1034
|
+
(connection, read) timeouts.
|
|
1035
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1036
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1037
|
+
request; this effectively ignores the
|
|
1038
|
+
authentication in the spec for a single request.
|
|
1039
|
+
:type _request_auth: dict, optional
|
|
1040
|
+
:param _content_type: force content-type for the request.
|
|
1041
|
+
:type _content_type: str, Optional
|
|
1042
|
+
:param _headers: set to override the headers for a single
|
|
1043
|
+
request; this effectively ignores the headers
|
|
1044
|
+
in the spec for a single request.
|
|
1045
|
+
:type _headers: dict, optional
|
|
1046
|
+
:param _host_index: set to override the host_index for a single
|
|
1047
|
+
request; this effectively ignores the host_index
|
|
1048
|
+
in the spec for a single request.
|
|
1049
|
+
:type _host_index: int, optional
|
|
1050
|
+
:return: Returns the result object.
|
|
1051
|
+
""" # noqa: E501
|
|
1052
|
+
|
|
1053
|
+
_param = self._get_community_tweets_timeline_serialize(
|
|
1054
|
+
path_query_id=path_query_id,
|
|
1055
|
+
variables=variables,
|
|
1056
|
+
features=features,
|
|
1057
|
+
_request_auth=_request_auth,
|
|
1058
|
+
_content_type=_content_type,
|
|
1059
|
+
_headers=_headers,
|
|
1060
|
+
_host_index=_host_index
|
|
1061
|
+
)
|
|
1062
|
+
|
|
1063
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1064
|
+
'200': "CommunityTweetsTimelineResponse",
|
|
1065
|
+
}
|
|
1066
|
+
response_data = self.api_client.call_api(
|
|
1067
|
+
*_param,
|
|
1068
|
+
_request_timeout=_request_timeout
|
|
1069
|
+
)
|
|
1070
|
+
response_data.read()
|
|
1071
|
+
return self.api_client.response_deserialize(
|
|
1072
|
+
response_data=response_data,
|
|
1073
|
+
response_types_map=_response_types_map,
|
|
1074
|
+
).data
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
@validate_call
|
|
1078
|
+
def get_community_tweets_timeline_with_http_info(
|
|
1079
|
+
self,
|
|
1080
|
+
path_query_id: StrictStr,
|
|
1081
|
+
variables: StrictStr,
|
|
1082
|
+
features: StrictStr,
|
|
1083
|
+
_request_timeout: Union[
|
|
1084
|
+
None,
|
|
1085
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1086
|
+
Tuple[
|
|
1087
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1088
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1089
|
+
]
|
|
1090
|
+
] = None,
|
|
1091
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1092
|
+
_content_type: Optional[StrictStr] = None,
|
|
1093
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1094
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1095
|
+
) -> ApiResponse[CommunityTweetsTimelineResponse]:
|
|
1096
|
+
"""get_community_tweets_timeline
|
|
1097
|
+
|
|
1098
|
+
get tweet list of community. rankingMode:[Recency, Relevance]
|
|
1099
|
+
|
|
1100
|
+
:param path_query_id: (required)
|
|
1101
|
+
:type path_query_id: str
|
|
1102
|
+
:param variables: (required)
|
|
1103
|
+
:type variables: str
|
|
1104
|
+
:param features: (required)
|
|
1105
|
+
:type features: str
|
|
1106
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1107
|
+
number provided, it will be total request
|
|
1108
|
+
timeout. It can also be a pair (tuple) of
|
|
1109
|
+
(connection, read) timeouts.
|
|
1110
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1111
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1112
|
+
request; this effectively ignores the
|
|
1113
|
+
authentication in the spec for a single request.
|
|
1114
|
+
:type _request_auth: dict, optional
|
|
1115
|
+
:param _content_type: force content-type for the request.
|
|
1116
|
+
:type _content_type: str, Optional
|
|
1117
|
+
:param _headers: set to override the headers for a single
|
|
1118
|
+
request; this effectively ignores the headers
|
|
1119
|
+
in the spec for a single request.
|
|
1120
|
+
:type _headers: dict, optional
|
|
1121
|
+
:param _host_index: set to override the host_index for a single
|
|
1122
|
+
request; this effectively ignores the host_index
|
|
1123
|
+
in the spec for a single request.
|
|
1124
|
+
:type _host_index: int, optional
|
|
1125
|
+
:return: Returns the result object.
|
|
1126
|
+
""" # noqa: E501
|
|
1127
|
+
|
|
1128
|
+
_param = self._get_community_tweets_timeline_serialize(
|
|
1129
|
+
path_query_id=path_query_id,
|
|
1130
|
+
variables=variables,
|
|
1131
|
+
features=features,
|
|
1132
|
+
_request_auth=_request_auth,
|
|
1133
|
+
_content_type=_content_type,
|
|
1134
|
+
_headers=_headers,
|
|
1135
|
+
_host_index=_host_index
|
|
1136
|
+
)
|
|
1137
|
+
|
|
1138
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1139
|
+
'200': "CommunityTweetsTimelineResponse",
|
|
1140
|
+
}
|
|
1141
|
+
response_data = self.api_client.call_api(
|
|
1142
|
+
*_param,
|
|
1143
|
+
_request_timeout=_request_timeout
|
|
1144
|
+
)
|
|
1145
|
+
response_data.read()
|
|
1146
|
+
return self.api_client.response_deserialize(
|
|
1147
|
+
response_data=response_data,
|
|
1148
|
+
response_types_map=_response_types_map,
|
|
1149
|
+
)
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
@validate_call
|
|
1153
|
+
def get_community_tweets_timeline_without_preload_content(
|
|
1154
|
+
self,
|
|
1155
|
+
path_query_id: StrictStr,
|
|
1156
|
+
variables: StrictStr,
|
|
1157
|
+
features: StrictStr,
|
|
1158
|
+
_request_timeout: Union[
|
|
1159
|
+
None,
|
|
1160
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1161
|
+
Tuple[
|
|
1162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1163
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1164
|
+
]
|
|
1165
|
+
] = None,
|
|
1166
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1167
|
+
_content_type: Optional[StrictStr] = None,
|
|
1168
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1169
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1170
|
+
) -> RESTResponseType:
|
|
1171
|
+
"""get_community_tweets_timeline
|
|
1172
|
+
|
|
1173
|
+
get tweet list of community. rankingMode:[Recency, Relevance]
|
|
1174
|
+
|
|
1175
|
+
:param path_query_id: (required)
|
|
1176
|
+
:type path_query_id: str
|
|
1177
|
+
:param variables: (required)
|
|
1178
|
+
:type variables: str
|
|
1179
|
+
:param features: (required)
|
|
1180
|
+
:type features: str
|
|
1181
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1182
|
+
number provided, it will be total request
|
|
1183
|
+
timeout. It can also be a pair (tuple) of
|
|
1184
|
+
(connection, read) timeouts.
|
|
1185
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1186
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1187
|
+
request; this effectively ignores the
|
|
1188
|
+
authentication in the spec for a single request.
|
|
1189
|
+
:type _request_auth: dict, optional
|
|
1190
|
+
:param _content_type: force content-type for the request.
|
|
1191
|
+
:type _content_type: str, Optional
|
|
1192
|
+
:param _headers: set to override the headers for a single
|
|
1193
|
+
request; this effectively ignores the headers
|
|
1194
|
+
in the spec for a single request.
|
|
1195
|
+
:type _headers: dict, optional
|
|
1196
|
+
:param _host_index: set to override the host_index for a single
|
|
1197
|
+
request; this effectively ignores the host_index
|
|
1198
|
+
in the spec for a single request.
|
|
1199
|
+
:type _host_index: int, optional
|
|
1200
|
+
:return: Returns the result object.
|
|
1201
|
+
""" # noqa: E501
|
|
1202
|
+
|
|
1203
|
+
_param = self._get_community_tweets_timeline_serialize(
|
|
1204
|
+
path_query_id=path_query_id,
|
|
1205
|
+
variables=variables,
|
|
1206
|
+
features=features,
|
|
1207
|
+
_request_auth=_request_auth,
|
|
1208
|
+
_content_type=_content_type,
|
|
1209
|
+
_headers=_headers,
|
|
1210
|
+
_host_index=_host_index
|
|
1211
|
+
)
|
|
1212
|
+
|
|
1213
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1214
|
+
'200': "CommunityTweetsTimelineResponse",
|
|
1215
|
+
}
|
|
1216
|
+
response_data = self.api_client.call_api(
|
|
1217
|
+
*_param,
|
|
1218
|
+
_request_timeout=_request_timeout
|
|
1219
|
+
)
|
|
1220
|
+
return response_data.response
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
def _get_community_tweets_timeline_serialize(
|
|
1224
|
+
self,
|
|
1225
|
+
path_query_id,
|
|
1226
|
+
variables,
|
|
1227
|
+
features,
|
|
1228
|
+
_request_auth,
|
|
1229
|
+
_content_type,
|
|
1230
|
+
_headers,
|
|
1231
|
+
_host_index,
|
|
1232
|
+
) -> RequestSerialized:
|
|
1233
|
+
|
|
1234
|
+
_host = None
|
|
1235
|
+
|
|
1236
|
+
_collection_formats: Dict[str, str] = {
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
_path_params: Dict[str, str] = {}
|
|
1240
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1241
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1242
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1243
|
+
_files: Dict[
|
|
1244
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1245
|
+
] = {}
|
|
1246
|
+
_body_params: Optional[bytes] = None
|
|
1247
|
+
|
|
1248
|
+
# process the path parameters
|
|
1249
|
+
if path_query_id is not None:
|
|
1250
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1251
|
+
# process the query parameters
|
|
1252
|
+
if variables is not None:
|
|
1253
|
+
|
|
1254
|
+
_query_params.append(('variables', variables))
|
|
1255
|
+
|
|
1256
|
+
if features is not None:
|
|
1257
|
+
|
|
1258
|
+
_query_params.append(('features', features))
|
|
1259
|
+
|
|
1260
|
+
# process the header parameters
|
|
1261
|
+
# process the form parameters
|
|
1262
|
+
# process the body parameter
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
# set the HTTP header `Accept`
|
|
1266
|
+
if 'Accept' not in _header_params:
|
|
1267
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1268
|
+
[
|
|
1269
|
+
'application/json'
|
|
1270
|
+
]
|
|
1271
|
+
)
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
# authentication setting
|
|
1275
|
+
_auth_settings: List[str] = [
|
|
1276
|
+
'Accept',
|
|
1277
|
+
'ClientLanguage',
|
|
1278
|
+
'Priority',
|
|
1279
|
+
'Referer',
|
|
1280
|
+
'SecFetchDest',
|
|
1281
|
+
'SecChUaPlatform',
|
|
1282
|
+
'SecFetchMode',
|
|
1283
|
+
'CsrfToken',
|
|
1284
|
+
'ClientUuid',
|
|
1285
|
+
'BearerAuth',
|
|
1286
|
+
'GuestToken',
|
|
1287
|
+
'SecChUa',
|
|
1288
|
+
'CookieGt0',
|
|
1289
|
+
'ClientTransactionId',
|
|
1290
|
+
'ActiveUser',
|
|
1291
|
+
'CookieCt0',
|
|
1292
|
+
'UserAgent',
|
|
1293
|
+
'AcceptLanguage',
|
|
1294
|
+
'SecFetchSite',
|
|
1295
|
+
'AuthType',
|
|
1296
|
+
'CookieAuthToken',
|
|
1297
|
+
'SecChUaMobile',
|
|
1298
|
+
'AcceptEncoding'
|
|
1299
|
+
]
|
|
1300
|
+
|
|
1301
|
+
return self.api_client.param_serialize(
|
|
1302
|
+
method='GET',
|
|
1303
|
+
resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
|
|
1304
|
+
path_params=_path_params,
|
|
1305
|
+
query_params=_query_params,
|
|
1306
|
+
header_params=_header_params,
|
|
1307
|
+
body=_body_params,
|
|
1308
|
+
post_params=_form_params,
|
|
1309
|
+
files=_files,
|
|
1310
|
+
auth_settings=_auth_settings,
|
|
1311
|
+
collection_formats=_collection_formats,
|
|
1312
|
+
_host=_host,
|
|
1313
|
+
_request_auth=_request_auth
|
|
1314
|
+
)
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
364
1319
|
@validate_call
|
|
365
1320
|
def get_home_latest_timeline(
|
|
366
1321
|
self,
|
|
@@ -380,7 +1335,324 @@ class TweetApi:
|
|
|
380
1335
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
381
1336
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
382
1337
|
) -> TimelineResponse:
|
|
383
|
-
"""get_home_latest_timeline
|
|
1338
|
+
"""get_home_latest_timeline
|
|
1339
|
+
|
|
1340
|
+
get tweet list of timeline
|
|
1341
|
+
|
|
1342
|
+
:param path_query_id: (required)
|
|
1343
|
+
:type path_query_id: str
|
|
1344
|
+
:param variables: (required)
|
|
1345
|
+
:type variables: str
|
|
1346
|
+
:param features: (required)
|
|
1347
|
+
:type features: str
|
|
1348
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1349
|
+
number provided, it will be total request
|
|
1350
|
+
timeout. It can also be a pair (tuple) of
|
|
1351
|
+
(connection, read) timeouts.
|
|
1352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1354
|
+
request; this effectively ignores the
|
|
1355
|
+
authentication in the spec for a single request.
|
|
1356
|
+
:type _request_auth: dict, optional
|
|
1357
|
+
:param _content_type: force content-type for the request.
|
|
1358
|
+
:type _content_type: str, Optional
|
|
1359
|
+
:param _headers: set to override the headers for a single
|
|
1360
|
+
request; this effectively ignores the headers
|
|
1361
|
+
in the spec for a single request.
|
|
1362
|
+
:type _headers: dict, optional
|
|
1363
|
+
:param _host_index: set to override the host_index for a single
|
|
1364
|
+
request; this effectively ignores the host_index
|
|
1365
|
+
in the spec for a single request.
|
|
1366
|
+
:type _host_index: int, optional
|
|
1367
|
+
:return: Returns the result object.
|
|
1368
|
+
""" # noqa: E501
|
|
1369
|
+
|
|
1370
|
+
_param = self._get_home_latest_timeline_serialize(
|
|
1371
|
+
path_query_id=path_query_id,
|
|
1372
|
+
variables=variables,
|
|
1373
|
+
features=features,
|
|
1374
|
+
_request_auth=_request_auth,
|
|
1375
|
+
_content_type=_content_type,
|
|
1376
|
+
_headers=_headers,
|
|
1377
|
+
_host_index=_host_index
|
|
1378
|
+
)
|
|
1379
|
+
|
|
1380
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1381
|
+
'200': "TimelineResponse",
|
|
1382
|
+
}
|
|
1383
|
+
response_data = self.api_client.call_api(
|
|
1384
|
+
*_param,
|
|
1385
|
+
_request_timeout=_request_timeout
|
|
1386
|
+
)
|
|
1387
|
+
response_data.read()
|
|
1388
|
+
return self.api_client.response_deserialize(
|
|
1389
|
+
response_data=response_data,
|
|
1390
|
+
response_types_map=_response_types_map,
|
|
1391
|
+
).data
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
@validate_call
|
|
1395
|
+
def get_home_latest_timeline_with_http_info(
|
|
1396
|
+
self,
|
|
1397
|
+
path_query_id: StrictStr,
|
|
1398
|
+
variables: StrictStr,
|
|
1399
|
+
features: StrictStr,
|
|
1400
|
+
_request_timeout: Union[
|
|
1401
|
+
None,
|
|
1402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1403
|
+
Tuple[
|
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1405
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1406
|
+
]
|
|
1407
|
+
] = None,
|
|
1408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1409
|
+
_content_type: Optional[StrictStr] = None,
|
|
1410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1412
|
+
) -> ApiResponse[TimelineResponse]:
|
|
1413
|
+
"""get_home_latest_timeline
|
|
1414
|
+
|
|
1415
|
+
get tweet list of timeline
|
|
1416
|
+
|
|
1417
|
+
:param path_query_id: (required)
|
|
1418
|
+
:type path_query_id: str
|
|
1419
|
+
:param variables: (required)
|
|
1420
|
+
:type variables: str
|
|
1421
|
+
:param features: (required)
|
|
1422
|
+
:type features: str
|
|
1423
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1424
|
+
number provided, it will be total request
|
|
1425
|
+
timeout. It can also be a pair (tuple) of
|
|
1426
|
+
(connection, read) timeouts.
|
|
1427
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1428
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1429
|
+
request; this effectively ignores the
|
|
1430
|
+
authentication in the spec for a single request.
|
|
1431
|
+
:type _request_auth: dict, optional
|
|
1432
|
+
:param _content_type: force content-type for the request.
|
|
1433
|
+
:type _content_type: str, Optional
|
|
1434
|
+
:param _headers: set to override the headers for a single
|
|
1435
|
+
request; this effectively ignores the headers
|
|
1436
|
+
in the spec for a single request.
|
|
1437
|
+
:type _headers: dict, optional
|
|
1438
|
+
:param _host_index: set to override the host_index for a single
|
|
1439
|
+
request; this effectively ignores the host_index
|
|
1440
|
+
in the spec for a single request.
|
|
1441
|
+
:type _host_index: int, optional
|
|
1442
|
+
:return: Returns the result object.
|
|
1443
|
+
""" # noqa: E501
|
|
1444
|
+
|
|
1445
|
+
_param = self._get_home_latest_timeline_serialize(
|
|
1446
|
+
path_query_id=path_query_id,
|
|
1447
|
+
variables=variables,
|
|
1448
|
+
features=features,
|
|
1449
|
+
_request_auth=_request_auth,
|
|
1450
|
+
_content_type=_content_type,
|
|
1451
|
+
_headers=_headers,
|
|
1452
|
+
_host_index=_host_index
|
|
1453
|
+
)
|
|
1454
|
+
|
|
1455
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1456
|
+
'200': "TimelineResponse",
|
|
1457
|
+
}
|
|
1458
|
+
response_data = self.api_client.call_api(
|
|
1459
|
+
*_param,
|
|
1460
|
+
_request_timeout=_request_timeout
|
|
1461
|
+
)
|
|
1462
|
+
response_data.read()
|
|
1463
|
+
return self.api_client.response_deserialize(
|
|
1464
|
+
response_data=response_data,
|
|
1465
|
+
response_types_map=_response_types_map,
|
|
1466
|
+
)
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
@validate_call
|
|
1470
|
+
def get_home_latest_timeline_without_preload_content(
|
|
1471
|
+
self,
|
|
1472
|
+
path_query_id: StrictStr,
|
|
1473
|
+
variables: StrictStr,
|
|
1474
|
+
features: StrictStr,
|
|
1475
|
+
_request_timeout: Union[
|
|
1476
|
+
None,
|
|
1477
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1478
|
+
Tuple[
|
|
1479
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1480
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1481
|
+
]
|
|
1482
|
+
] = None,
|
|
1483
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1484
|
+
_content_type: Optional[StrictStr] = None,
|
|
1485
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1486
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1487
|
+
) -> RESTResponseType:
|
|
1488
|
+
"""get_home_latest_timeline
|
|
1489
|
+
|
|
1490
|
+
get tweet list of timeline
|
|
1491
|
+
|
|
1492
|
+
:param path_query_id: (required)
|
|
1493
|
+
:type path_query_id: str
|
|
1494
|
+
:param variables: (required)
|
|
1495
|
+
:type variables: str
|
|
1496
|
+
:param features: (required)
|
|
1497
|
+
:type features: str
|
|
1498
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1499
|
+
number provided, it will be total request
|
|
1500
|
+
timeout. It can also be a pair (tuple) of
|
|
1501
|
+
(connection, read) timeouts.
|
|
1502
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1503
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1504
|
+
request; this effectively ignores the
|
|
1505
|
+
authentication in the spec for a single request.
|
|
1506
|
+
:type _request_auth: dict, optional
|
|
1507
|
+
:param _content_type: force content-type for the request.
|
|
1508
|
+
:type _content_type: str, Optional
|
|
1509
|
+
:param _headers: set to override the headers for a single
|
|
1510
|
+
request; this effectively ignores the headers
|
|
1511
|
+
in the spec for a single request.
|
|
1512
|
+
:type _headers: dict, optional
|
|
1513
|
+
:param _host_index: set to override the host_index for a single
|
|
1514
|
+
request; this effectively ignores the host_index
|
|
1515
|
+
in the spec for a single request.
|
|
1516
|
+
:type _host_index: int, optional
|
|
1517
|
+
:return: Returns the result object.
|
|
1518
|
+
""" # noqa: E501
|
|
1519
|
+
|
|
1520
|
+
_param = self._get_home_latest_timeline_serialize(
|
|
1521
|
+
path_query_id=path_query_id,
|
|
1522
|
+
variables=variables,
|
|
1523
|
+
features=features,
|
|
1524
|
+
_request_auth=_request_auth,
|
|
1525
|
+
_content_type=_content_type,
|
|
1526
|
+
_headers=_headers,
|
|
1527
|
+
_host_index=_host_index
|
|
1528
|
+
)
|
|
1529
|
+
|
|
1530
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1531
|
+
'200': "TimelineResponse",
|
|
1532
|
+
}
|
|
1533
|
+
response_data = self.api_client.call_api(
|
|
1534
|
+
*_param,
|
|
1535
|
+
_request_timeout=_request_timeout
|
|
1536
|
+
)
|
|
1537
|
+
return response_data.response
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
def _get_home_latest_timeline_serialize(
|
|
1541
|
+
self,
|
|
1542
|
+
path_query_id,
|
|
1543
|
+
variables,
|
|
1544
|
+
features,
|
|
1545
|
+
_request_auth,
|
|
1546
|
+
_content_type,
|
|
1547
|
+
_headers,
|
|
1548
|
+
_host_index,
|
|
1549
|
+
) -> RequestSerialized:
|
|
1550
|
+
|
|
1551
|
+
_host = None
|
|
1552
|
+
|
|
1553
|
+
_collection_formats: Dict[str, str] = {
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
_path_params: Dict[str, str] = {}
|
|
1557
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1558
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1559
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1560
|
+
_files: Dict[
|
|
1561
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1562
|
+
] = {}
|
|
1563
|
+
_body_params: Optional[bytes] = None
|
|
1564
|
+
|
|
1565
|
+
# process the path parameters
|
|
1566
|
+
if path_query_id is not None:
|
|
1567
|
+
_path_params['pathQueryId'] = path_query_id
|
|
1568
|
+
# process the query parameters
|
|
1569
|
+
if variables is not None:
|
|
1570
|
+
|
|
1571
|
+
_query_params.append(('variables', variables))
|
|
1572
|
+
|
|
1573
|
+
if features is not None:
|
|
1574
|
+
|
|
1575
|
+
_query_params.append(('features', features))
|
|
1576
|
+
|
|
1577
|
+
# process the header parameters
|
|
1578
|
+
# process the form parameters
|
|
1579
|
+
# process the body parameter
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
# set the HTTP header `Accept`
|
|
1583
|
+
if 'Accept' not in _header_params:
|
|
1584
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1585
|
+
[
|
|
1586
|
+
'application/json'
|
|
1587
|
+
]
|
|
1588
|
+
)
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
# authentication setting
|
|
1592
|
+
_auth_settings: List[str] = [
|
|
1593
|
+
'Accept',
|
|
1594
|
+
'ClientLanguage',
|
|
1595
|
+
'Priority',
|
|
1596
|
+
'Referer',
|
|
1597
|
+
'SecFetchDest',
|
|
1598
|
+
'SecChUaPlatform',
|
|
1599
|
+
'SecFetchMode',
|
|
1600
|
+
'CsrfToken',
|
|
1601
|
+
'ClientUuid',
|
|
1602
|
+
'BearerAuth',
|
|
1603
|
+
'GuestToken',
|
|
1604
|
+
'SecChUa',
|
|
1605
|
+
'CookieGt0',
|
|
1606
|
+
'ClientTransactionId',
|
|
1607
|
+
'ActiveUser',
|
|
1608
|
+
'CookieCt0',
|
|
1609
|
+
'UserAgent',
|
|
1610
|
+
'AcceptLanguage',
|
|
1611
|
+
'SecFetchSite',
|
|
1612
|
+
'AuthType',
|
|
1613
|
+
'CookieAuthToken',
|
|
1614
|
+
'SecChUaMobile',
|
|
1615
|
+
'AcceptEncoding'
|
|
1616
|
+
]
|
|
1617
|
+
|
|
1618
|
+
return self.api_client.param_serialize(
|
|
1619
|
+
method='GET',
|
|
1620
|
+
resource_path='/graphql/{pathQueryId}/HomeLatestTimeline',
|
|
1621
|
+
path_params=_path_params,
|
|
1622
|
+
query_params=_query_params,
|
|
1623
|
+
header_params=_header_params,
|
|
1624
|
+
body=_body_params,
|
|
1625
|
+
post_params=_form_params,
|
|
1626
|
+
files=_files,
|
|
1627
|
+
auth_settings=_auth_settings,
|
|
1628
|
+
collection_formats=_collection_formats,
|
|
1629
|
+
_host=_host,
|
|
1630
|
+
_request_auth=_request_auth
|
|
1631
|
+
)
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
@validate_call
|
|
1637
|
+
def get_home_timeline(
|
|
1638
|
+
self,
|
|
1639
|
+
path_query_id: StrictStr,
|
|
1640
|
+
variables: StrictStr,
|
|
1641
|
+
features: StrictStr,
|
|
1642
|
+
_request_timeout: Union[
|
|
1643
|
+
None,
|
|
1644
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1645
|
+
Tuple[
|
|
1646
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1647
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1648
|
+
]
|
|
1649
|
+
] = None,
|
|
1650
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1651
|
+
_content_type: Optional[StrictStr] = None,
|
|
1652
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1653
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1654
|
+
) -> TimelineResponse:
|
|
1655
|
+
"""get_home_timeline
|
|
384
1656
|
|
|
385
1657
|
get tweet list of timeline
|
|
386
1658
|
|
|
@@ -412,7 +1684,7 @@ class TweetApi:
|
|
|
412
1684
|
:return: Returns the result object.
|
|
413
1685
|
""" # noqa: E501
|
|
414
1686
|
|
|
415
|
-
_param = self.
|
|
1687
|
+
_param = self._get_home_timeline_serialize(
|
|
416
1688
|
path_query_id=path_query_id,
|
|
417
1689
|
variables=variables,
|
|
418
1690
|
features=features,
|
|
@@ -437,7 +1709,7 @@ class TweetApi:
|
|
|
437
1709
|
|
|
438
1710
|
|
|
439
1711
|
@validate_call
|
|
440
|
-
def
|
|
1712
|
+
def get_home_timeline_with_http_info(
|
|
441
1713
|
self,
|
|
442
1714
|
path_query_id: StrictStr,
|
|
443
1715
|
variables: StrictStr,
|
|
@@ -455,7 +1727,7 @@ class TweetApi:
|
|
|
455
1727
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
456
1728
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
457
1729
|
) -> ApiResponse[TimelineResponse]:
|
|
458
|
-
"""
|
|
1730
|
+
"""get_home_timeline
|
|
459
1731
|
|
|
460
1732
|
get tweet list of timeline
|
|
461
1733
|
|
|
@@ -487,7 +1759,7 @@ class TweetApi:
|
|
|
487
1759
|
:return: Returns the result object.
|
|
488
1760
|
""" # noqa: E501
|
|
489
1761
|
|
|
490
|
-
_param = self.
|
|
1762
|
+
_param = self._get_home_timeline_serialize(
|
|
491
1763
|
path_query_id=path_query_id,
|
|
492
1764
|
variables=variables,
|
|
493
1765
|
features=features,
|
|
@@ -512,7 +1784,7 @@ class TweetApi:
|
|
|
512
1784
|
|
|
513
1785
|
|
|
514
1786
|
@validate_call
|
|
515
|
-
def
|
|
1787
|
+
def get_home_timeline_without_preload_content(
|
|
516
1788
|
self,
|
|
517
1789
|
path_query_id: StrictStr,
|
|
518
1790
|
variables: StrictStr,
|
|
@@ -530,7 +1802,7 @@ class TweetApi:
|
|
|
530
1802
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
531
1803
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
532
1804
|
) -> RESTResponseType:
|
|
533
|
-
"""
|
|
1805
|
+
"""get_home_timeline
|
|
534
1806
|
|
|
535
1807
|
get tweet list of timeline
|
|
536
1808
|
|
|
@@ -562,7 +1834,7 @@ class TweetApi:
|
|
|
562
1834
|
:return: Returns the result object.
|
|
563
1835
|
""" # noqa: E501
|
|
564
1836
|
|
|
565
|
-
_param = self.
|
|
1837
|
+
_param = self._get_home_timeline_serialize(
|
|
566
1838
|
path_query_id=path_query_id,
|
|
567
1839
|
variables=variables,
|
|
568
1840
|
features=features,
|
|
@@ -582,7 +1854,7 @@ class TweetApi:
|
|
|
582
1854
|
return response_data.response
|
|
583
1855
|
|
|
584
1856
|
|
|
585
|
-
def
|
|
1857
|
+
def _get_home_timeline_serialize(
|
|
586
1858
|
self,
|
|
587
1859
|
path_query_id,
|
|
588
1860
|
variables,
|
|
@@ -662,7 +1934,7 @@ class TweetApi:
|
|
|
662
1934
|
|
|
663
1935
|
return self.api_client.param_serialize(
|
|
664
1936
|
method='GET',
|
|
665
|
-
resource_path='/graphql/{pathQueryId}/
|
|
1937
|
+
resource_path='/graphql/{pathQueryId}/HomeTimeline',
|
|
666
1938
|
path_params=_path_params,
|
|
667
1939
|
query_params=_query_params,
|
|
668
1940
|
header_params=_header_params,
|
|
@@ -679,11 +1951,12 @@ class TweetApi:
|
|
|
679
1951
|
|
|
680
1952
|
|
|
681
1953
|
@validate_call
|
|
682
|
-
def
|
|
1954
|
+
def get_likes(
|
|
683
1955
|
self,
|
|
684
1956
|
path_query_id: StrictStr,
|
|
685
1957
|
variables: StrictStr,
|
|
686
1958
|
features: StrictStr,
|
|
1959
|
+
field_toggles: StrictStr,
|
|
687
1960
|
_request_timeout: Union[
|
|
688
1961
|
None,
|
|
689
1962
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -696,10 +1969,10 @@ class TweetApi:
|
|
|
696
1969
|
_content_type: Optional[StrictStr] = None,
|
|
697
1970
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
698
1971
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
699
|
-
) ->
|
|
700
|
-
"""
|
|
1972
|
+
) -> UserTweetsResponse:
|
|
1973
|
+
"""get_likes
|
|
701
1974
|
|
|
702
|
-
get
|
|
1975
|
+
get user likes tweets
|
|
703
1976
|
|
|
704
1977
|
:param path_query_id: (required)
|
|
705
1978
|
:type path_query_id: str
|
|
@@ -707,6 +1980,8 @@ class TweetApi:
|
|
|
707
1980
|
:type variables: str
|
|
708
1981
|
:param features: (required)
|
|
709
1982
|
:type features: str
|
|
1983
|
+
:param field_toggles: (required)
|
|
1984
|
+
:type field_toggles: str
|
|
710
1985
|
:param _request_timeout: timeout setting for this request. If one
|
|
711
1986
|
number provided, it will be total request
|
|
712
1987
|
timeout. It can also be a pair (tuple) of
|
|
@@ -729,10 +2004,11 @@ class TweetApi:
|
|
|
729
2004
|
:return: Returns the result object.
|
|
730
2005
|
""" # noqa: E501
|
|
731
2006
|
|
|
732
|
-
_param = self.
|
|
2007
|
+
_param = self._get_likes_serialize(
|
|
733
2008
|
path_query_id=path_query_id,
|
|
734
2009
|
variables=variables,
|
|
735
2010
|
features=features,
|
|
2011
|
+
field_toggles=field_toggles,
|
|
736
2012
|
_request_auth=_request_auth,
|
|
737
2013
|
_content_type=_content_type,
|
|
738
2014
|
_headers=_headers,
|
|
@@ -740,7 +2016,7 @@ class TweetApi:
|
|
|
740
2016
|
)
|
|
741
2017
|
|
|
742
2018
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
743
|
-
'200': "
|
|
2019
|
+
'200': "UserTweetsResponse",
|
|
744
2020
|
}
|
|
745
2021
|
response_data = self.api_client.call_api(
|
|
746
2022
|
*_param,
|
|
@@ -754,11 +2030,12 @@ class TweetApi:
|
|
|
754
2030
|
|
|
755
2031
|
|
|
756
2032
|
@validate_call
|
|
757
|
-
def
|
|
2033
|
+
def get_likes_with_http_info(
|
|
758
2034
|
self,
|
|
759
2035
|
path_query_id: StrictStr,
|
|
760
2036
|
variables: StrictStr,
|
|
761
2037
|
features: StrictStr,
|
|
2038
|
+
field_toggles: StrictStr,
|
|
762
2039
|
_request_timeout: Union[
|
|
763
2040
|
None,
|
|
764
2041
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -771,10 +2048,10 @@ class TweetApi:
|
|
|
771
2048
|
_content_type: Optional[StrictStr] = None,
|
|
772
2049
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
773
2050
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
774
|
-
) -> ApiResponse[
|
|
775
|
-
"""
|
|
2051
|
+
) -> ApiResponse[UserTweetsResponse]:
|
|
2052
|
+
"""get_likes
|
|
776
2053
|
|
|
777
|
-
get
|
|
2054
|
+
get user likes tweets
|
|
778
2055
|
|
|
779
2056
|
:param path_query_id: (required)
|
|
780
2057
|
:type path_query_id: str
|
|
@@ -782,6 +2059,8 @@ class TweetApi:
|
|
|
782
2059
|
:type variables: str
|
|
783
2060
|
:param features: (required)
|
|
784
2061
|
:type features: str
|
|
2062
|
+
:param field_toggles: (required)
|
|
2063
|
+
:type field_toggles: str
|
|
785
2064
|
:param _request_timeout: timeout setting for this request. If one
|
|
786
2065
|
number provided, it will be total request
|
|
787
2066
|
timeout. It can also be a pair (tuple) of
|
|
@@ -804,10 +2083,11 @@ class TweetApi:
|
|
|
804
2083
|
:return: Returns the result object.
|
|
805
2084
|
""" # noqa: E501
|
|
806
2085
|
|
|
807
|
-
_param = self.
|
|
2086
|
+
_param = self._get_likes_serialize(
|
|
808
2087
|
path_query_id=path_query_id,
|
|
809
2088
|
variables=variables,
|
|
810
2089
|
features=features,
|
|
2090
|
+
field_toggles=field_toggles,
|
|
811
2091
|
_request_auth=_request_auth,
|
|
812
2092
|
_content_type=_content_type,
|
|
813
2093
|
_headers=_headers,
|
|
@@ -815,7 +2095,7 @@ class TweetApi:
|
|
|
815
2095
|
)
|
|
816
2096
|
|
|
817
2097
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
818
|
-
'200': "
|
|
2098
|
+
'200': "UserTweetsResponse",
|
|
819
2099
|
}
|
|
820
2100
|
response_data = self.api_client.call_api(
|
|
821
2101
|
*_param,
|
|
@@ -829,11 +2109,12 @@ class TweetApi:
|
|
|
829
2109
|
|
|
830
2110
|
|
|
831
2111
|
@validate_call
|
|
832
|
-
def
|
|
2112
|
+
def get_likes_without_preload_content(
|
|
833
2113
|
self,
|
|
834
2114
|
path_query_id: StrictStr,
|
|
835
2115
|
variables: StrictStr,
|
|
836
2116
|
features: StrictStr,
|
|
2117
|
+
field_toggles: StrictStr,
|
|
837
2118
|
_request_timeout: Union[
|
|
838
2119
|
None,
|
|
839
2120
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -847,9 +2128,9 @@ class TweetApi:
|
|
|
847
2128
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
848
2129
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
849
2130
|
) -> RESTResponseType:
|
|
850
|
-
"""
|
|
2131
|
+
"""get_likes
|
|
851
2132
|
|
|
852
|
-
get
|
|
2133
|
+
get user likes tweets
|
|
853
2134
|
|
|
854
2135
|
:param path_query_id: (required)
|
|
855
2136
|
:type path_query_id: str
|
|
@@ -857,6 +2138,8 @@ class TweetApi:
|
|
|
857
2138
|
:type variables: str
|
|
858
2139
|
:param features: (required)
|
|
859
2140
|
:type features: str
|
|
2141
|
+
:param field_toggles: (required)
|
|
2142
|
+
:type field_toggles: str
|
|
860
2143
|
:param _request_timeout: timeout setting for this request. If one
|
|
861
2144
|
number provided, it will be total request
|
|
862
2145
|
timeout. It can also be a pair (tuple) of
|
|
@@ -879,10 +2162,11 @@ class TweetApi:
|
|
|
879
2162
|
:return: Returns the result object.
|
|
880
2163
|
""" # noqa: E501
|
|
881
2164
|
|
|
882
|
-
_param = self.
|
|
2165
|
+
_param = self._get_likes_serialize(
|
|
883
2166
|
path_query_id=path_query_id,
|
|
884
2167
|
variables=variables,
|
|
885
2168
|
features=features,
|
|
2169
|
+
field_toggles=field_toggles,
|
|
886
2170
|
_request_auth=_request_auth,
|
|
887
2171
|
_content_type=_content_type,
|
|
888
2172
|
_headers=_headers,
|
|
@@ -890,7 +2174,7 @@ class TweetApi:
|
|
|
890
2174
|
)
|
|
891
2175
|
|
|
892
2176
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
893
|
-
'200': "
|
|
2177
|
+
'200': "UserTweetsResponse",
|
|
894
2178
|
}
|
|
895
2179
|
response_data = self.api_client.call_api(
|
|
896
2180
|
*_param,
|
|
@@ -899,11 +2183,12 @@ class TweetApi:
|
|
|
899
2183
|
return response_data.response
|
|
900
2184
|
|
|
901
2185
|
|
|
902
|
-
def
|
|
2186
|
+
def _get_likes_serialize(
|
|
903
2187
|
self,
|
|
904
2188
|
path_query_id,
|
|
905
2189
|
variables,
|
|
906
2190
|
features,
|
|
2191
|
+
field_toggles,
|
|
907
2192
|
_request_auth,
|
|
908
2193
|
_content_type,
|
|
909
2194
|
_headers,
|
|
@@ -936,6 +2221,10 @@ class TweetApi:
|
|
|
936
2221
|
|
|
937
2222
|
_query_params.append(('features', features))
|
|
938
2223
|
|
|
2224
|
+
if field_toggles is not None:
|
|
2225
|
+
|
|
2226
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
2227
|
+
|
|
939
2228
|
# process the header parameters
|
|
940
2229
|
# process the form parameters
|
|
941
2230
|
# process the body parameter
|
|
@@ -979,7 +2268,7 @@ class TweetApi:
|
|
|
979
2268
|
|
|
980
2269
|
return self.api_client.param_serialize(
|
|
981
2270
|
method='GET',
|
|
982
|
-
resource_path='/graphql/{pathQueryId}/
|
|
2271
|
+
resource_path='/graphql/{pathQueryId}/Likes',
|
|
983
2272
|
path_params=_path_params,
|
|
984
2273
|
query_params=_query_params,
|
|
985
2274
|
header_params=_header_params,
|
|
@@ -996,12 +2285,11 @@ class TweetApi:
|
|
|
996
2285
|
|
|
997
2286
|
|
|
998
2287
|
@validate_call
|
|
999
|
-
def
|
|
2288
|
+
def get_list_latest_tweets_timeline(
|
|
1000
2289
|
self,
|
|
1001
2290
|
path_query_id: StrictStr,
|
|
1002
2291
|
variables: StrictStr,
|
|
1003
2292
|
features: StrictStr,
|
|
1004
|
-
field_toggles: StrictStr,
|
|
1005
2293
|
_request_timeout: Union[
|
|
1006
2294
|
None,
|
|
1007
2295
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1014,10 +2302,10 @@ class TweetApi:
|
|
|
1014
2302
|
_content_type: Optional[StrictStr] = None,
|
|
1015
2303
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1016
2304
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1017
|
-
) ->
|
|
1018
|
-
"""
|
|
2305
|
+
) -> ListLatestTweetsTimelineResponse:
|
|
2306
|
+
"""get_list_latest_tweets_timeline
|
|
1019
2307
|
|
|
1020
|
-
get
|
|
2308
|
+
get tweet list of timeline
|
|
1021
2309
|
|
|
1022
2310
|
:param path_query_id: (required)
|
|
1023
2311
|
:type path_query_id: str
|
|
@@ -1025,8 +2313,6 @@ class TweetApi:
|
|
|
1025
2313
|
:type variables: str
|
|
1026
2314
|
:param features: (required)
|
|
1027
2315
|
:type features: str
|
|
1028
|
-
:param field_toggles: (required)
|
|
1029
|
-
:type field_toggles: str
|
|
1030
2316
|
:param _request_timeout: timeout setting for this request. If one
|
|
1031
2317
|
number provided, it will be total request
|
|
1032
2318
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1049,11 +2335,10 @@ class TweetApi:
|
|
|
1049
2335
|
:return: Returns the result object.
|
|
1050
2336
|
""" # noqa: E501
|
|
1051
2337
|
|
|
1052
|
-
_param = self.
|
|
2338
|
+
_param = self._get_list_latest_tweets_timeline_serialize(
|
|
1053
2339
|
path_query_id=path_query_id,
|
|
1054
2340
|
variables=variables,
|
|
1055
2341
|
features=features,
|
|
1056
|
-
field_toggles=field_toggles,
|
|
1057
2342
|
_request_auth=_request_auth,
|
|
1058
2343
|
_content_type=_content_type,
|
|
1059
2344
|
_headers=_headers,
|
|
@@ -1061,7 +2346,7 @@ class TweetApi:
|
|
|
1061
2346
|
)
|
|
1062
2347
|
|
|
1063
2348
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1064
|
-
'200': "
|
|
2349
|
+
'200': "ListLatestTweetsTimelineResponse",
|
|
1065
2350
|
}
|
|
1066
2351
|
response_data = self.api_client.call_api(
|
|
1067
2352
|
*_param,
|
|
@@ -1075,12 +2360,11 @@ class TweetApi:
|
|
|
1075
2360
|
|
|
1076
2361
|
|
|
1077
2362
|
@validate_call
|
|
1078
|
-
def
|
|
2363
|
+
def get_list_latest_tweets_timeline_with_http_info(
|
|
1079
2364
|
self,
|
|
1080
2365
|
path_query_id: StrictStr,
|
|
1081
2366
|
variables: StrictStr,
|
|
1082
2367
|
features: StrictStr,
|
|
1083
|
-
field_toggles: StrictStr,
|
|
1084
2368
|
_request_timeout: Union[
|
|
1085
2369
|
None,
|
|
1086
2370
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1093,10 +2377,10 @@ class TweetApi:
|
|
|
1093
2377
|
_content_type: Optional[StrictStr] = None,
|
|
1094
2378
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1095
2379
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1096
|
-
) -> ApiResponse[
|
|
1097
|
-
"""
|
|
2380
|
+
) -> ApiResponse[ListLatestTweetsTimelineResponse]:
|
|
2381
|
+
"""get_list_latest_tweets_timeline
|
|
1098
2382
|
|
|
1099
|
-
get
|
|
2383
|
+
get tweet list of timeline
|
|
1100
2384
|
|
|
1101
2385
|
:param path_query_id: (required)
|
|
1102
2386
|
:type path_query_id: str
|
|
@@ -1104,8 +2388,6 @@ class TweetApi:
|
|
|
1104
2388
|
:type variables: str
|
|
1105
2389
|
:param features: (required)
|
|
1106
2390
|
:type features: str
|
|
1107
|
-
:param field_toggles: (required)
|
|
1108
|
-
:type field_toggles: str
|
|
1109
2391
|
:param _request_timeout: timeout setting for this request. If one
|
|
1110
2392
|
number provided, it will be total request
|
|
1111
2393
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1128,11 +2410,10 @@ class TweetApi:
|
|
|
1128
2410
|
:return: Returns the result object.
|
|
1129
2411
|
""" # noqa: E501
|
|
1130
2412
|
|
|
1131
|
-
_param = self.
|
|
2413
|
+
_param = self._get_list_latest_tweets_timeline_serialize(
|
|
1132
2414
|
path_query_id=path_query_id,
|
|
1133
2415
|
variables=variables,
|
|
1134
2416
|
features=features,
|
|
1135
|
-
field_toggles=field_toggles,
|
|
1136
2417
|
_request_auth=_request_auth,
|
|
1137
2418
|
_content_type=_content_type,
|
|
1138
2419
|
_headers=_headers,
|
|
@@ -1140,7 +2421,7 @@ class TweetApi:
|
|
|
1140
2421
|
)
|
|
1141
2422
|
|
|
1142
2423
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1143
|
-
'200': "
|
|
2424
|
+
'200': "ListLatestTweetsTimelineResponse",
|
|
1144
2425
|
}
|
|
1145
2426
|
response_data = self.api_client.call_api(
|
|
1146
2427
|
*_param,
|
|
@@ -1154,12 +2435,11 @@ class TweetApi:
|
|
|
1154
2435
|
|
|
1155
2436
|
|
|
1156
2437
|
@validate_call
|
|
1157
|
-
def
|
|
2438
|
+
def get_list_latest_tweets_timeline_without_preload_content(
|
|
1158
2439
|
self,
|
|
1159
2440
|
path_query_id: StrictStr,
|
|
1160
2441
|
variables: StrictStr,
|
|
1161
2442
|
features: StrictStr,
|
|
1162
|
-
field_toggles: StrictStr,
|
|
1163
2443
|
_request_timeout: Union[
|
|
1164
2444
|
None,
|
|
1165
2445
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1173,9 +2453,9 @@ class TweetApi:
|
|
|
1173
2453
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1174
2454
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1175
2455
|
) -> RESTResponseType:
|
|
1176
|
-
"""
|
|
2456
|
+
"""get_list_latest_tweets_timeline
|
|
1177
2457
|
|
|
1178
|
-
get
|
|
2458
|
+
get tweet list of timeline
|
|
1179
2459
|
|
|
1180
2460
|
:param path_query_id: (required)
|
|
1181
2461
|
:type path_query_id: str
|
|
@@ -1183,8 +2463,6 @@ class TweetApi:
|
|
|
1183
2463
|
:type variables: str
|
|
1184
2464
|
:param features: (required)
|
|
1185
2465
|
:type features: str
|
|
1186
|
-
:param field_toggles: (required)
|
|
1187
|
-
:type field_toggles: str
|
|
1188
2466
|
:param _request_timeout: timeout setting for this request. If one
|
|
1189
2467
|
number provided, it will be total request
|
|
1190
2468
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1207,11 +2485,10 @@ class TweetApi:
|
|
|
1207
2485
|
:return: Returns the result object.
|
|
1208
2486
|
""" # noqa: E501
|
|
1209
2487
|
|
|
1210
|
-
_param = self.
|
|
2488
|
+
_param = self._get_list_latest_tweets_timeline_serialize(
|
|
1211
2489
|
path_query_id=path_query_id,
|
|
1212
2490
|
variables=variables,
|
|
1213
2491
|
features=features,
|
|
1214
|
-
field_toggles=field_toggles,
|
|
1215
2492
|
_request_auth=_request_auth,
|
|
1216
2493
|
_content_type=_content_type,
|
|
1217
2494
|
_headers=_headers,
|
|
@@ -1219,7 +2496,7 @@ class TweetApi:
|
|
|
1219
2496
|
)
|
|
1220
2497
|
|
|
1221
2498
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1222
|
-
'200': "
|
|
2499
|
+
'200': "ListLatestTweetsTimelineResponse",
|
|
1223
2500
|
}
|
|
1224
2501
|
response_data = self.api_client.call_api(
|
|
1225
2502
|
*_param,
|
|
@@ -1228,12 +2505,11 @@ class TweetApi:
|
|
|
1228
2505
|
return response_data.response
|
|
1229
2506
|
|
|
1230
2507
|
|
|
1231
|
-
def
|
|
2508
|
+
def _get_list_latest_tweets_timeline_serialize(
|
|
1232
2509
|
self,
|
|
1233
2510
|
path_query_id,
|
|
1234
2511
|
variables,
|
|
1235
2512
|
features,
|
|
1236
|
-
field_toggles,
|
|
1237
2513
|
_request_auth,
|
|
1238
2514
|
_content_type,
|
|
1239
2515
|
_headers,
|
|
@@ -1266,10 +2542,6 @@ class TweetApi:
|
|
|
1266
2542
|
|
|
1267
2543
|
_query_params.append(('features', features))
|
|
1268
2544
|
|
|
1269
|
-
if field_toggles is not None:
|
|
1270
|
-
|
|
1271
|
-
_query_params.append(('fieldToggles', field_toggles))
|
|
1272
|
-
|
|
1273
2545
|
# process the header parameters
|
|
1274
2546
|
# process the form parameters
|
|
1275
2547
|
# process the body parameter
|
|
@@ -1313,7 +2585,7 @@ class TweetApi:
|
|
|
1313
2585
|
|
|
1314
2586
|
return self.api_client.param_serialize(
|
|
1315
2587
|
method='GET',
|
|
1316
|
-
resource_path='/graphql/{pathQueryId}/
|
|
2588
|
+
resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline',
|
|
1317
2589
|
path_params=_path_params,
|
|
1318
2590
|
query_params=_query_params,
|
|
1319
2591
|
header_params=_header_params,
|
|
@@ -1330,7 +2602,7 @@ class TweetApi:
|
|
|
1330
2602
|
|
|
1331
2603
|
|
|
1332
2604
|
@validate_call
|
|
1333
|
-
def
|
|
2605
|
+
def get_notifications_timeline(
|
|
1334
2606
|
self,
|
|
1335
2607
|
path_query_id: StrictStr,
|
|
1336
2608
|
variables: StrictStr,
|
|
@@ -1347,10 +2619,10 @@ class TweetApi:
|
|
|
1347
2619
|
_content_type: Optional[StrictStr] = None,
|
|
1348
2620
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1349
2621
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1350
|
-
) ->
|
|
1351
|
-
"""
|
|
2622
|
+
) -> NotificationsTimelineResponse:
|
|
2623
|
+
"""get_notifications_timeline
|
|
1352
2624
|
|
|
1353
|
-
get
|
|
2625
|
+
get notification list. timeline_type:[All, Verified, Mentions]
|
|
1354
2626
|
|
|
1355
2627
|
:param path_query_id: (required)
|
|
1356
2628
|
:type path_query_id: str
|
|
@@ -1380,7 +2652,7 @@ class TweetApi:
|
|
|
1380
2652
|
:return: Returns the result object.
|
|
1381
2653
|
""" # noqa: E501
|
|
1382
2654
|
|
|
1383
|
-
_param = self.
|
|
2655
|
+
_param = self._get_notifications_timeline_serialize(
|
|
1384
2656
|
path_query_id=path_query_id,
|
|
1385
2657
|
variables=variables,
|
|
1386
2658
|
features=features,
|
|
@@ -1391,7 +2663,7 @@ class TweetApi:
|
|
|
1391
2663
|
)
|
|
1392
2664
|
|
|
1393
2665
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1394
|
-
'200': "
|
|
2666
|
+
'200': "NotificationsTimelineResponse",
|
|
1395
2667
|
}
|
|
1396
2668
|
response_data = self.api_client.call_api(
|
|
1397
2669
|
*_param,
|
|
@@ -1405,7 +2677,7 @@ class TweetApi:
|
|
|
1405
2677
|
|
|
1406
2678
|
|
|
1407
2679
|
@validate_call
|
|
1408
|
-
def
|
|
2680
|
+
def get_notifications_timeline_with_http_info(
|
|
1409
2681
|
self,
|
|
1410
2682
|
path_query_id: StrictStr,
|
|
1411
2683
|
variables: StrictStr,
|
|
@@ -1422,10 +2694,10 @@ class TweetApi:
|
|
|
1422
2694
|
_content_type: Optional[StrictStr] = None,
|
|
1423
2695
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1424
2696
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1425
|
-
) -> ApiResponse[
|
|
1426
|
-
"""
|
|
2697
|
+
) -> ApiResponse[NotificationsTimelineResponse]:
|
|
2698
|
+
"""get_notifications_timeline
|
|
1427
2699
|
|
|
1428
|
-
get
|
|
2700
|
+
get notification list. timeline_type:[All, Verified, Mentions]
|
|
1429
2701
|
|
|
1430
2702
|
:param path_query_id: (required)
|
|
1431
2703
|
:type path_query_id: str
|
|
@@ -1455,7 +2727,7 @@ class TweetApi:
|
|
|
1455
2727
|
:return: Returns the result object.
|
|
1456
2728
|
""" # noqa: E501
|
|
1457
2729
|
|
|
1458
|
-
_param = self.
|
|
2730
|
+
_param = self._get_notifications_timeline_serialize(
|
|
1459
2731
|
path_query_id=path_query_id,
|
|
1460
2732
|
variables=variables,
|
|
1461
2733
|
features=features,
|
|
@@ -1466,7 +2738,7 @@ class TweetApi:
|
|
|
1466
2738
|
)
|
|
1467
2739
|
|
|
1468
2740
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1469
|
-
'200': "
|
|
2741
|
+
'200': "NotificationsTimelineResponse",
|
|
1470
2742
|
}
|
|
1471
2743
|
response_data = self.api_client.call_api(
|
|
1472
2744
|
*_param,
|
|
@@ -1480,7 +2752,7 @@ class TweetApi:
|
|
|
1480
2752
|
|
|
1481
2753
|
|
|
1482
2754
|
@validate_call
|
|
1483
|
-
def
|
|
2755
|
+
def get_notifications_timeline_without_preload_content(
|
|
1484
2756
|
self,
|
|
1485
2757
|
path_query_id: StrictStr,
|
|
1486
2758
|
variables: StrictStr,
|
|
@@ -1498,9 +2770,9 @@ class TweetApi:
|
|
|
1498
2770
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1499
2771
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1500
2772
|
) -> RESTResponseType:
|
|
1501
|
-
"""
|
|
2773
|
+
"""get_notifications_timeline
|
|
1502
2774
|
|
|
1503
|
-
get
|
|
2775
|
+
get notification list. timeline_type:[All, Verified, Mentions]
|
|
1504
2776
|
|
|
1505
2777
|
:param path_query_id: (required)
|
|
1506
2778
|
:type path_query_id: str
|
|
@@ -1530,7 +2802,7 @@ class TweetApi:
|
|
|
1530
2802
|
:return: Returns the result object.
|
|
1531
2803
|
""" # noqa: E501
|
|
1532
2804
|
|
|
1533
|
-
_param = self.
|
|
2805
|
+
_param = self._get_notifications_timeline_serialize(
|
|
1534
2806
|
path_query_id=path_query_id,
|
|
1535
2807
|
variables=variables,
|
|
1536
2808
|
features=features,
|
|
@@ -1541,7 +2813,7 @@ class TweetApi:
|
|
|
1541
2813
|
)
|
|
1542
2814
|
|
|
1543
2815
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1544
|
-
'200': "
|
|
2816
|
+
'200': "NotificationsTimelineResponse",
|
|
1545
2817
|
}
|
|
1546
2818
|
response_data = self.api_client.call_api(
|
|
1547
2819
|
*_param,
|
|
@@ -1550,7 +2822,7 @@ class TweetApi:
|
|
|
1550
2822
|
return response_data.response
|
|
1551
2823
|
|
|
1552
2824
|
|
|
1553
|
-
def
|
|
2825
|
+
def _get_notifications_timeline_serialize(
|
|
1554
2826
|
self,
|
|
1555
2827
|
path_query_id,
|
|
1556
2828
|
variables,
|
|
@@ -1630,7 +2902,7 @@ class TweetApi:
|
|
|
1630
2902
|
|
|
1631
2903
|
return self.api_client.param_serialize(
|
|
1632
2904
|
method='GET',
|
|
1633
|
-
resource_path='/graphql/{pathQueryId}/
|
|
2905
|
+
resource_path='/graphql/{pathQueryId}/NotificationsTimeline',
|
|
1634
2906
|
path_params=_path_params,
|
|
1635
2907
|
query_params=_query_params,
|
|
1636
2908
|
header_params=_header_params,
|