tweetapi-sdk 0.2.0__tar.gz → 0.3.0__tar.gz
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.
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/PKG-INFO +12 -2
- tweetapi_sdk-0.3.0/pyproject.toml +37 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/account/get_me.py +10 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/billing/create_checkout.py +23 -4
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/billing/list_packs.py +28 -10
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_quotes.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_replies.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_retweeters.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_thread.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_tweet.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/get_tweets.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/search_tweets.py +10 -0
- tweetapi_sdk-0.3.0/tweetapi_sdk/api/users/get_follower_ids.py +254 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/get_followers.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/get_following.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/get_user.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/get_user_tweets.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/get_users.py +15 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/__init__.py +10 -4
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/error.py +11 -8
- tweetapi_sdk-0.2.0/tweetapi_sdk/models/error_error.py → tweetapi_sdk-0.3.0/tweetapi_sdk/models/error_body.py +11 -10
- tweetapi_sdk-0.2.0/tweetapi_sdk/models/error_error_code.py → tweetapi_sdk-0.3.0/tweetapi_sdk/models/error_body_code.py +1 -1
- tweetapi_sdk-0.3.0/tweetapi_sdk/models/id_page.py +117 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/list_packs_response_200.py +26 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/list_packs_response_200_data_item.py +0 -9
- tweetapi_sdk-0.3.0/tweetapi_sdk/models/list_packs_response_200_rate_limits_item.py +70 -0
- tweetapi_sdk-0.3.0/tweetapi_sdk/models/problem.py +131 -0
- tweetapi_sdk-0.2.0/pyproject.toml +0 -25
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/README.md +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/account/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/billing/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/tweets/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/api/users/__init__.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/client.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/errors.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/batch_error.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/batch_error_code.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/batch_meta.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/batch_meta_cache.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/create_checkout_body.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/create_checkout_body_pack.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/create_checkout_response_200.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/get_me_response_200.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/get_tweets_body.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/get_users_body.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/media.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/media_type.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/meta.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/meta_cache.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/search_tweets_product.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/tweet.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/tweet_batch.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/tweet_page.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/tweet_response.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/user.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/user_batch.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/user_page.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/models/user_response.py +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/py.typed +0 -0
- {tweetapi_sdk-0.2.0 → tweetapi_sdk-0.3.0}/tweetapi_sdk/types.py +0 -0
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tweetapi-sdk
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Python client for the tweetapi.dev API: read-only X (Twitter) profiles, tweets, threads, search.
|
|
5
|
+
License: MIT
|
|
6
|
+
Keywords: twitter,x,api,tweets,sdk,tweetapi
|
|
5
7
|
Requires-Python: >=3.11,<4.0
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
6
9
|
Classifier: Programming Language :: Python :: 3
|
|
7
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
8
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
9
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
10
13
|
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
11
15
|
Requires-Dist: attrs (>=22.2.0)
|
|
12
16
|
Requires-Dist: httpx (>=0.23.1,<0.29.0)
|
|
17
|
+
Project-URL: API reference, https://tweetapi.dev/reference
|
|
18
|
+
Project-URL: Documentation, https://tweetapi.dev/docs
|
|
19
|
+
Project-URL: Homepage, https://tweetapi.dev
|
|
20
|
+
Project-URL: Issue tracker, https://github.com/andrewchmr/xdata-api/issues
|
|
21
|
+
Project-URL: Repository, https://github.com/andrewchmr/xdata-api
|
|
22
|
+
Project-URL: Source code, https://github.com/andrewchmr/xdata-api
|
|
13
23
|
Description-Content-Type: text/markdown
|
|
14
24
|
|
|
15
25
|
# tweetapi-sdk
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "tweetapi-sdk"
|
|
3
|
+
version = "0.3.0"
|
|
4
|
+
description = "Python client for the tweetapi.dev API: read-only X (Twitter) profiles, tweets, threads, search."
|
|
5
|
+
authors = []
|
|
6
|
+
license = "MIT"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
homepage = "https://tweetapi.dev/docs/sdks"
|
|
9
|
+
repository = "https://github.com/andrewchmr/xdata-api"
|
|
10
|
+
documentation = "https://tweetapi.dev/docs"
|
|
11
|
+
keywords = ["twitter", "x", "api", "tweets", "sdk", "tweetapi"]
|
|
12
|
+
packages = [
|
|
13
|
+
{ include = "tweetapi_sdk" },
|
|
14
|
+
]
|
|
15
|
+
include = ["tweetapi_sdk/py.typed"]
|
|
16
|
+
|
|
17
|
+
[tool.poetry.dependencies]
|
|
18
|
+
python = "^3.11"
|
|
19
|
+
httpx = ">=0.23.1,<0.29.0"
|
|
20
|
+
attrs = ">=22.2.0"
|
|
21
|
+
|
|
22
|
+
[tool.poetry.urls]
|
|
23
|
+
Homepage = "https://tweetapi.dev"
|
|
24
|
+
Documentation = "https://tweetapi.dev/docs"
|
|
25
|
+
"API reference" = "https://tweetapi.dev/reference"
|
|
26
|
+
"Source code" = "https://github.com/andrewchmr/xdata-api"
|
|
27
|
+
"Issue tracker" = "https://github.com/andrewchmr/xdata-api/issues"
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
31
|
+
build-backend = "poetry.core.masonry.api"
|
|
32
|
+
|
|
33
|
+
[tool.ruff]
|
|
34
|
+
line-length = 120
|
|
35
|
+
|
|
36
|
+
[tool.ruff.lint]
|
|
37
|
+
select = ["F", "I", "UP"]
|
|
@@ -33,6 +33,16 @@ def _parse_response(
|
|
|
33
33
|
|
|
34
34
|
return response_401
|
|
35
35
|
|
|
36
|
+
if response.status_code == 429:
|
|
37
|
+
response_429 = Error.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_429
|
|
40
|
+
|
|
41
|
+
if response.status_code == 500:
|
|
42
|
+
response_500 = Error.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_500
|
|
45
|
+
|
|
36
46
|
if client.raise_on_unexpected_status:
|
|
37
47
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
48
|
else:
|
|
@@ -43,6 +43,21 @@ def _parse_response(
|
|
|
43
43
|
|
|
44
44
|
return response_400
|
|
45
45
|
|
|
46
|
+
if response.status_code == 401:
|
|
47
|
+
response_401 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_401
|
|
50
|
+
|
|
51
|
+
if response.status_code == 429:
|
|
52
|
+
response_429 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_429
|
|
55
|
+
|
|
56
|
+
if response.status_code == 500:
|
|
57
|
+
response_500 = Error.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_500
|
|
60
|
+
|
|
46
61
|
if response.status_code == 503:
|
|
47
62
|
response_503 = Error.from_dict(response.json())
|
|
48
63
|
|
|
@@ -74,7 +89,8 @@ def sync_detailed(
|
|
|
74
89
|
|
|
75
90
|
Returns a Stripe Checkout URL. Open it in a browser; after payment the credits land in the wallet of
|
|
76
91
|
the
|
|
77
|
-
key's account within seconds
|
|
92
|
+
key's account within seconds. The rate limit follows the total paid over the account's life and only
|
|
93
|
+
goes up (see `rate_limits` on `/v1/billing/packs`). Credits are valid 12 months.
|
|
78
94
|
|
|
79
95
|
Args:
|
|
80
96
|
body (CreateCheckoutBody):
|
|
@@ -107,7 +123,8 @@ def sync(
|
|
|
107
123
|
|
|
108
124
|
Returns a Stripe Checkout URL. Open it in a browser; after payment the credits land in the wallet of
|
|
109
125
|
the
|
|
110
|
-
key's account within seconds
|
|
126
|
+
key's account within seconds. The rate limit follows the total paid over the account's life and only
|
|
127
|
+
goes up (see `rate_limits` on `/v1/billing/packs`). Credits are valid 12 months.
|
|
111
128
|
|
|
112
129
|
Args:
|
|
113
130
|
body (CreateCheckoutBody):
|
|
@@ -135,7 +152,8 @@ async def asyncio_detailed(
|
|
|
135
152
|
|
|
136
153
|
Returns a Stripe Checkout URL. Open it in a browser; after payment the credits land in the wallet of
|
|
137
154
|
the
|
|
138
|
-
key's account within seconds
|
|
155
|
+
key's account within seconds. The rate limit follows the total paid over the account's life and only
|
|
156
|
+
goes up (see `rate_limits` on `/v1/billing/packs`). Credits are valid 12 months.
|
|
139
157
|
|
|
140
158
|
Args:
|
|
141
159
|
body (CreateCheckoutBody):
|
|
@@ -166,7 +184,8 @@ async def asyncio(
|
|
|
166
184
|
|
|
167
185
|
Returns a Stripe Checkout URL. Open it in a browser; after payment the credits land in the wallet of
|
|
168
186
|
the
|
|
169
|
-
key's account within seconds
|
|
187
|
+
key's account within seconds. The rate limit follows the total paid over the account's life and only
|
|
188
|
+
goes up (see `rate_limits` on `/v1/billing/packs`). Credits are valid 12 months.
|
|
170
189
|
|
|
171
190
|
Args:
|
|
172
191
|
body (CreateCheckoutBody):
|
|
@@ -5,6 +5,7 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error import Error
|
|
8
9
|
from ...models.list_packs_response_200 import ListPacksResponse200
|
|
9
10
|
from ...types import Response
|
|
10
11
|
|
|
@@ -19,12 +20,29 @@ def _get_kwargs() -> dict[str, Any]:
|
|
|
19
20
|
return _kwargs
|
|
20
21
|
|
|
21
22
|
|
|
22
|
-
def _parse_response(
|
|
23
|
+
def _parse_response(
|
|
24
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
25
|
+
) -> Error | ListPacksResponse200 | None:
|
|
23
26
|
if response.status_code == 200:
|
|
24
27
|
response_200 = ListPacksResponse200.from_dict(response.json())
|
|
25
28
|
|
|
26
29
|
return response_200
|
|
27
30
|
|
|
31
|
+
if response.status_code == 401:
|
|
32
|
+
response_401 = Error.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_401
|
|
35
|
+
|
|
36
|
+
if response.status_code == 429:
|
|
37
|
+
response_429 = Error.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_429
|
|
40
|
+
|
|
41
|
+
if response.status_code == 500:
|
|
42
|
+
response_500 = Error.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_500
|
|
45
|
+
|
|
28
46
|
if client.raise_on_unexpected_status:
|
|
29
47
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
48
|
else:
|
|
@@ -33,7 +51,7 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
33
51
|
|
|
34
52
|
def _build_response(
|
|
35
53
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
36
|
-
) -> Response[ListPacksResponse200]:
|
|
54
|
+
) -> Response[Error | ListPacksResponse200]:
|
|
37
55
|
return Response(
|
|
38
56
|
status_code=HTTPStatus(response.status_code),
|
|
39
57
|
content=response.content,
|
|
@@ -45,7 +63,7 @@ def _build_response(
|
|
|
45
63
|
def sync_detailed(
|
|
46
64
|
*,
|
|
47
65
|
client: AuthenticatedClient | Client,
|
|
48
|
-
) -> Response[ListPacksResponse200]:
|
|
66
|
+
) -> Response[Error | ListPacksResponse200]:
|
|
49
67
|
"""Credit packs on sale
|
|
50
68
|
|
|
51
69
|
Raises:
|
|
@@ -53,7 +71,7 @@ def sync_detailed(
|
|
|
53
71
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
54
72
|
|
|
55
73
|
Returns:
|
|
56
|
-
Response[ListPacksResponse200]
|
|
74
|
+
Response[Error | ListPacksResponse200]
|
|
57
75
|
"""
|
|
58
76
|
|
|
59
77
|
kwargs = _get_kwargs()
|
|
@@ -68,7 +86,7 @@ def sync_detailed(
|
|
|
68
86
|
def sync(
|
|
69
87
|
*,
|
|
70
88
|
client: AuthenticatedClient | Client,
|
|
71
|
-
) -> ListPacksResponse200 | None:
|
|
89
|
+
) -> Error | ListPacksResponse200 | None:
|
|
72
90
|
"""Credit packs on sale
|
|
73
91
|
|
|
74
92
|
Raises:
|
|
@@ -76,7 +94,7 @@ def sync(
|
|
|
76
94
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
77
95
|
|
|
78
96
|
Returns:
|
|
79
|
-
ListPacksResponse200
|
|
97
|
+
Error | ListPacksResponse200
|
|
80
98
|
"""
|
|
81
99
|
|
|
82
100
|
return sync_detailed(
|
|
@@ -87,7 +105,7 @@ def sync(
|
|
|
87
105
|
async def asyncio_detailed(
|
|
88
106
|
*,
|
|
89
107
|
client: AuthenticatedClient | Client,
|
|
90
|
-
) -> Response[ListPacksResponse200]:
|
|
108
|
+
) -> Response[Error | ListPacksResponse200]:
|
|
91
109
|
"""Credit packs on sale
|
|
92
110
|
|
|
93
111
|
Raises:
|
|
@@ -95,7 +113,7 @@ async def asyncio_detailed(
|
|
|
95
113
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
114
|
|
|
97
115
|
Returns:
|
|
98
|
-
Response[ListPacksResponse200]
|
|
116
|
+
Response[Error | ListPacksResponse200]
|
|
99
117
|
"""
|
|
100
118
|
|
|
101
119
|
kwargs = _get_kwargs()
|
|
@@ -108,7 +126,7 @@ async def asyncio_detailed(
|
|
|
108
126
|
async def asyncio(
|
|
109
127
|
*,
|
|
110
128
|
client: AuthenticatedClient | Client,
|
|
111
|
-
) -> ListPacksResponse200 | None:
|
|
129
|
+
) -> Error | ListPacksResponse200 | None:
|
|
112
130
|
"""Credit packs on sale
|
|
113
131
|
|
|
114
132
|
Raises:
|
|
@@ -116,7 +134,7 @@ async def asyncio(
|
|
|
116
134
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
117
135
|
|
|
118
136
|
Returns:
|
|
119
|
-
ListPacksResponse200
|
|
137
|
+
Error | ListPacksResponse200
|
|
120
138
|
"""
|
|
121
139
|
|
|
122
140
|
return (
|
|
@@ -46,6 +46,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
46
46
|
|
|
47
47
|
return response_200
|
|
48
48
|
|
|
49
|
+
if response.status_code == 401:
|
|
50
|
+
response_401 = Error.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_401
|
|
53
|
+
|
|
49
54
|
if response.status_code == 402:
|
|
50
55
|
response_402 = Error.from_dict(response.json())
|
|
51
56
|
|
|
@@ -56,6 +61,16 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
56
61
|
|
|
57
62
|
return response_403
|
|
58
63
|
|
|
64
|
+
if response.status_code == 429:
|
|
65
|
+
response_429 = Error.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_429
|
|
68
|
+
|
|
69
|
+
if response.status_code == 500:
|
|
70
|
+
response_500 = Error.from_dict(response.json())
|
|
71
|
+
|
|
72
|
+
return response_500
|
|
73
|
+
|
|
59
74
|
if response.status_code == 503:
|
|
60
75
|
response_503 = Error.from_dict(response.json())
|
|
61
76
|
|
|
@@ -43,6 +43,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
43
43
|
|
|
44
44
|
return response_200
|
|
45
45
|
|
|
46
|
+
if response.status_code == 401:
|
|
47
|
+
response_401 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_401
|
|
50
|
+
|
|
46
51
|
if response.status_code == 402:
|
|
47
52
|
response_402 = Error.from_dict(response.json())
|
|
48
53
|
|
|
@@ -53,6 +58,16 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
53
58
|
|
|
54
59
|
return response_404
|
|
55
60
|
|
|
61
|
+
if response.status_code == 429:
|
|
62
|
+
response_429 = Error.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_429
|
|
65
|
+
|
|
66
|
+
if response.status_code == 500:
|
|
67
|
+
response_500 = Error.from_dict(response.json())
|
|
68
|
+
|
|
69
|
+
return response_500
|
|
70
|
+
|
|
56
71
|
if response.status_code == 503:
|
|
57
72
|
response_503 = Error.from_dict(response.json())
|
|
58
73
|
|
|
@@ -46,6 +46,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
46
46
|
|
|
47
47
|
return response_200
|
|
48
48
|
|
|
49
|
+
if response.status_code == 401:
|
|
50
|
+
response_401 = Error.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_401
|
|
53
|
+
|
|
49
54
|
if response.status_code == 402:
|
|
50
55
|
response_402 = Error.from_dict(response.json())
|
|
51
56
|
|
|
@@ -56,6 +61,16 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
56
61
|
|
|
57
62
|
return response_403
|
|
58
63
|
|
|
64
|
+
if response.status_code == 429:
|
|
65
|
+
response_429 = Error.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_429
|
|
68
|
+
|
|
69
|
+
if response.status_code == 500:
|
|
70
|
+
response_500 = Error.from_dict(response.json())
|
|
71
|
+
|
|
72
|
+
return response_500
|
|
73
|
+
|
|
59
74
|
if response.status_code == 503:
|
|
60
75
|
response_503 = Error.from_dict(response.json())
|
|
61
76
|
|
|
@@ -43,6 +43,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
43
43
|
|
|
44
44
|
return response_200
|
|
45
45
|
|
|
46
|
+
if response.status_code == 401:
|
|
47
|
+
response_401 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_401
|
|
50
|
+
|
|
46
51
|
if response.status_code == 402:
|
|
47
52
|
response_402 = Error.from_dict(response.json())
|
|
48
53
|
|
|
@@ -53,6 +58,16 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
53
58
|
|
|
54
59
|
return response_404
|
|
55
60
|
|
|
61
|
+
if response.status_code == 429:
|
|
62
|
+
response_429 = Error.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_429
|
|
65
|
+
|
|
66
|
+
if response.status_code == 500:
|
|
67
|
+
response_500 = Error.from_dict(response.json())
|
|
68
|
+
|
|
69
|
+
return response_500
|
|
70
|
+
|
|
56
71
|
if response.status_code == 503:
|
|
57
72
|
response_503 = Error.from_dict(response.json())
|
|
58
73
|
|
|
@@ -40,6 +40,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
40
40
|
|
|
41
41
|
return response_200
|
|
42
42
|
|
|
43
|
+
if response.status_code == 401:
|
|
44
|
+
response_401 = Error.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_401
|
|
47
|
+
|
|
43
48
|
if response.status_code == 402:
|
|
44
49
|
response_402 = Error.from_dict(response.json())
|
|
45
50
|
|
|
@@ -50,6 +55,16 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
50
55
|
|
|
51
56
|
return response_404
|
|
52
57
|
|
|
58
|
+
if response.status_code == 429:
|
|
59
|
+
response_429 = Error.from_dict(response.json())
|
|
60
|
+
|
|
61
|
+
return response_429
|
|
62
|
+
|
|
63
|
+
if response.status_code == 500:
|
|
64
|
+
response_500 = Error.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_500
|
|
67
|
+
|
|
53
68
|
if response.status_code == 503:
|
|
54
69
|
response_503 = Error.from_dict(response.json())
|
|
55
70
|
|
|
@@ -49,11 +49,26 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
49
49
|
|
|
50
50
|
return response_400
|
|
51
51
|
|
|
52
|
+
if response.status_code == 401:
|
|
53
|
+
response_401 = Error.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_401
|
|
56
|
+
|
|
52
57
|
if response.status_code == 402:
|
|
53
58
|
response_402 = Error.from_dict(response.json())
|
|
54
59
|
|
|
55
60
|
return response_402
|
|
56
61
|
|
|
62
|
+
if response.status_code == 429:
|
|
63
|
+
response_429 = Error.from_dict(response.json())
|
|
64
|
+
|
|
65
|
+
return response_429
|
|
66
|
+
|
|
67
|
+
if response.status_code == 500:
|
|
68
|
+
response_500 = Error.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_500
|
|
71
|
+
|
|
57
72
|
if response.status_code == 503:
|
|
58
73
|
response_503 = Error.from_dict(response.json())
|
|
59
74
|
|
|
@@ -58,6 +58,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
58
58
|
|
|
59
59
|
return response_400
|
|
60
60
|
|
|
61
|
+
if response.status_code == 401:
|
|
62
|
+
response_401 = Error.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_401
|
|
65
|
+
|
|
61
66
|
if response.status_code == 402:
|
|
62
67
|
response_402 = Error.from_dict(response.json())
|
|
63
68
|
|
|
@@ -73,6 +78,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
|
|
|
73
78
|
|
|
74
79
|
return response_429
|
|
75
80
|
|
|
81
|
+
if response.status_code == 500:
|
|
82
|
+
response_500 = Error.from_dict(response.json())
|
|
83
|
+
|
|
84
|
+
return response_500
|
|
85
|
+
|
|
76
86
|
if response.status_code == 503:
|
|
77
87
|
response_503 = Error.from_dict(response.json())
|
|
78
88
|
|