You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/API/Request.php
+31-4Lines changed: 31 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,32 @@ public static function getProductSearchRequest($domainID, $term, $stats)
171
171
return$r;
172
172
}
173
173
174
+
175
+
/**
176
+
* Search for Amazon products using keywords with a maximum of 50 results per search term.
177
+
*
178
+
* @param int $domainID Amazon locale of the product <a href='psi_element://AmazonLocale'>AmazonLocale</a>
179
+
* @param string $term $term The term you want to search for.
180
+
* @param bool $stats If specified (= not null) the product object will have a stats field with quick access to current prices, min/max prices and the weighted mean values of the last x days, where x is the value of the stats parameter.
181
+
* @param int $page values 0 - 9. Each search result page provides up to 10 results. To retrieve more results iterate the page parameter and keep all other parameters identical. Start with page 0 and stop when the response contains less than 10 results or you have reached page 9, which is the limit. When not using the page parameter the first 40 results will be returned.
* Search for Amazon products using keywords with a maximum of 50 results per search term.
176
202
*
@@ -198,16 +224,17 @@ public static function getProductSearchRequestWithUpdate($domainID, $term, $stat
198
224
}
199
225
200
226
/**
201
-
* Retrieves the product object28 for the specified ASIN and domain.
227
+
* Retrieves the product for the specified ASIN and domain.
202
228
* If our last update is older than 1 hour it will be automatically refreshed before delivered to you to ensure you get near to real-time pricing data.
203
229
*
204
230
* @param $domainID int Amazon locale of the product {@link AmazonLocale}
205
-
* @param $asins string[] ASINs to request, must contain between 1 and 100 ASINs - or max 20 ASINs if the offers parameter is used.
231
+
* @param $offers int If specified (= not null) Determines the number of marketplace offers to retrieve. <b>Not available for Amazon China.</b>
206
232
* @param $statsStartDate string Must ISO8601 coded date (with or without time in UTC). Example: 2015-12-31 or 2015-12-31T14:51Z. If specified (= not null) the product object will have a stats field with quick access to current prices, min/max prices and the weighted mean values in the interval specified statsStartDate to statsEndDate. .
207
233
* @param $statsEndDate string the end of the stats interval. See statsStartDate.
208
-
* @param $history bool Whether or not to include the product's history data (csv field). If you do not evaluate the csv field set to false to speed up the request and reduce traffic.
209
234
* @param $update int If the product's last refresh is older than <i>update</i>-hours force a refresh. Use this to speed up requests if up-to-date data is not required. Might cost an extra token if 0 (= live data). Default 1.
210
-
* @param $offers int If specified (= not null) Determines the number of marketplace offers to retrieve. <b>Not available for Amazon China.</b>
235
+
* @param $history bool Whether or not to include the product's history data (csv field). If you do not evaluate the csv field set to false to speed up the request and reduce traffic.
236
+
* @param $asins string[] ASINs to request, must contain between 1 and 100 ASINs - or max 20 ASINs if the offers parameter is used.
237
+
* @param array $params Array of additional request parameters
0 commit comments