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