wildberries-sdk 0.1.16__py3-none-any.whl → 0.1.18__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.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.16.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -1,341 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Общее
5
-
6
- В этом разделе: - [общая информация о WB API](/openapi/api-information#tag/Vvedenie) - как [начать работу с WB API](/openapi/api-information#tag/Vvedenie/Kak-nachat-rabotu-s-API) - как [авторизоваться](/openapi/api-information#tag/Avtorizaciya) и [создавать токены](/openapi/api-information#tag/Avtorizaciya/Kak-sozdat-personalnyj-bazovyj-ili-testovyj-token) - основные [статус-коды ответов](/openapi/api-information#tag/Vvedenie/Status-kody-HTTP) - [лимиты запросов](/openapi/api-information#tag/Vvedenie/Limity-zaprosov) - как обратиться в [поддержку](/openapi/api-information#tag/Vvedenie/Podderzhka) С помощью методов этого раздела вы можете: - проверить [подключение к WB API](/openapi/api-information#tag/Proverka-podklyucheniya-k-WB-API/paths/~1ping/get) - получить [новости портала продавцов](/openapi/api-information#tag/API-novostej/paths/~1api~1communications~1v2~1news/get) - получить [информацию о продавце](/openapi/api-information#tag/Informaciya-o-prodavce/paths/~1api~1v1~1seller-info/get) - [управлять пользователями продавца](/openapi/api-information#tag/Upravlenie-polzovatelyami-prodavca)
7
-
8
- The version of the OpenAPI document: general
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
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 datetime import date
20
- from pydantic import Field, StrictInt
21
- from typing import Optional
22
- from typing_extensions import Annotated
23
- from wildberries_sdk.general.models.api_communications_v2_news_get200_response import ApiCommunicationsV2NewsGet200Response
24
-
25
- from wildberries_sdk.general.api_client import ApiClient, RequestSerialized
26
- from wildberries_sdk.general.api_response import ApiResponse
27
- from wildberries_sdk.general.rest import RESTResponseType
28
-
29
-
30
- class APIApi:
31
- """NOTE: This class is auto generated by OpenAPI Generator
32
- Ref: https://openapi-generator.tech
33
-
34
- Do not edit the class manually.
35
- """
36
-
37
- def __init__(self, api_client=None) -> None:
38
- if api_client is None:
39
- api_client = ApiClient.get_default()
40
- self.api_client = api_client
41
-
42
-
43
- @validate_call
44
- def api_communications_v2_news_get(
45
- self,
46
- var_from: Optional[date] = None,
47
- from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
48
- _request_timeout: Union[
49
- None,
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Tuple[
52
- Annotated[StrictFloat, Field(gt=0)],
53
- Annotated[StrictFloat, Field(gt=0)]
54
- ]
55
- ] = None,
56
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
- _content_type: Optional[StrictStr] = None,
58
- _headers: Optional[Dict[StrictStr, Any]] = None,
59
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
60
- ) -> ApiCommunicationsV2NewsGet200Response:
61
- """Получение новостей портала продавцов
62
-
63
- Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
64
-
65
- :param var_from:
66
- :type var_from: date
67
- :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
68
- :type from_id: int
69
- :param _request_timeout: timeout setting for this request. If one
70
- number provided, it will be total request
71
- timeout. It can also be a pair (tuple) of
72
- (connection, read) timeouts.
73
- :type _request_timeout: int, tuple(int, int), optional
74
- :param _request_auth: set to override the auth_settings for an a single
75
- request; this effectively ignores the
76
- authentication in the spec for a single request.
77
- :type _request_auth: dict, optional
78
- :param _content_type: force content-type for the request.
79
- :type _content_type: str, Optional
80
- :param _headers: set to override the headers for a single
81
- request; this effectively ignores the headers
82
- in the spec for a single request.
83
- :type _headers: dict, optional
84
- :param _host_index: set to override the host_index for a single
85
- request; this effectively ignores the host_index
86
- in the spec for a single request.
87
- :type _host_index: int, optional
88
- :return: Returns the result object.
89
- """ # noqa: E501
90
-
91
- _param = self._api_communications_v2_news_get_serialize(
92
- var_from=var_from,
93
- from_id=from_id,
94
- _request_auth=_request_auth,
95
- _content_type=_content_type,
96
- _headers=_headers,
97
- _host_index=_host_index
98
- )
99
-
100
- _response_types_map: Dict[str, Optional[str]] = {
101
- '200': "ApiCommunicationsV2NewsGet200Response",
102
- '400': None,
103
- '401': "PingGet401Response",
104
- '429': "PingGet401Response",
105
- }
106
- response_data = self.api_client.call_api(
107
- *_param,
108
- _request_timeout=_request_timeout
109
- )
110
- response_data.read()
111
- return self.api_client.response_deserialize(
112
- response_data=response_data,
113
- response_types_map=_response_types_map,
114
- ).data
115
-
116
-
117
- @validate_call
118
- def api_communications_v2_news_get_with_http_info(
119
- self,
120
- var_from: Optional[date] = None,
121
- from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
122
- _request_timeout: Union[
123
- None,
124
- Annotated[StrictFloat, Field(gt=0)],
125
- Tuple[
126
- Annotated[StrictFloat, Field(gt=0)],
127
- Annotated[StrictFloat, Field(gt=0)]
128
- ]
129
- ] = None,
130
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
- _content_type: Optional[StrictStr] = None,
132
- _headers: Optional[Dict[StrictStr, Any]] = None,
133
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
134
- ) -> ApiResponse[ApiCommunicationsV2NewsGet200Response]:
135
- """Получение новостей портала продавцов
136
-
137
- Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
138
-
139
- :param var_from:
140
- :type var_from: date
141
- :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
142
- :type from_id: int
143
- :param _request_timeout: timeout setting for this request. If one
144
- number provided, it will be total request
145
- timeout. It can also be a pair (tuple) of
146
- (connection, read) timeouts.
147
- :type _request_timeout: int, tuple(int, int), optional
148
- :param _request_auth: set to override the auth_settings for an a single
149
- request; this effectively ignores the
150
- authentication in the spec for a single request.
151
- :type _request_auth: dict, optional
152
- :param _content_type: force content-type for the request.
153
- :type _content_type: str, Optional
154
- :param _headers: set to override the headers for a single
155
- request; this effectively ignores the headers
156
- in the spec for a single request.
157
- :type _headers: dict, optional
158
- :param _host_index: set to override the host_index for a single
159
- request; this effectively ignores the host_index
160
- in the spec for a single request.
161
- :type _host_index: int, optional
162
- :return: Returns the result object.
163
- """ # noqa: E501
164
-
165
- _param = self._api_communications_v2_news_get_serialize(
166
- var_from=var_from,
167
- from_id=from_id,
168
- _request_auth=_request_auth,
169
- _content_type=_content_type,
170
- _headers=_headers,
171
- _host_index=_host_index
172
- )
173
-
174
- _response_types_map: Dict[str, Optional[str]] = {
175
- '200': "ApiCommunicationsV2NewsGet200Response",
176
- '400': None,
177
- '401': "PingGet401Response",
178
- '429': "PingGet401Response",
179
- }
180
- response_data = self.api_client.call_api(
181
- *_param,
182
- _request_timeout=_request_timeout
183
- )
184
- response_data.read()
185
- return self.api_client.response_deserialize(
186
- response_data=response_data,
187
- response_types_map=_response_types_map,
188
- )
189
-
190
-
191
- @validate_call
192
- def api_communications_v2_news_get_without_preload_content(
193
- self,
194
- var_from: Optional[date] = None,
195
- from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
196
- _request_timeout: Union[
197
- None,
198
- Annotated[StrictFloat, Field(gt=0)],
199
- Tuple[
200
- Annotated[StrictFloat, Field(gt=0)],
201
- Annotated[StrictFloat, Field(gt=0)]
202
- ]
203
- ] = None,
204
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
- _content_type: Optional[StrictStr] = None,
206
- _headers: Optional[Dict[StrictStr, Any]] = None,
207
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
208
- ) -> RESTResponseType:
209
- """Получение новостей портала продавцов
210
-
211
- Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
212
-
213
- :param var_from:
214
- :type var_from: date
215
- :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
216
- :type from_id: int
217
- :param _request_timeout: timeout setting for this request. If one
218
- number provided, it will be total request
219
- timeout. It can also be a pair (tuple) of
220
- (connection, read) timeouts.
221
- :type _request_timeout: int, tuple(int, int), optional
222
- :param _request_auth: set to override the auth_settings for an a single
223
- request; this effectively ignores the
224
- authentication in the spec for a single request.
225
- :type _request_auth: dict, optional
226
- :param _content_type: force content-type for the request.
227
- :type _content_type: str, Optional
228
- :param _headers: set to override the headers for a single
229
- request; this effectively ignores the headers
230
- in the spec for a single request.
231
- :type _headers: dict, optional
232
- :param _host_index: set to override the host_index for a single
233
- request; this effectively ignores the host_index
234
- in the spec for a single request.
235
- :type _host_index: int, optional
236
- :return: Returns the result object.
237
- """ # noqa: E501
238
-
239
- _param = self._api_communications_v2_news_get_serialize(
240
- var_from=var_from,
241
- from_id=from_id,
242
- _request_auth=_request_auth,
243
- _content_type=_content_type,
244
- _headers=_headers,
245
- _host_index=_host_index
246
- )
247
-
248
- _response_types_map: Dict[str, Optional[str]] = {
249
- '200': "ApiCommunicationsV2NewsGet200Response",
250
- '400': None,
251
- '401': "PingGet401Response",
252
- '429': "PingGet401Response",
253
- }
254
- response_data = self.api_client.call_api(
255
- *_param,
256
- _request_timeout=_request_timeout
257
- )
258
- return response_data.response
259
-
260
-
261
- def _api_communications_v2_news_get_serialize(
262
- self,
263
- var_from,
264
- from_id,
265
- _request_auth,
266
- _content_type,
267
- _headers,
268
- _host_index,
269
- ) -> RequestSerialized:
270
-
271
- _hosts = [
272
- 'https://common-api.wildberries.ru'
273
- ]
274
- _host = _hosts[_host_index]
275
-
276
- _collection_formats: Dict[str, str] = {
277
- }
278
-
279
- _path_params: Dict[str, str] = {}
280
- _query_params: List[Tuple[str, str]] = []
281
- _header_params: Dict[str, Optional[str]] = _headers or {}
282
- _form_params: List[Tuple[str, str]] = []
283
- _files: Dict[
284
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
285
- ] = {}
286
- _body_params: Optional[bytes] = None
287
-
288
- # process the path parameters
289
- # process the query parameters
290
- if var_from is not None:
291
- if isinstance(var_from, date):
292
- _query_params.append(
293
- (
294
- 'from',
295
- var_from.strftime(
296
- self.api_client.configuration.date_format
297
- )
298
- )
299
- )
300
- else:
301
- _query_params.append(('from', var_from))
302
-
303
- if from_id is not None:
304
-
305
- _query_params.append(('fromID', from_id))
306
-
307
- # process the header parameters
308
- # process the form parameters
309
- # process the body parameter
310
-
311
-
312
- # set the HTTP header `Accept`
313
- if 'Accept' not in _header_params:
314
- _header_params['Accept'] = self.api_client.select_header_accept(
315
- [
316
- 'application/json'
317
- ]
318
- )
319
-
320
-
321
- # authentication setting
322
- _auth_settings: List[str] = [
323
- 'HeaderApiKey'
324
- ]
325
-
326
- return self.api_client.param_serialize(
327
- method='GET',
328
- resource_path='/api/communications/v2/news',
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
-
@@ -1,291 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Общее
5
-
6
- В этом разделе: - [общая информация о WB API](/openapi/api-information#tag/Vvedenie) - как [начать работу с WB API](/openapi/api-information#tag/Vvedenie/Kak-nachat-rabotu-s-API) - как [авторизоваться](/openapi/api-information#tag/Avtorizaciya) и [создавать токены](/openapi/api-information#tag/Avtorizaciya/Kak-sozdat-personalnyj-bazovyj-ili-testovyj-token) - основные [статус-коды ответов](/openapi/api-information#tag/Vvedenie/Status-kody-HTTP) - [лимиты запросов](/openapi/api-information#tag/Vvedenie/Limity-zaprosov) - как обратиться в [поддержку](/openapi/api-information#tag/Vvedenie/Podderzhka) С помощью методов этого раздела вы можете: - проверить [подключение к WB API](/openapi/api-information#tag/Proverka-podklyucheniya-k-WB-API/paths/~1ping/get) - получить [новости портала продавцов](/openapi/api-information#tag/API-novostej/paths/~1api~1communications~1v2~1news/get) - получить [информацию о продавце](/openapi/api-information#tag/Informaciya-o-prodavce/paths/~1api~1v1~1seller-info/get) - [управлять пользователями продавца](/openapi/api-information#tag/Upravlenie-polzovatelyami-prodavca)
7
-
8
- The version of the OpenAPI document: general
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
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 wildberries_sdk.general.models.ping_get200_response import PingGet200Response
20
-
21
- from wildberries_sdk.general.api_client import ApiClient, RequestSerialized
22
- from wildberries_sdk.general.api_response import ApiResponse
23
- from wildberries_sdk.general.rest import RESTResponseType
24
-
25
-
26
- class WBAPIApi:
27
- """NOTE: This class is auto generated by OpenAPI Generator
28
- Ref: https://openapi-generator.tech
29
-
30
- Do not edit the class manually.
31
- """
32
-
33
- def __init__(self, api_client=None) -> None:
34
- if api_client is None:
35
- api_client = ApiClient.get_default()
36
- self.api_client = api_client
37
-
38
-
39
- @validate_call
40
- def ping_get(
41
- self,
42
- _request_timeout: Union[
43
- None,
44
- Annotated[StrictFloat, Field(gt=0)],
45
- Tuple[
46
- Annotated[StrictFloat, Field(gt=0)],
47
- Annotated[StrictFloat, Field(gt=0)]
48
- ]
49
- ] = None,
50
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
- _content_type: Optional[StrictStr] = None,
52
- _headers: Optional[Dict[StrictStr, Any]] = None,
53
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
54
- ) -> PingGet200Response:
55
- """Проверка подключения
56
-
57
- Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
58
-
59
- :param _request_timeout: timeout setting for this request. If one
60
- number provided, it will be total request
61
- timeout. It can also be a pair (tuple) of
62
- (connection, read) timeouts.
63
- :type _request_timeout: int, tuple(int, int), optional
64
- :param _request_auth: set to override the auth_settings for an a single
65
- request; this effectively ignores the
66
- authentication in the spec for a single request.
67
- :type _request_auth: dict, optional
68
- :param _content_type: force content-type for the request.
69
- :type _content_type: str, Optional
70
- :param _headers: set to override the headers for a single
71
- request; this effectively ignores the headers
72
- in the spec for a single request.
73
- :type _headers: dict, optional
74
- :param _host_index: set to override the host_index for a single
75
- request; this effectively ignores the host_index
76
- in the spec for a single request.
77
- :type _host_index: int, optional
78
- :return: Returns the result object.
79
- """ # noqa: E501
80
-
81
- _param = self._ping_get_serialize(
82
- _request_auth=_request_auth,
83
- _content_type=_content_type,
84
- _headers=_headers,
85
- _host_index=_host_index
86
- )
87
-
88
- _response_types_map: Dict[str, Optional[str]] = {
89
- '200': "PingGet200Response",
90
- '401': "PingGet401Response",
91
- '429': "PingGet401Response",
92
- }
93
- response_data = self.api_client.call_api(
94
- *_param,
95
- _request_timeout=_request_timeout
96
- )
97
- response_data.read()
98
- return self.api_client.response_deserialize(
99
- response_data=response_data,
100
- response_types_map=_response_types_map,
101
- ).data
102
-
103
-
104
- @validate_call
105
- def ping_get_with_http_info(
106
- self,
107
- _request_timeout: Union[
108
- None,
109
- Annotated[StrictFloat, Field(gt=0)],
110
- Tuple[
111
- Annotated[StrictFloat, Field(gt=0)],
112
- Annotated[StrictFloat, Field(gt=0)]
113
- ]
114
- ] = None,
115
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
116
- _content_type: Optional[StrictStr] = None,
117
- _headers: Optional[Dict[StrictStr, Any]] = None,
118
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
119
- ) -> ApiResponse[PingGet200Response]:
120
- """Проверка подключения
121
-
122
- Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
123
-
124
- :param _request_timeout: timeout setting for this request. If one
125
- number provided, it will be total request
126
- timeout. It can also be a pair (tuple) of
127
- (connection, read) timeouts.
128
- :type _request_timeout: int, tuple(int, int), optional
129
- :param _request_auth: set to override the auth_settings for an a single
130
- request; this effectively ignores the
131
- authentication in the spec for a single request.
132
- :type _request_auth: dict, optional
133
- :param _content_type: force content-type for the request.
134
- :type _content_type: str, Optional
135
- :param _headers: set to override the headers for a single
136
- request; this effectively ignores the headers
137
- in the spec for a single request.
138
- :type _headers: dict, optional
139
- :param _host_index: set to override the host_index for a single
140
- request; this effectively ignores the host_index
141
- in the spec for a single request.
142
- :type _host_index: int, optional
143
- :return: Returns the result object.
144
- """ # noqa: E501
145
-
146
- _param = self._ping_get_serialize(
147
- _request_auth=_request_auth,
148
- _content_type=_content_type,
149
- _headers=_headers,
150
- _host_index=_host_index
151
- )
152
-
153
- _response_types_map: Dict[str, Optional[str]] = {
154
- '200': "PingGet200Response",
155
- '401': "PingGet401Response",
156
- '429': "PingGet401Response",
157
- }
158
- response_data = self.api_client.call_api(
159
- *_param,
160
- _request_timeout=_request_timeout
161
- )
162
- response_data.read()
163
- return self.api_client.response_deserialize(
164
- response_data=response_data,
165
- response_types_map=_response_types_map,
166
- )
167
-
168
-
169
- @validate_call
170
- def ping_get_without_preload_content(
171
- self,
172
- _request_timeout: Union[
173
- None,
174
- Annotated[StrictFloat, Field(gt=0)],
175
- Tuple[
176
- Annotated[StrictFloat, Field(gt=0)],
177
- Annotated[StrictFloat, Field(gt=0)]
178
- ]
179
- ] = None,
180
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
181
- _content_type: Optional[StrictStr] = None,
182
- _headers: Optional[Dict[StrictStr, Any]] = None,
183
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
184
- ) -> RESTResponseType:
185
- """Проверка подключения
186
-
187
- Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
188
-
189
- :param _request_timeout: timeout setting for this request. If one
190
- number provided, it will be total request
191
- timeout. It can also be a pair (tuple) of
192
- (connection, read) timeouts.
193
- :type _request_timeout: int, tuple(int, int), optional
194
- :param _request_auth: set to override the auth_settings for an a single
195
- request; this effectively ignores the
196
- authentication in the spec for a single request.
197
- :type _request_auth: dict, optional
198
- :param _content_type: force content-type for the request.
199
- :type _content_type: str, Optional
200
- :param _headers: set to override the headers for a single
201
- request; this effectively ignores the headers
202
- in the spec for a single request.
203
- :type _headers: dict, optional
204
- :param _host_index: set to override the host_index for a single
205
- request; this effectively ignores the host_index
206
- in the spec for a single request.
207
- :type _host_index: int, optional
208
- :return: Returns the result object.
209
- """ # noqa: E501
210
-
211
- _param = self._ping_get_serialize(
212
- _request_auth=_request_auth,
213
- _content_type=_content_type,
214
- _headers=_headers,
215
- _host_index=_host_index
216
- )
217
-
218
- _response_types_map: Dict[str, Optional[str]] = {
219
- '200': "PingGet200Response",
220
- '401': "PingGet401Response",
221
- '429': "PingGet401Response",
222
- }
223
- response_data = self.api_client.call_api(
224
- *_param,
225
- _request_timeout=_request_timeout
226
- )
227
- return response_data.response
228
-
229
-
230
- def _ping_get_serialize(
231
- self,
232
- _request_auth,
233
- _content_type,
234
- _headers,
235
- _host_index,
236
- ) -> RequestSerialized:
237
-
238
- _hosts = [
239
- 'https://common-api.wildberries.ru'
240
- ]
241
- _host = _hosts[_host_index]
242
-
243
- _collection_formats: Dict[str, str] = {
244
- }
245
-
246
- _path_params: Dict[str, str] = {}
247
- _query_params: List[Tuple[str, str]] = []
248
- _header_params: Dict[str, Optional[str]] = _headers or {}
249
- _form_params: List[Tuple[str, str]] = []
250
- _files: Dict[
251
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
252
- ] = {}
253
- _body_params: Optional[bytes] = None
254
-
255
- # process the path parameters
256
- # process the query parameters
257
- # process the header parameters
258
- # process the form parameters
259
- # process the body parameter
260
-
261
-
262
- # set the HTTP header `Accept`
263
- if 'Accept' not in _header_params:
264
- _header_params['Accept'] = self.api_client.select_header_accept(
265
- [
266
- 'application/json'
267
- ]
268
- )
269
-
270
-
271
- # authentication setting
272
- _auth_settings: List[str] = [
273
- 'HeaderApiKey'
274
- ]
275
-
276
- return self.api_client.param_serialize(
277
- method='GET',
278
- resource_path='/ping',
279
- path_params=_path_params,
280
- query_params=_query_params,
281
- header_params=_header_params,
282
- body=_body_params,
283
- post_params=_form_params,
284
- files=_files,
285
- auth_settings=_auth_settings,
286
- collection_formats=_collection_formats,
287
- _host=_host,
288
- _request_auth=_request_auth
289
- )
290
-
291
-