aliseeks_api 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +171 -0
  5. data/Rakefile +10 -0
  6. data/aliseeks_api.gemspec +45 -0
  7. data/docs/Amount.md +9 -0
  8. data/docs/BestSellingSearchItem.md +15 -0
  9. data/docs/BestSellingSearchRequest.md +12 -0
  10. data/docs/BestSellingSearchResponse.md +8 -0
  11. data/docs/DoubleRange.md +9 -0
  12. data/docs/ImageSearchCategory.md +9 -0
  13. data/docs/ImageSearchItem.md +12 -0
  14. data/docs/ImageSearchRequest.md +12 -0
  15. data/docs/ImageSearchResponse.md +10 -0
  16. data/docs/IntegerRange.md +9 -0
  17. data/docs/NonRealtimeCurrency.md +7 -0
  18. data/docs/PriceRange.md +9 -0
  19. data/docs/PriceSummary.md +13 -0
  20. data/docs/Product.md +28 -0
  21. data/docs/ProductAttribute.md +11 -0
  22. data/docs/ProductBulkOption.md +10 -0
  23. data/docs/ProductDetail.md +24 -0
  24. data/docs/ProductDetailsRequest.md +12 -0
  25. data/docs/ProductHtmlDescription.md +8 -0
  26. data/docs/ProductHtmlDescriptionRequest.md +8 -0
  27. data/docs/ProductPriceOption.md +14 -0
  28. data/docs/ProductPromotion.md +9 -0
  29. data/docs/ProductPropertyVariationIdentifier.md +10 -0
  30. data/docs/ProductRequest.md +15 -0
  31. data/docs/ProductRequestComponent.md +7 -0
  32. data/docs/ProductReview.md +18 -0
  33. data/docs/ProductReviews.md +17 -0
  34. data/docs/ProductReviewsRequest.md +10 -0
  35. data/docs/ProductSeller.md +12 -0
  36. data/docs/ProductShipping.md +8 -0
  37. data/docs/ProductShippingOptions.md +15 -0
  38. data/docs/ProductShippingRequest.md +12 -0
  39. data/docs/ProductSku.md +16 -0
  40. data/docs/ProductSkus.md +8 -0
  41. data/docs/ProductSkusRequest.md +11 -0
  42. data/docs/ProductsApi.md +316 -0
  43. data/docs/PromotionOption.md +12 -0
  44. data/docs/RealtimeCurrency.md +7 -0
  45. data/docs/RealtimeSearchAggregation.md +9 -0
  46. data/docs/RealtimeSearchItem.md +14 -0
  47. data/docs/RealtimeSearchRequest.md +14 -0
  48. data/docs/RealtimeSearchResponse.md +9 -0
  49. data/docs/SearchAggregation.md +11 -0
  50. data/docs/SearchApi.md +263 -0
  51. data/docs/SearchItem.md +20 -0
  52. data/docs/SearchItemFreight.md +9 -0
  53. data/docs/SearchItemFreightType.md +8 -0
  54. data/docs/SearchItemSeller.md +13 -0
  55. data/docs/SearchPriceOption.md +10 -0
  56. data/docs/SearchRequest.md +24 -0
  57. data/docs/SearchResponse.md +9 -0
  58. data/docs/SkuPriceOption.md +16 -0
  59. data/docs/SkuPriceOptionProperty.md +13 -0
  60. data/docs/SkuProperty.md +10 -0
  61. data/docs/SkuPropertyValue.md +10 -0
  62. data/docs/StringRange.md +9 -0
  63. data/docs/TimeDuration.md +11 -0
  64. data/docs/TradeInformation.md +9 -0
  65. data/docs/UploadImageByUrlRequest.md +8 -0
  66. data/docs/UploadImageResponse.md +8 -0
  67. data/docs/WebError.md +11 -0
  68. data/git_push.sh +55 -0
  69. data/lib/aliseeks_api.rb +100 -0
  70. data/lib/aliseeks_api/api/products_api.rb +337 -0
  71. data/lib/aliseeks_api/api/search_api.rb +288 -0
  72. data/lib/aliseeks_api/api_client.rb +389 -0
  73. data/lib/aliseeks_api/api_error.rb +38 -0
  74. data/lib/aliseeks_api/configuration.rb +251 -0
  75. data/lib/aliseeks_api/models/amount.rb +195 -0
  76. data/lib/aliseeks_api/models/best_selling_search_item.rb +257 -0
  77. data/lib/aliseeks_api/models/best_selling_search_request.rb +278 -0
  78. data/lib/aliseeks_api/models/best_selling_search_response.rb +187 -0
  79. data/lib/aliseeks_api/models/double_range.rb +193 -0
  80. data/lib/aliseeks_api/models/image_search_category.rb +195 -0
  81. data/lib/aliseeks_api/models/image_search_item.rb +224 -0
  82. data/lib/aliseeks_api/models/image_search_request.rb +240 -0
  83. data/lib/aliseeks_api/models/image_search_response.rb +209 -0
  84. data/lib/aliseeks_api/models/integer_range.rb +193 -0
  85. data/lib/aliseeks_api/models/non_realtime_currency.rb +48 -0
  86. data/lib/aliseeks_api/models/price_range.rb +193 -0
  87. data/lib/aliseeks_api/models/price_summary.rb +229 -0
  88. data/lib/aliseeks_api/models/product.rb +422 -0
  89. data/lib/aliseeks_api/models/product_attribute.rb +215 -0
  90. data/lib/aliseeks_api/models/product_bulk_option.rb +204 -0
  91. data/lib/aliseeks_api/models/product_detail.rb +353 -0
  92. data/lib/aliseeks_api/models/product_details_request.rb +230 -0
  93. data/lib/aliseeks_api/models/product_html_description.rb +185 -0
  94. data/lib/aliseeks_api/models/product_html_description_request.rb +185 -0
  95. data/lib/aliseeks_api/models/product_price_option.rb +240 -0
  96. data/lib/aliseeks_api/models/product_promotion.rb +194 -0
  97. data/lib/aliseeks_api/models/product_property_variation_identifier.rb +205 -0
  98. data/lib/aliseeks_api/models/product_request.rb +288 -0
  99. data/lib/aliseeks_api/models/product_request_component.rb +31 -0
  100. data/lib/aliseeks_api/models/product_review.rb +287 -0
  101. data/lib/aliseeks_api/models/product_reviews.rb +270 -0
  102. data/lib/aliseeks_api/models/product_reviews_request.rb +235 -0
  103. data/lib/aliseeks_api/models/product_seller.rb +225 -0
  104. data/lib/aliseeks_api/models/product_shipping.rb +187 -0
  105. data/lib/aliseeks_api/models/product_shipping_options.rb +253 -0
  106. data/lib/aliseeks_api/models/product_shipping_request.rb +256 -0
  107. data/lib/aliseeks_api/models/product_sku.rb +266 -0
  108. data/lib/aliseeks_api/models/product_skus.rb +187 -0
  109. data/lib/aliseeks_api/models/product_skus_request.rb +218 -0
  110. data/lib/aliseeks_api/models/promotion_option.rb +222 -0
  111. data/lib/aliseeks_api/models/realtime_currency.rb +45 -0
  112. data/lib/aliseeks_api/models/realtime_search_aggregation.rb +197 -0
  113. data/lib/aliseeks_api/models/realtime_search_item.rb +246 -0
  114. data/lib/aliseeks_api/models/realtime_search_request.rb +304 -0
  115. data/lib/aliseeks_api/models/realtime_search_response.rb +196 -0
  116. data/lib/aliseeks_api/models/search_aggregation.rb +215 -0
  117. data/lib/aliseeks_api/models/search_item.rb +304 -0
  118. data/lib/aliseeks_api/models/search_item_freight.rb +194 -0
  119. data/lib/aliseeks_api/models/search_item_freight_type.rb +185 -0
  120. data/lib/aliseeks_api/models/search_item_seller.rb +235 -0
  121. data/lib/aliseeks_api/models/search_price_option.rb +203 -0
  122. data/lib/aliseeks_api/models/search_request.rb +441 -0
  123. data/lib/aliseeks_api/models/search_response.rb +196 -0
  124. data/lib/aliseeks_api/models/sku_price_option.rb +264 -0
  125. data/lib/aliseeks_api/models/sku_price_option_property.rb +235 -0
  126. data/lib/aliseeks_api/models/sku_property.rb +207 -0
  127. data/lib/aliseeks_api/models/sku_property_value.rb +205 -0
  128. data/lib/aliseeks_api/models/string_range.rb +193 -0
  129. data/lib/aliseeks_api/models/time_duration.rb +211 -0
  130. data/lib/aliseeks_api/models/trade_information.rb +195 -0
  131. data/lib/aliseeks_api/models/upload_image_by_url_request.rb +185 -0
  132. data/lib/aliseeks_api/models/upload_image_response.rb +185 -0
  133. data/lib/aliseeks_api/models/web_error.rb +211 -0
  134. data/lib/aliseeks_api/version.rb +15 -0
  135. data/spec/api/products_api_spec.rb +101 -0
  136. data/spec/api/search_api_spec.rb +90 -0
  137. data/spec/api_client_spec.rb +226 -0
  138. data/spec/configuration_spec.rb +42 -0
  139. data/spec/models/amount_spec.rb +47 -0
  140. data/spec/models/best_selling_search_item_spec.rb +83 -0
  141. data/spec/models/best_selling_search_request_spec.rb +73 -0
  142. data/spec/models/best_selling_search_response_spec.rb +41 -0
  143. data/spec/models/double_range_spec.rb +47 -0
  144. data/spec/models/image_search_category_spec.rb +47 -0
  145. data/spec/models/image_search_item_spec.rb +65 -0
  146. data/spec/models/image_search_request_spec.rb +65 -0
  147. data/spec/models/image_search_response_spec.rb +53 -0
  148. data/spec/models/integer_range_spec.rb +47 -0
  149. data/spec/models/non_realtime_currency_spec.rb +35 -0
  150. data/spec/models/price_range_spec.rb +47 -0
  151. data/spec/models/price_summary_spec.rb +71 -0
  152. data/spec/models/product_attribute_spec.rb +59 -0
  153. data/spec/models/product_bulk_option_spec.rb +53 -0
  154. data/spec/models/product_detail_spec.rb +137 -0
  155. data/spec/models/product_details_request_spec.rb +65 -0
  156. data/spec/models/product_html_description_request_spec.rb +41 -0
  157. data/spec/models/product_html_description_spec.rb +41 -0
  158. data/spec/models/product_price_option_spec.rb +77 -0
  159. data/spec/models/product_promotion_spec.rb +47 -0
  160. data/spec/models/product_property_variation_identifier_spec.rb +53 -0
  161. data/spec/models/product_request_component_spec.rb +35 -0
  162. data/spec/models/product_request_spec.rb +83 -0
  163. data/spec/models/product_review_spec.rb +101 -0
  164. data/spec/models/product_reviews_request_spec.rb +53 -0
  165. data/spec/models/product_reviews_spec.rb +95 -0
  166. data/spec/models/product_seller_spec.rb +65 -0
  167. data/spec/models/product_shipping_options_spec.rb +83 -0
  168. data/spec/models/product_shipping_request_spec.rb +65 -0
  169. data/spec/models/product_shipping_spec.rb +41 -0
  170. data/spec/models/product_sku_spec.rb +89 -0
  171. data/spec/models/product_skus_request_spec.rb +59 -0
  172. data/spec/models/product_skus_spec.rb +41 -0
  173. data/spec/models/product_spec.rb +165 -0
  174. data/spec/models/promotion_option_spec.rb +65 -0
  175. data/spec/models/realtime_currency_spec.rb +35 -0
  176. data/spec/models/realtime_search_aggregation_spec.rb +47 -0
  177. data/spec/models/realtime_search_item_spec.rb +77 -0
  178. data/spec/models/realtime_search_request_spec.rb +81 -0
  179. data/spec/models/realtime_search_response_spec.rb +47 -0
  180. data/spec/models/search_aggregation_spec.rb +59 -0
  181. data/spec/models/search_item_freight_spec.rb +47 -0
  182. data/spec/models/search_item_freight_type_spec.rb +41 -0
  183. data/spec/models/search_item_seller_spec.rb +71 -0
  184. data/spec/models/search_item_spec.rb +113 -0
  185. data/spec/models/search_price_option_spec.rb +53 -0
  186. data/spec/models/search_request_spec.rb +145 -0
  187. data/spec/models/search_response_spec.rb +47 -0
  188. data/spec/models/sku_price_option_property_spec.rb +71 -0
  189. data/spec/models/sku_price_option_spec.rb +89 -0
  190. data/spec/models/sku_property_spec.rb +53 -0
  191. data/spec/models/sku_property_value_spec.rb +53 -0
  192. data/spec/models/string_range_spec.rb +47 -0
  193. data/spec/models/time_duration_spec.rb +59 -0
  194. data/spec/models/trade_information_spec.rb +47 -0
  195. data/spec/models/upload_image_by_url_request_spec.rb +41 -0
  196. data/spec/models/upload_image_response_spec.rb +41 -0
  197. data/spec/models/web_error_spec.rb +59 -0
  198. data/spec/spec_helper.rb +111 -0
  199. metadata +485 -0
@@ -0,0 +1,12 @@
1
+ # AliseeksApi::PromotionOption
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **max_amount** | [**Amount**](Amount.md) | | [optional]
7
+ **min_amount** | [**Amount**](Amount.md) | | [optional]
8
+ **discount** | **Float** | The amount of the discount | [optional]
9
+ **time_left** | [**TimeDuration**](TimeDuration.md) | | [optional]
10
+ **stock** | **Integer** | The amount of stock left on an item | [optional]
11
+
12
+
@@ -0,0 +1,7 @@
1
+ # AliseeksApi::RealtimeCurrency
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # AliseeksApi::RealtimeSearchAggregation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total_count** | **Integer** | The total number of items that matched the request | [optional]
7
+ **ship_from_countries** | **Array<String>** | The countries that the items can ship from | [optional]
8
+
9
+
@@ -0,0 +1,14 @@
1
+ # AliseeksApi::RealtimeSearchItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The AliExpress product ID | [optional]
7
+ **image_url** | **String** | The image URL for the item | [optional]
8
+ **title** | **String** | The subject / title of the item | [optional]
9
+ **ratings** | **Float** | The ratings of the item | [optional]
10
+ **orders** | **Integer** | The number of orders of the item | [optional]
11
+ **freight** | [**SearchItemFreight**](SearchItemFreight.md) | | [optional]
12
+ **price_options** | [**Array<SearchPriceOption>**](SearchPriceOption.md) | The price options for the item | [optional]
13
+
14
+
@@ -0,0 +1,14 @@
1
+ # AliseeksApi::RealtimeSearchRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **category** | **Integer** | The category to filter by | [optional]
7
+ **text** | **String** | The text to filter by | [optional]
8
+ **price_range** | [**DoubleRange**](DoubleRange.md) | | [optional]
9
+ **ship_to_country** | **String** | The 2 character ISO code of the country where the item will be shipped to | [optional]
10
+ **ship_from_country** | **String** | The 2 character ISO code of the country where the item is shipped from | [optional]
11
+ **sort** | **String** | The sort order of the result | [optional] [default to 'BEST_MATCH']
12
+ **skip** | **Integer** | Number of items to skip, used for pagination | [optional]
13
+
14
+
@@ -0,0 +1,9 @@
1
+ # AliseeksApi::RealtimeSearchResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **aggregation** | [**RealtimeSearchAggregation**](RealtimeSearchAggregation.md) | | [optional]
7
+ **items** | [**Array<RealtimeSearchItem>**](RealtimeSearchItem.md) | The items from a realtime search | [optional]
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # AliseeksApi::SearchAggregation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total_count** | **Integer** | The total number of items that match the request | [optional]
7
+ **skip** | **Integer** | The number of items that were skipped | [optional]
8
+ **limit** | **Integer** | The number of items to return | [optional]
9
+ **scroll_identifier** | **String** | The scroll identifier which can be used in a subsequent search request to fetch the next page. Expires in 60 seconds. | [optional]
10
+
11
+
@@ -0,0 +1,263 @@
1
+ # AliseeksApi::SearchApi
2
+
3
+ All URIs are relative to *https://api.aliseeks.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**realtime_search**](SearchApi.md#realtime_search) | **POST** /search/realtime | Searches AliExpress in realtime
8
+ [**search**](SearchApi.md#search) | **POST** /search | Searches AliExpress in non-realtime. Uses the Aliseeks.com datasource which is continually updated from AliExpress.
9
+ [**search_best_selling**](SearchApi.md#search_best_selling) | **POST** /search/bestSelling | Retrieves best selling products from AliExpress in realtime.
10
+ [**search_by_image**](SearchApi.md#search_by_image) | **POST** /search/image | Searches AliExpress by image in realtime.
11
+ [**upload_image_by_url**](SearchApi.md#upload_image_by_url) | **POST** /search/image/upload | Uploads an image to AliExpress to allow it to be used in the image search endpoint
12
+
13
+
14
+ # **realtime_search**
15
+ > RealtimeSearchResponse realtime_search(realtime_search_request)
16
+
17
+ Searches AliExpress in realtime
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'aliseeks_api'
23
+ # setup authorization
24
+ AliseeksApi.configure do |config|
25
+ # Configure API key authorization: ApiKeyAuth
26
+ config.api_key['X-API-CLIENT-ID'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['X-API-CLIENT-ID'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = AliseeksApi::SearchApi.new
32
+ realtime_search_request = AliseeksApi::RealtimeSearchRequest.new # RealtimeSearchRequest | Realtime search request body
33
+
34
+ begin
35
+ #Searches AliExpress in realtime
36
+ result = api_instance.realtime_search(realtime_search_request)
37
+ p result
38
+ rescue AliseeksApi::ApiError => e
39
+ puts "Exception when calling SearchApi->realtime_search: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **realtime_search_request** | [**RealtimeSearchRequest**](RealtimeSearchRequest.md)| Realtime search request body |
48
+
49
+ ### Return type
50
+
51
+ [**RealtimeSearchResponse**](RealtimeSearchResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+
64
+ # **search**
65
+ > SearchResponse search(search_request)
66
+
67
+ Searches AliExpress in non-realtime. Uses the Aliseeks.com datasource which is continually updated from AliExpress.
68
+
69
+ ### Example
70
+ ```ruby
71
+ # load the gem
72
+ require 'aliseeks_api'
73
+ # setup authorization
74
+ AliseeksApi.configure do |config|
75
+ # Configure API key authorization: ApiKeyAuth
76
+ config.api_key['X-API-CLIENT-ID'] = 'YOUR API KEY'
77
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
78
+ #config.api_key_prefix['X-API-CLIENT-ID'] = 'Bearer'
79
+ end
80
+
81
+ api_instance = AliseeksApi::SearchApi.new
82
+ search_request = AliseeksApi::SearchRequest.new # SearchRequest | Search request body
83
+
84
+ begin
85
+ #Searches AliExpress in non-realtime. Uses the Aliseeks.com datasource which is continually updated from AliExpress.
86
+ result = api_instance.search(search_request)
87
+ p result
88
+ rescue AliseeksApi::ApiError => e
89
+ puts "Exception when calling SearchApi->search: #{e}"
90
+ end
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ Name | Type | Description | Notes
96
+ ------------- | ------------- | ------------- | -------------
97
+ **search_request** | [**SearchRequest**](SearchRequest.md)| Search request body |
98
+
99
+ ### Return type
100
+
101
+ [**SearchResponse**](SearchResponse.md)
102
+
103
+ ### Authorization
104
+
105
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: application/json
110
+ - **Accept**: application/json
111
+
112
+
113
+
114
+ # **search_best_selling**
115
+ > BestSellingSearchResponse search_best_selling(best_selling_search_request)
116
+
117
+ Retrieves best selling products from AliExpress in realtime.
118
+
119
+ ### Example
120
+ ```ruby
121
+ # load the gem
122
+ require 'aliseeks_api'
123
+ # setup authorization
124
+ AliseeksApi.configure do |config|
125
+ # Configure API key authorization: ApiKeyAuth
126
+ config.api_key['X-API-CLIENT-ID'] = 'YOUR API KEY'
127
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
128
+ #config.api_key_prefix['X-API-CLIENT-ID'] = 'Bearer'
129
+ end
130
+
131
+ api_instance = AliseeksApi::SearchApi.new
132
+ best_selling_search_request = AliseeksApi::BestSellingSearchRequest.new # BestSellingSearchRequest | Search best selling request body
133
+
134
+ begin
135
+ #Retrieves best selling products from AliExpress in realtime.
136
+ result = api_instance.search_best_selling(best_selling_search_request)
137
+ p result
138
+ rescue AliseeksApi::ApiError => e
139
+ puts "Exception when calling SearchApi->search_best_selling: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ Name | Type | Description | Notes
146
+ ------------- | ------------- | ------------- | -------------
147
+ **best_selling_search_request** | [**BestSellingSearchRequest**](BestSellingSearchRequest.md)| Search best selling request body |
148
+
149
+ ### Return type
150
+
151
+ [**BestSellingSearchResponse**](BestSellingSearchResponse.md)
152
+
153
+ ### Authorization
154
+
155
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+
164
+ # **search_by_image**
165
+ > ImageSearchResponse search_by_image(image_search_request)
166
+
167
+ Searches AliExpress by image in realtime.
168
+
169
+ ### Example
170
+ ```ruby
171
+ # load the gem
172
+ require 'aliseeks_api'
173
+ # setup authorization
174
+ AliseeksApi.configure do |config|
175
+ # Configure API key authorization: ApiKeyAuth
176
+ config.api_key['X-API-CLIENT-ID'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ #config.api_key_prefix['X-API-CLIENT-ID'] = 'Bearer'
179
+ end
180
+
181
+ api_instance = AliseeksApi::SearchApi.new
182
+ image_search_request = AliseeksApi::ImageSearchRequest.new # ImageSearchRequest | The image search request body
183
+
184
+ begin
185
+ #Searches AliExpress by image in realtime.
186
+ result = api_instance.search_by_image(image_search_request)
187
+ p result
188
+ rescue AliseeksApi::ApiError => e
189
+ puts "Exception when calling SearchApi->search_by_image: #{e}"
190
+ end
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+ Name | Type | Description | Notes
196
+ ------------- | ------------- | ------------- | -------------
197
+ **image_search_request** | [**ImageSearchRequest**](ImageSearchRequest.md)| The image search request body |
198
+
199
+ ### Return type
200
+
201
+ [**ImageSearchResponse**](ImageSearchResponse.md)
202
+
203
+ ### Authorization
204
+
205
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: application/json
210
+ - **Accept**: application/json
211
+
212
+
213
+
214
+ # **upload_image_by_url**
215
+ > UploadImageResponse upload_image_by_url(upload_image_by_url_request)
216
+
217
+ Uploads an image to AliExpress to allow it to be used in the image search endpoint
218
+
219
+ ### Example
220
+ ```ruby
221
+ # load the gem
222
+ require 'aliseeks_api'
223
+ # setup authorization
224
+ AliseeksApi.configure do |config|
225
+ # Configure API key authorization: ApiKeyAuth
226
+ config.api_key['X-API-CLIENT-ID'] = 'YOUR API KEY'
227
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
228
+ #config.api_key_prefix['X-API-CLIENT-ID'] = 'Bearer'
229
+ end
230
+
231
+ api_instance = AliseeksApi::SearchApi.new
232
+ upload_image_by_url_request = AliseeksApi::UploadImageByUrlRequest.new # UploadImageByUrlRequest | The upload image by url request body
233
+
234
+ begin
235
+ #Uploads an image to AliExpress to allow it to be used in the image search endpoint
236
+ result = api_instance.upload_image_by_url(upload_image_by_url_request)
237
+ p result
238
+ rescue AliseeksApi::ApiError => e
239
+ puts "Exception when calling SearchApi->upload_image_by_url: #{e}"
240
+ end
241
+ ```
242
+
243
+ ### Parameters
244
+
245
+ Name | Type | Description | Notes
246
+ ------------- | ------------- | ------------- | -------------
247
+ **upload_image_by_url_request** | [**UploadImageByUrlRequest**](UploadImageByUrlRequest.md)| The upload image by url request body |
248
+
249
+ ### Return type
250
+
251
+ [**UploadImageResponse**](UploadImageResponse.md)
252
+
253
+ ### Authorization
254
+
255
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
256
+
257
+ ### HTTP request headers
258
+
259
+ - **Content-Type**: application/json
260
+ - **Accept**: application/json
261
+
262
+
263
+
@@ -0,0 +1,20 @@
1
+ # AliseeksApi::SearchItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | AliExpress Product ID | [optional]
7
+ **title** | **String** | The subject / title of the product | [optional]
8
+ **category_id** | **Integer** | The category of the item | [optional]
9
+ **image_url** | **String** | Image URL for the item | [optional]
10
+ **detail_url** | **String** | The detail URL of the item | [optional]
11
+ **lot_size** | **Integer** | The lot size that the item is sold in | [optional]
12
+ **lot_unit** | **String** | The unit when describing a lot for this item | [optional]
13
+ **price** | [**Amount**](Amount.md) | | [optional]
14
+ **ratings** | **Float** | The ratings of this item | [optional]
15
+ **orders** | **Float** | The number of orders of this item | [optional]
16
+ **freight** | [**SearchItemFreight**](SearchItemFreight.md) | | [optional]
17
+ **seller** | [**SearchItemSeller**](SearchItemSeller.md) | | [optional]
18
+ **freight_types** | [**Array<SearchItemFreightType>**](SearchItemFreightType.md) | List of freight types available for this item | [optional]
19
+
20
+
@@ -0,0 +1,9 @@
1
+ # AliseeksApi::SearchItemFreight
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **price** | [**Amount**](Amount.md) | | [optional]
7
+ **type** | **String** | The freight type | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # AliseeksApi::SearchItemFreightType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | Freight type for the item | [optional]
7
+
8
+
@@ -0,0 +1,13 @@
1
+ # AliseeksApi::SearchItemSeller
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **store_name** | **String** | The name of the seller store | [optional]
7
+ **name** | **String** | The name of the seller | [optional]
8
+ **positive_feedback** | **Integer** | The amount of positive feedback for the seller | [optional]
9
+ **negative_feedback** | **Integer** | The amount of negative feedback for the seller | [optional]
10
+ **seller_score** | **Integer** | The score of the seller | [optional]
11
+ **total_feedback** | **Integer** | The total amount of feedback for the seller | [optional]
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # AliseeksApi::SearchPriceOption
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | The type of the price, either pc_price or app_price | [optional]
7
+ **original_amount** | [**Amount**](Amount.md) | | [optional]
8
+ **amount** | [**Amount**](Amount.md) | | [optional]
9
+
10
+
@@ -0,0 +1,24 @@
1
+ # AliseeksApi::SearchRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text** | **String** | The search query | [optional]
7
+ **sort** | **String** | | [optional] [default to 'BEST_MATCH']
8
+ **currency** | [**NonRealtimeCurrency**](NonRealtimeCurrency.md) | | [optional]
9
+ **category** | **Integer** | The AliExpress category to search in | [optional]
10
+ **include_subcategories** | **BOOLEAN** | When this flag is set to `true` the `category` field will be expanded so that all items in sub-categories will be included | [optional] [default to false]
11
+ **sort_direction** | **String** | The direction to sort the results by. Only valid for certain `sort` values | [optional] [default to 'ASC']
12
+ **ratings_range** | [**DoubleRange**](DoubleRange.md) | | [optional]
13
+ **quantity_range** | [**IntegerRange**](IntegerRange.md) | | [optional]
14
+ **price_range** | [**DoubleRange**](DoubleRange.md) | | [optional]
15
+ **unit_price_range** | [**DoubleRange**](DoubleRange.md) | | [optional]
16
+ **order_range** | [**IntegerRange**](IntegerRange.md) | | [optional]
17
+ **item_id_range** | [**StringRange**](StringRange.md) | | [optional]
18
+ **freight_types** | **Array<String>** | Filter by freight types | [optional]
19
+ **skip** | **Integer** | Skip a number of items, if you need to skip more than 10000 items then use the scroll feature | [optional]
20
+ **limit** | **Integer** | Limit the request to a number of items | [optional]
21
+ **scroll_pagination** | **BOOLEAN** | When this value is `true` then you will receive a scroll identifier which you can use to request the next page of results. The scroll identifier is good for 60 seconds. | [optional] [default to false]
22
+ **scroll_identifier** | **String** | The scroll identifier which can be retrieved by sending an initial search request with `scrollPagination` set to `true`. Scroll identifiers are good for 60 seconds. | [optional]
23
+
24
+
@@ -0,0 +1,9 @@
1
+ # AliseeksApi::SearchResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **aggregation** | [**SearchAggregation**](SearchAggregation.md) | | [optional]
7
+ **items** | [**Array<SearchItem>**](SearchItem.md) | Search items that match the request | [optional]
8
+
9
+