aligate 2.1.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.
- aligate-2.1.0/PKG-INFO +191 -0
- aligate-2.1.0/README.md +173 -0
- aligate-2.1.0/aligate/__init__.py +140 -0
- aligate-2.1.0/aligate/api/__init__.py +5 -0
- aligate-2.1.0/aligate/api/default_api.py +2616 -0
- aligate-2.1.0/aligate/api_client.py +804 -0
- aligate-2.1.0/aligate/api_response.py +21 -0
- aligate-2.1.0/aligate/configuration.py +596 -0
- aligate-2.1.0/aligate/exceptions.py +218 -0
- aligate-2.1.0/aligate/models/__init__.py +62 -0
- aligate-2.1.0/aligate/models/configuration_price.py +94 -0
- aligate-2.1.0/aligate/models/configuration_property.py +94 -0
- aligate-2.1.0/aligate/models/coupon.py +111 -0
- aligate-2.1.0/aligate/models/coupon_meta.py +94 -0
- aligate-2.1.0/aligate/models/coupon_settings.py +94 -0
- aligate-2.1.0/aligate/models/coupons_parse_response.py +108 -0
- aligate-2.1.0/aligate/models/error.py +90 -0
- aligate-2.1.0/aligate/models/health_check200_response.py +88 -0
- aligate-2.1.0/aligate/models/image_search_meta.py +94 -0
- aligate-2.1.0/aligate/models/image_search_parse_response.py +104 -0
- aligate-2.1.0/aligate/models/image_search_request.py +96 -0
- aligate-2.1.0/aligate/models/image_search_settings.py +94 -0
- aligate-2.1.0/aligate/models/parse_meta.py +116 -0
- aligate-2.1.0/aligate/models/parse_response.py +104 -0
- aligate-2.1.0/aligate/models/parse_settings.py +94 -0
- aligate-2.1.0/aligate/models/price.py +106 -0
- aligate-2.1.0/aligate/models/product.py +176 -0
- aligate-2.1.0/aligate/models/product_configuration.py +112 -0
- aligate-2.1.0/aligate/models/product_description.py +92 -0
- aligate-2.1.0/aligate/models/product_seller.py +98 -0
- aligate-2.1.0/aligate/models/product_video.py +92 -0
- aligate-2.1.0/aligate/models/rating_breakdown.py +102 -0
- aligate-2.1.0/aligate/models/review.py +143 -0
- aligate-2.1.0/aligate/models/review_buyer.py +94 -0
- aligate-2.1.0/aligate/models/review_content.py +92 -0
- aligate-2.1.0/aligate/models/review_filter_stat.py +90 -0
- aligate-2.1.0/aligate/models/review_label.py +90 -0
- aligate-2.1.0/aligate/models/reviews_meta.py +94 -0
- aligate-2.1.0/aligate/models/reviews_parse_response.py +104 -0
- aligate-2.1.0/aligate/models/reviews_result.py +131 -0
- aligate-2.1.0/aligate/models/reviews_settings.py +100 -0
- aligate-2.1.0/aligate/models/search_category.py +90 -0
- aligate-2.1.0/aligate/models/search_meta.py +94 -0
- aligate-2.1.0/aligate/models/search_parse_response.py +104 -0
- aligate-2.1.0/aligate/models/search_result.py +123 -0
- aligate-2.1.0/aligate/models/search_settings.py +96 -0
- aligate-2.1.0/aligate/models/seller_item.py +155 -0
- aligate-2.1.0/aligate/models/seller_meta.py +94 -0
- aligate-2.1.0/aligate/models/seller_parse_response.py +104 -0
- aligate-2.1.0/aligate/models/seller_products_meta.py +94 -0
- aligate-2.1.0/aligate/models/seller_products_parse_response.py +104 -0
- aligate-2.1.0/aligate/models/seller_products_result.py +113 -0
- aligate-2.1.0/aligate/models/seller_products_settings.py +96 -0
- aligate-2.1.0/aligate/models/seller_settings.py +90 -0
- aligate-2.1.0/aligate/models/shipping_method.py +108 -0
- aligate-2.1.0/aligate/models/store_category.py +103 -0
- aligate-2.1.0/aligate/py.typed +0 -0
- aligate-2.1.0/aligate/rest.py +263 -0
- aligate-2.1.0/aligate.egg-info/PKG-INFO +191 -0
- aligate-2.1.0/aligate.egg-info/SOURCES.txt +112 -0
- aligate-2.1.0/aligate.egg-info/dependency_links.txt +1 -0
- aligate-2.1.0/aligate.egg-info/requires.txt +4 -0
- aligate-2.1.0/aligate.egg-info/top_level.txt +1 -0
- aligate-2.1.0/pyproject.toml +94 -0
- aligate-2.1.0/setup.cfg +7 -0
- aligate-2.1.0/setup.py +47 -0
- aligate-2.1.0/test/test_configuration_price.py +54 -0
- aligate-2.1.0/test/test_configuration_property.py +54 -0
- aligate-2.1.0/test/test_coupon.py +64 -0
- aligate-2.1.0/test/test_coupon_meta.py +54 -0
- aligate-2.1.0/test/test_coupon_settings.py +54 -0
- aligate-2.1.0/test/test_coupons_parse_response.py +77 -0
- aligate-2.1.0/test/test_default_api.py +87 -0
- aligate-2.1.0/test/test_error.py +52 -0
- aligate-2.1.0/test/test_health_check200_response.py +51 -0
- aligate-2.1.0/test/test_image_search_meta.py +54 -0
- aligate-2.1.0/test/test_image_search_parse_response.py +167 -0
- aligate-2.1.0/test/test_image_search_request.py +58 -0
- aligate-2.1.0/test/test_image_search_settings.py +54 -0
- aligate-2.1.0/test/test_parse_meta.py +60 -0
- aligate-2.1.0/test/test_parse_response.py +157 -0
- aligate-2.1.0/test/test_parse_settings.py +54 -0
- aligate-2.1.0/test/test_price.py +60 -0
- aligate-2.1.0/test/test_product.py +148 -0
- aligate-2.1.0/test/test_product_configuration.py +67 -0
- aligate-2.1.0/test/test_product_description.py +53 -0
- aligate-2.1.0/test/test_product_seller.py +56 -0
- aligate-2.1.0/test/test_product_video.py +53 -0
- aligate-2.1.0/test/test_rating_breakdown.py +58 -0
- aligate-2.1.0/test/test_review.py +88 -0
- aligate-2.1.0/test/test_review_buyer.py +54 -0
- aligate-2.1.0/test/test_review_content.py +53 -0
- aligate-2.1.0/test/test_review_filter_stat.py +52 -0
- aligate-2.1.0/test/test_review_label.py +52 -0
- aligate-2.1.0/test/test_reviews_meta.py +54 -0
- aligate-2.1.0/test/test_reviews_parse_response.py +122 -0
- aligate-2.1.0/test/test_reviews_result.py +108 -0
- aligate-2.1.0/test/test_reviews_settings.py +57 -0
- aligate-2.1.0/test/test_search_category.py +52 -0
- aligate-2.1.0/test/test_search_meta.py +54 -0
- aligate-2.1.0/test/test_search_parse_response.py +168 -0
- aligate-2.1.0/test/test_search_result.py +156 -0
- aligate-2.1.0/test/test_search_settings.py +55 -0
- aligate-2.1.0/test/test_seller_item.py +86 -0
- aligate-2.1.0/test/test_seller_meta.py +54 -0
- aligate-2.1.0/test/test_seller_parse_response.py +95 -0
- aligate-2.1.0/test/test_seller_products_meta.py +54 -0
- aligate-2.1.0/test/test_seller_products_parse_response.py +163 -0
- aligate-2.1.0/test/test_seller_products_result.py +151 -0
- aligate-2.1.0/test/test_seller_products_settings.py +55 -0
- aligate-2.1.0/test/test_seller_settings.py +52 -0
- aligate-2.1.0/test/test_shipping_method.py +61 -0
- aligate-2.1.0/test/test_store_category.py +65 -0
aligate-2.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aligate
|
|
3
|
+
Version: 2.1.0
|
|
4
|
+
Summary: AliExpress Parser API
|
|
5
|
+
Home-page: https://github.com/aligate-io/aliexpress-api
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: OpenAPI Generator Community <team@openapitools.org>
|
|
8
|
+
Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
9
|
+
Keywords: OpenAPI,OpenAPI-Generator,AliExpress Parser API
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
13
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
14
|
+
Requires-Dist: pydantic>=2.11
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: home-page
|
|
18
|
+
|
|
19
|
+
# aligate
|
|
20
|
+
Real-time AliExpress data parser covering products, product reviews, sellers, store
|
|
21
|
+
coupons, a seller's product catalog, and product search by text or image.
|
|
22
|
+
Products: pricing, stock status, shipping options, seller information, product
|
|
23
|
+
configurations (SKUs), and more - scoped to a specific country and currency.
|
|
24
|
+
Reviews: customer ratings and feedback for a product.
|
|
25
|
+
Sellers: full store profile with ratings, feedback, and categories.
|
|
26
|
+
Coupons: active seller coupon codes with discounts, thresholds, budgets, and expiry.
|
|
27
|
+
Seller products: a store's product catalog, paginated and best-selling first.
|
|
28
|
+
Search: find products by keyword or by uploading an image, returning paginated product
|
|
29
|
+
results with their categories.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
33
|
+
|
|
34
|
+
- API version: 2.1
|
|
35
|
+
- Package version: 2.1.0
|
|
36
|
+
- Generator version: 7.23.0
|
|
37
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
38
|
+
|
|
39
|
+
## Requirements.
|
|
40
|
+
|
|
41
|
+
Python 3.10+
|
|
42
|
+
|
|
43
|
+
## Installation & Usage
|
|
44
|
+
### pip install
|
|
45
|
+
|
|
46
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
50
|
+
```
|
|
51
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
52
|
+
|
|
53
|
+
Then import the package:
|
|
54
|
+
```python
|
|
55
|
+
import aligate
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Setuptools
|
|
59
|
+
|
|
60
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
python setup.py install --user
|
|
64
|
+
```
|
|
65
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
66
|
+
|
|
67
|
+
Then import the package:
|
|
68
|
+
```python
|
|
69
|
+
import aligate
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Tests
|
|
73
|
+
|
|
74
|
+
Execute `pytest` to run the tests.
|
|
75
|
+
|
|
76
|
+
## Getting Started
|
|
77
|
+
|
|
78
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
|
|
82
|
+
import aligate
|
|
83
|
+
from aligate.rest import ApiException
|
|
84
|
+
from pprint import pprint
|
|
85
|
+
|
|
86
|
+
# Defining the host is optional and defaults to https://aligate-aliexpress-data-api.p.rapidapi.com
|
|
87
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
88
|
+
configuration = aligate.Configuration(
|
|
89
|
+
host = "https://aligate-aliexpress-data-api.p.rapidapi.com"
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# Enter a context with an instance of the API client
|
|
95
|
+
with aligate.ApiClient(configuration) as api_client:
|
|
96
|
+
# Create an instance of the API class
|
|
97
|
+
api_instance = aligate.DefaultApi(api_client)
|
|
98
|
+
product_id = 1005004530469845 # int | AliExpress product ID, taken from the product page URL.
|
|
99
|
+
country = 'PL' # str | Country code (ISO 3166-1 alpha-2) used for pricing and shipping eligibility.
|
|
100
|
+
currency = 'PLN' # str | Currency code (ISO 4217) for the returned prices.
|
|
101
|
+
locale = en_US # str | Response language locale. (optional) (default to en_US)
|
|
102
|
+
with_welcome_discount = False # bool | Apply the new-buyer welcome discount to the returned price. (optional) (default to False)
|
|
103
|
+
with_description = False # bool | Fetch the full product description (formatted HTML, plain text, and image gallery), returned in the `description` field. Note: enabling this adds approximately 600-750 ms to the response time. (optional) (default to False)
|
|
104
|
+
|
|
105
|
+
try:
|
|
106
|
+
# Get Product Info
|
|
107
|
+
api_response = api_instance.get_product_info(product_id, country, currency, locale=locale, with_welcome_discount=with_welcome_discount, with_description=with_description)
|
|
108
|
+
print("The response of DefaultApi->get_product_info:\n")
|
|
109
|
+
pprint(api_response)
|
|
110
|
+
except ApiException as e:
|
|
111
|
+
print("Exception when calling DefaultApi->get_product_info: %s\n" % e)
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Documentation for API Endpoints
|
|
116
|
+
|
|
117
|
+
All URIs are relative to *https://aligate-aliexpress-data-api.p.rapidapi.com*
|
|
118
|
+
|
|
119
|
+
Class | Method | HTTP request | Description
|
|
120
|
+
------------ | ------------- | ------------- | -------------
|
|
121
|
+
*DefaultApi* | [**get_product_info**](docs/DefaultApi.md#get_product_info) | **GET** /api/v2/product | Get Product Info
|
|
122
|
+
*DefaultApi* | [**get_product_reviews**](docs/DefaultApi.md#get_product_reviews) | **GET** /api/v2/product/reviews | Get Product Reviews
|
|
123
|
+
*DefaultApi* | [**get_seller_coupons**](docs/DefaultApi.md#get_seller_coupons) | **GET** /api/v2/seller/coupons | Get Seller Coupons
|
|
124
|
+
*DefaultApi* | [**get_seller_info**](docs/DefaultApi.md#get_seller_info) | **GET** /api/v2/seller | Get Seller Info
|
|
125
|
+
*DefaultApi* | [**get_seller_products**](docs/DefaultApi.md#get_seller_products) | **GET** /api/v2/seller/products | Get Seller Products
|
|
126
|
+
*DefaultApi* | [**health_check**](docs/DefaultApi.md#health_check) | **GET** /api/v2/health | Health check
|
|
127
|
+
*DefaultApi* | [**search_by_image**](docs/DefaultApi.md#search_by_image) | **POST** /api/v2/search/image | Search By Image
|
|
128
|
+
*DefaultApi* | [**search_by_text**](docs/DefaultApi.md#search_by_text) | **GET** /api/v2/search/text | Search By Text
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
## Documentation For Models
|
|
132
|
+
|
|
133
|
+
- [ConfigurationPrice](docs/ConfigurationPrice.md)
|
|
134
|
+
- [ConfigurationProperty](docs/ConfigurationProperty.md)
|
|
135
|
+
- [Coupon](docs/Coupon.md)
|
|
136
|
+
- [CouponMeta](docs/CouponMeta.md)
|
|
137
|
+
- [CouponSettings](docs/CouponSettings.md)
|
|
138
|
+
- [CouponsParseResponse](docs/CouponsParseResponse.md)
|
|
139
|
+
- [Error](docs/Error.md)
|
|
140
|
+
- [HealthCheck200Response](docs/HealthCheck200Response.md)
|
|
141
|
+
- [ImageSearchMeta](docs/ImageSearchMeta.md)
|
|
142
|
+
- [ImageSearchParseResponse](docs/ImageSearchParseResponse.md)
|
|
143
|
+
- [ImageSearchRequest](docs/ImageSearchRequest.md)
|
|
144
|
+
- [ImageSearchSettings](docs/ImageSearchSettings.md)
|
|
145
|
+
- [ParseMeta](docs/ParseMeta.md)
|
|
146
|
+
- [ParseResponse](docs/ParseResponse.md)
|
|
147
|
+
- [ParseSettings](docs/ParseSettings.md)
|
|
148
|
+
- [Price](docs/Price.md)
|
|
149
|
+
- [Product](docs/Product.md)
|
|
150
|
+
- [ProductConfiguration](docs/ProductConfiguration.md)
|
|
151
|
+
- [ProductDescription](docs/ProductDescription.md)
|
|
152
|
+
- [ProductSeller](docs/ProductSeller.md)
|
|
153
|
+
- [ProductVideo](docs/ProductVideo.md)
|
|
154
|
+
- [RatingBreakdown](docs/RatingBreakdown.md)
|
|
155
|
+
- [Review](docs/Review.md)
|
|
156
|
+
- [ReviewBuyer](docs/ReviewBuyer.md)
|
|
157
|
+
- [ReviewContent](docs/ReviewContent.md)
|
|
158
|
+
- [ReviewFilterStat](docs/ReviewFilterStat.md)
|
|
159
|
+
- [ReviewLabel](docs/ReviewLabel.md)
|
|
160
|
+
- [ReviewsMeta](docs/ReviewsMeta.md)
|
|
161
|
+
- [ReviewsParseResponse](docs/ReviewsParseResponse.md)
|
|
162
|
+
- [ReviewsResult](docs/ReviewsResult.md)
|
|
163
|
+
- [ReviewsSettings](docs/ReviewsSettings.md)
|
|
164
|
+
- [SearchCategory](docs/SearchCategory.md)
|
|
165
|
+
- [SearchMeta](docs/SearchMeta.md)
|
|
166
|
+
- [SearchParseResponse](docs/SearchParseResponse.md)
|
|
167
|
+
- [SearchResult](docs/SearchResult.md)
|
|
168
|
+
- [SearchSettings](docs/SearchSettings.md)
|
|
169
|
+
- [SellerItem](docs/SellerItem.md)
|
|
170
|
+
- [SellerMeta](docs/SellerMeta.md)
|
|
171
|
+
- [SellerParseResponse](docs/SellerParseResponse.md)
|
|
172
|
+
- [SellerProductsMeta](docs/SellerProductsMeta.md)
|
|
173
|
+
- [SellerProductsParseResponse](docs/SellerProductsParseResponse.md)
|
|
174
|
+
- [SellerProductsResult](docs/SellerProductsResult.md)
|
|
175
|
+
- [SellerProductsSettings](docs/SellerProductsSettings.md)
|
|
176
|
+
- [SellerSettings](docs/SellerSettings.md)
|
|
177
|
+
- [ShippingMethod](docs/ShippingMethod.md)
|
|
178
|
+
- [StoreCategory](docs/StoreCategory.md)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<a id="documentation-for-authorization"></a>
|
|
182
|
+
## Documentation For Authorization
|
|
183
|
+
|
|
184
|
+
Endpoints do not require authorization.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## Author
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
aligate-2.1.0/README.md
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# aligate
|
|
2
|
+
Real-time AliExpress data parser covering products, product reviews, sellers, store
|
|
3
|
+
coupons, a seller's product catalog, and product search by text or image.
|
|
4
|
+
Products: pricing, stock status, shipping options, seller information, product
|
|
5
|
+
configurations (SKUs), and more - scoped to a specific country and currency.
|
|
6
|
+
Reviews: customer ratings and feedback for a product.
|
|
7
|
+
Sellers: full store profile with ratings, feedback, and categories.
|
|
8
|
+
Coupons: active seller coupon codes with discounts, thresholds, budgets, and expiry.
|
|
9
|
+
Seller products: a store's product catalog, paginated and best-selling first.
|
|
10
|
+
Search: find products by keyword or by uploading an image, returning paginated product
|
|
11
|
+
results with their categories.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
15
|
+
|
|
16
|
+
- API version: 2.1
|
|
17
|
+
- Package version: 2.1.0
|
|
18
|
+
- Generator version: 7.23.0
|
|
19
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
20
|
+
|
|
21
|
+
## Requirements.
|
|
22
|
+
|
|
23
|
+
Python 3.10+
|
|
24
|
+
|
|
25
|
+
## Installation & Usage
|
|
26
|
+
### pip install
|
|
27
|
+
|
|
28
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
32
|
+
```
|
|
33
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
34
|
+
|
|
35
|
+
Then import the package:
|
|
36
|
+
```python
|
|
37
|
+
import aligate
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Setuptools
|
|
41
|
+
|
|
42
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
python setup.py install --user
|
|
46
|
+
```
|
|
47
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
48
|
+
|
|
49
|
+
Then import the package:
|
|
50
|
+
```python
|
|
51
|
+
import aligate
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Tests
|
|
55
|
+
|
|
56
|
+
Execute `pytest` to run the tests.
|
|
57
|
+
|
|
58
|
+
## Getting Started
|
|
59
|
+
|
|
60
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
|
|
64
|
+
import aligate
|
|
65
|
+
from aligate.rest import ApiException
|
|
66
|
+
from pprint import pprint
|
|
67
|
+
|
|
68
|
+
# Defining the host is optional and defaults to https://aligate-aliexpress-data-api.p.rapidapi.com
|
|
69
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
70
|
+
configuration = aligate.Configuration(
|
|
71
|
+
host = "https://aligate-aliexpress-data-api.p.rapidapi.com"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Enter a context with an instance of the API client
|
|
77
|
+
with aligate.ApiClient(configuration) as api_client:
|
|
78
|
+
# Create an instance of the API class
|
|
79
|
+
api_instance = aligate.DefaultApi(api_client)
|
|
80
|
+
product_id = 1005004530469845 # int | AliExpress product ID, taken from the product page URL.
|
|
81
|
+
country = 'PL' # str | Country code (ISO 3166-1 alpha-2) used for pricing and shipping eligibility.
|
|
82
|
+
currency = 'PLN' # str | Currency code (ISO 4217) for the returned prices.
|
|
83
|
+
locale = en_US # str | Response language locale. (optional) (default to en_US)
|
|
84
|
+
with_welcome_discount = False # bool | Apply the new-buyer welcome discount to the returned price. (optional) (default to False)
|
|
85
|
+
with_description = False # bool | Fetch the full product description (formatted HTML, plain text, and image gallery), returned in the `description` field. Note: enabling this adds approximately 600-750 ms to the response time. (optional) (default to False)
|
|
86
|
+
|
|
87
|
+
try:
|
|
88
|
+
# Get Product Info
|
|
89
|
+
api_response = api_instance.get_product_info(product_id, country, currency, locale=locale, with_welcome_discount=with_welcome_discount, with_description=with_description)
|
|
90
|
+
print("The response of DefaultApi->get_product_info:\n")
|
|
91
|
+
pprint(api_response)
|
|
92
|
+
except ApiException as e:
|
|
93
|
+
print("Exception when calling DefaultApi->get_product_info: %s\n" % e)
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Documentation for API Endpoints
|
|
98
|
+
|
|
99
|
+
All URIs are relative to *https://aligate-aliexpress-data-api.p.rapidapi.com*
|
|
100
|
+
|
|
101
|
+
Class | Method | HTTP request | Description
|
|
102
|
+
------------ | ------------- | ------------- | -------------
|
|
103
|
+
*DefaultApi* | [**get_product_info**](docs/DefaultApi.md#get_product_info) | **GET** /api/v2/product | Get Product Info
|
|
104
|
+
*DefaultApi* | [**get_product_reviews**](docs/DefaultApi.md#get_product_reviews) | **GET** /api/v2/product/reviews | Get Product Reviews
|
|
105
|
+
*DefaultApi* | [**get_seller_coupons**](docs/DefaultApi.md#get_seller_coupons) | **GET** /api/v2/seller/coupons | Get Seller Coupons
|
|
106
|
+
*DefaultApi* | [**get_seller_info**](docs/DefaultApi.md#get_seller_info) | **GET** /api/v2/seller | Get Seller Info
|
|
107
|
+
*DefaultApi* | [**get_seller_products**](docs/DefaultApi.md#get_seller_products) | **GET** /api/v2/seller/products | Get Seller Products
|
|
108
|
+
*DefaultApi* | [**health_check**](docs/DefaultApi.md#health_check) | **GET** /api/v2/health | Health check
|
|
109
|
+
*DefaultApi* | [**search_by_image**](docs/DefaultApi.md#search_by_image) | **POST** /api/v2/search/image | Search By Image
|
|
110
|
+
*DefaultApi* | [**search_by_text**](docs/DefaultApi.md#search_by_text) | **GET** /api/v2/search/text | Search By Text
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Documentation For Models
|
|
114
|
+
|
|
115
|
+
- [ConfigurationPrice](docs/ConfigurationPrice.md)
|
|
116
|
+
- [ConfigurationProperty](docs/ConfigurationProperty.md)
|
|
117
|
+
- [Coupon](docs/Coupon.md)
|
|
118
|
+
- [CouponMeta](docs/CouponMeta.md)
|
|
119
|
+
- [CouponSettings](docs/CouponSettings.md)
|
|
120
|
+
- [CouponsParseResponse](docs/CouponsParseResponse.md)
|
|
121
|
+
- [Error](docs/Error.md)
|
|
122
|
+
- [HealthCheck200Response](docs/HealthCheck200Response.md)
|
|
123
|
+
- [ImageSearchMeta](docs/ImageSearchMeta.md)
|
|
124
|
+
- [ImageSearchParseResponse](docs/ImageSearchParseResponse.md)
|
|
125
|
+
- [ImageSearchRequest](docs/ImageSearchRequest.md)
|
|
126
|
+
- [ImageSearchSettings](docs/ImageSearchSettings.md)
|
|
127
|
+
- [ParseMeta](docs/ParseMeta.md)
|
|
128
|
+
- [ParseResponse](docs/ParseResponse.md)
|
|
129
|
+
- [ParseSettings](docs/ParseSettings.md)
|
|
130
|
+
- [Price](docs/Price.md)
|
|
131
|
+
- [Product](docs/Product.md)
|
|
132
|
+
- [ProductConfiguration](docs/ProductConfiguration.md)
|
|
133
|
+
- [ProductDescription](docs/ProductDescription.md)
|
|
134
|
+
- [ProductSeller](docs/ProductSeller.md)
|
|
135
|
+
- [ProductVideo](docs/ProductVideo.md)
|
|
136
|
+
- [RatingBreakdown](docs/RatingBreakdown.md)
|
|
137
|
+
- [Review](docs/Review.md)
|
|
138
|
+
- [ReviewBuyer](docs/ReviewBuyer.md)
|
|
139
|
+
- [ReviewContent](docs/ReviewContent.md)
|
|
140
|
+
- [ReviewFilterStat](docs/ReviewFilterStat.md)
|
|
141
|
+
- [ReviewLabel](docs/ReviewLabel.md)
|
|
142
|
+
- [ReviewsMeta](docs/ReviewsMeta.md)
|
|
143
|
+
- [ReviewsParseResponse](docs/ReviewsParseResponse.md)
|
|
144
|
+
- [ReviewsResult](docs/ReviewsResult.md)
|
|
145
|
+
- [ReviewsSettings](docs/ReviewsSettings.md)
|
|
146
|
+
- [SearchCategory](docs/SearchCategory.md)
|
|
147
|
+
- [SearchMeta](docs/SearchMeta.md)
|
|
148
|
+
- [SearchParseResponse](docs/SearchParseResponse.md)
|
|
149
|
+
- [SearchResult](docs/SearchResult.md)
|
|
150
|
+
- [SearchSettings](docs/SearchSettings.md)
|
|
151
|
+
- [SellerItem](docs/SellerItem.md)
|
|
152
|
+
- [SellerMeta](docs/SellerMeta.md)
|
|
153
|
+
- [SellerParseResponse](docs/SellerParseResponse.md)
|
|
154
|
+
- [SellerProductsMeta](docs/SellerProductsMeta.md)
|
|
155
|
+
- [SellerProductsParseResponse](docs/SellerProductsParseResponse.md)
|
|
156
|
+
- [SellerProductsResult](docs/SellerProductsResult.md)
|
|
157
|
+
- [SellerProductsSettings](docs/SellerProductsSettings.md)
|
|
158
|
+
- [SellerSettings](docs/SellerSettings.md)
|
|
159
|
+
- [ShippingMethod](docs/ShippingMethod.md)
|
|
160
|
+
- [StoreCategory](docs/StoreCategory.md)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<a id="documentation-for-authorization"></a>
|
|
164
|
+
## Documentation For Authorization
|
|
165
|
+
|
|
166
|
+
Endpoints do not require authorization.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## Author
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
AliExpress Parser API
|
|
7
|
+
|
|
8
|
+
Real-time AliExpress data parser covering products, product reviews, sellers, store coupons, a seller's product catalog, and product search by text or image. Products: pricing, stock status, shipping options, seller information, product configurations (SKUs), and more - scoped to a specific country and currency. Reviews: customer ratings and feedback for a product. Sellers: full store profile with ratings, feedback, and categories. Coupons: active seller coupon codes with discounts, thresholds, budgets, and expiry. Seller products: a store's product catalog, paginated and best-selling first. Search: find products by keyword or by uploading an image, returning paginated product results with their categories.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 2.1
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "2.1.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"DefaultApi",
|
|
22
|
+
"ApiResponse",
|
|
23
|
+
"ApiClient",
|
|
24
|
+
"Configuration",
|
|
25
|
+
"OpenApiException",
|
|
26
|
+
"ApiTypeError",
|
|
27
|
+
"ApiValueError",
|
|
28
|
+
"ApiKeyError",
|
|
29
|
+
"ApiAttributeError",
|
|
30
|
+
"ApiException",
|
|
31
|
+
"ConfigurationPrice",
|
|
32
|
+
"ConfigurationProperty",
|
|
33
|
+
"Coupon",
|
|
34
|
+
"CouponMeta",
|
|
35
|
+
"CouponSettings",
|
|
36
|
+
"CouponsParseResponse",
|
|
37
|
+
"Error",
|
|
38
|
+
"HealthCheck200Response",
|
|
39
|
+
"ImageSearchMeta",
|
|
40
|
+
"ImageSearchParseResponse",
|
|
41
|
+
"ImageSearchRequest",
|
|
42
|
+
"ImageSearchSettings",
|
|
43
|
+
"ParseMeta",
|
|
44
|
+
"ParseResponse",
|
|
45
|
+
"ParseSettings",
|
|
46
|
+
"Price",
|
|
47
|
+
"Product",
|
|
48
|
+
"ProductConfiguration",
|
|
49
|
+
"ProductDescription",
|
|
50
|
+
"ProductSeller",
|
|
51
|
+
"ProductVideo",
|
|
52
|
+
"RatingBreakdown",
|
|
53
|
+
"Review",
|
|
54
|
+
"ReviewBuyer",
|
|
55
|
+
"ReviewContent",
|
|
56
|
+
"ReviewFilterStat",
|
|
57
|
+
"ReviewLabel",
|
|
58
|
+
"ReviewsMeta",
|
|
59
|
+
"ReviewsParseResponse",
|
|
60
|
+
"ReviewsResult",
|
|
61
|
+
"ReviewsSettings",
|
|
62
|
+
"SearchCategory",
|
|
63
|
+
"SearchMeta",
|
|
64
|
+
"SearchParseResponse",
|
|
65
|
+
"SearchResult",
|
|
66
|
+
"SearchSettings",
|
|
67
|
+
"SellerItem",
|
|
68
|
+
"SellerMeta",
|
|
69
|
+
"SellerParseResponse",
|
|
70
|
+
"SellerProductsMeta",
|
|
71
|
+
"SellerProductsParseResponse",
|
|
72
|
+
"SellerProductsResult",
|
|
73
|
+
"SellerProductsSettings",
|
|
74
|
+
"SellerSettings",
|
|
75
|
+
"ShippingMethod",
|
|
76
|
+
"StoreCategory",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
# import apis into sdk package
|
|
80
|
+
from aligate.api.default_api import DefaultApi as DefaultApi
|
|
81
|
+
|
|
82
|
+
# import ApiClient
|
|
83
|
+
from aligate.api_response import ApiResponse as ApiResponse
|
|
84
|
+
from aligate.api_client import ApiClient as ApiClient
|
|
85
|
+
from aligate.configuration import Configuration as Configuration
|
|
86
|
+
from aligate.exceptions import OpenApiException as OpenApiException
|
|
87
|
+
from aligate.exceptions import ApiTypeError as ApiTypeError
|
|
88
|
+
from aligate.exceptions import ApiValueError as ApiValueError
|
|
89
|
+
from aligate.exceptions import ApiKeyError as ApiKeyError
|
|
90
|
+
from aligate.exceptions import ApiAttributeError as ApiAttributeError
|
|
91
|
+
from aligate.exceptions import ApiException as ApiException
|
|
92
|
+
|
|
93
|
+
# import models into sdk package
|
|
94
|
+
from aligate.models.configuration_price import ConfigurationPrice as ConfigurationPrice
|
|
95
|
+
from aligate.models.configuration_property import ConfigurationProperty as ConfigurationProperty
|
|
96
|
+
from aligate.models.coupon import Coupon as Coupon
|
|
97
|
+
from aligate.models.coupon_meta import CouponMeta as CouponMeta
|
|
98
|
+
from aligate.models.coupon_settings import CouponSettings as CouponSettings
|
|
99
|
+
from aligate.models.coupons_parse_response import CouponsParseResponse as CouponsParseResponse
|
|
100
|
+
from aligate.models.error import Error as Error
|
|
101
|
+
from aligate.models.health_check200_response import HealthCheck200Response as HealthCheck200Response
|
|
102
|
+
from aligate.models.image_search_meta import ImageSearchMeta as ImageSearchMeta
|
|
103
|
+
from aligate.models.image_search_parse_response import ImageSearchParseResponse as ImageSearchParseResponse
|
|
104
|
+
from aligate.models.image_search_request import ImageSearchRequest as ImageSearchRequest
|
|
105
|
+
from aligate.models.image_search_settings import ImageSearchSettings as ImageSearchSettings
|
|
106
|
+
from aligate.models.parse_meta import ParseMeta as ParseMeta
|
|
107
|
+
from aligate.models.parse_response import ParseResponse as ParseResponse
|
|
108
|
+
from aligate.models.parse_settings import ParseSettings as ParseSettings
|
|
109
|
+
from aligate.models.price import Price as Price
|
|
110
|
+
from aligate.models.product import Product as Product
|
|
111
|
+
from aligate.models.product_configuration import ProductConfiguration as ProductConfiguration
|
|
112
|
+
from aligate.models.product_description import ProductDescription as ProductDescription
|
|
113
|
+
from aligate.models.product_seller import ProductSeller as ProductSeller
|
|
114
|
+
from aligate.models.product_video import ProductVideo as ProductVideo
|
|
115
|
+
from aligate.models.rating_breakdown import RatingBreakdown as RatingBreakdown
|
|
116
|
+
from aligate.models.review import Review as Review
|
|
117
|
+
from aligate.models.review_buyer import ReviewBuyer as ReviewBuyer
|
|
118
|
+
from aligate.models.review_content import ReviewContent as ReviewContent
|
|
119
|
+
from aligate.models.review_filter_stat import ReviewFilterStat as ReviewFilterStat
|
|
120
|
+
from aligate.models.review_label import ReviewLabel as ReviewLabel
|
|
121
|
+
from aligate.models.reviews_meta import ReviewsMeta as ReviewsMeta
|
|
122
|
+
from aligate.models.reviews_parse_response import ReviewsParseResponse as ReviewsParseResponse
|
|
123
|
+
from aligate.models.reviews_result import ReviewsResult as ReviewsResult
|
|
124
|
+
from aligate.models.reviews_settings import ReviewsSettings as ReviewsSettings
|
|
125
|
+
from aligate.models.search_category import SearchCategory as SearchCategory
|
|
126
|
+
from aligate.models.search_meta import SearchMeta as SearchMeta
|
|
127
|
+
from aligate.models.search_parse_response import SearchParseResponse as SearchParseResponse
|
|
128
|
+
from aligate.models.search_result import SearchResult as SearchResult
|
|
129
|
+
from aligate.models.search_settings import SearchSettings as SearchSettings
|
|
130
|
+
from aligate.models.seller_item import SellerItem as SellerItem
|
|
131
|
+
from aligate.models.seller_meta import SellerMeta as SellerMeta
|
|
132
|
+
from aligate.models.seller_parse_response import SellerParseResponse as SellerParseResponse
|
|
133
|
+
from aligate.models.seller_products_meta import SellerProductsMeta as SellerProductsMeta
|
|
134
|
+
from aligate.models.seller_products_parse_response import SellerProductsParseResponse as SellerProductsParseResponse
|
|
135
|
+
from aligate.models.seller_products_result import SellerProductsResult as SellerProductsResult
|
|
136
|
+
from aligate.models.seller_products_settings import SellerProductsSettings as SellerProductsSettings
|
|
137
|
+
from aligate.models.seller_settings import SellerSettings as SellerSettings
|
|
138
|
+
from aligate.models.shipping_method import ShippingMethod as ShippingMethod
|
|
139
|
+
from aligate.models.store_category import StoreCategory as StoreCategory
|
|
140
|
+
|