Php Amazon API页码不工作

Php Amazon API页码不工作,php,amazon-web-services,pagination,Php,Amazon Web Services,Pagination,我正试图通过AmazonAPI获取搜索结果列表,以便在我的网站上列出产品。除了指定要检索的页码外,其他一切都正常。出于某种原因,它总是获取第1页 $SecretAccessKey = "xxx"; $request['AWSAccessKeyId'] = "xxx"; $request['AssociateTag'] = "xxx"; $request['Timestamp'] = gmdate("Y-m-d\TH:i:s\Z"); $request['ResponseGroup'] = "It

我正试图通过AmazonAPI获取搜索结果列表,以便在我的网站上列出产品。除了指定要检索的页码外,其他一切都正常。出于某种原因,它总是获取第1页

$SecretAccessKey = "xxx";
$request['AWSAccessKeyId'] = "xxx";
$request['AssociateTag'] = "xxx";
$request['Timestamp'] = gmdate("Y-m-d\TH:i:s\Z");
$request['ResponseGroup'] = "ItemAttributes,Offers,Images";
$request['ItemPage'] = 1;
$request['Service'] = 'AWSECommerceService';
$request['Version'] = '2011-08-01';
$request['Operation'] = 'ItemSearch';
$request['SearchIndex'] = $search['category_name'];
$request['Keywords'] = $search['text'];
$request['Page'] = 5;

ksort($request); // Sorts in order of key

$Prepend = "GET\nwebservices.amazon.com\n/onca/xml\n";
$String = http_build_query($request);
$PrependString = str_replace('+', '%20', $Prepend . $String);

$Signature = base64_encode(hash_hmac("sha256", $PrependString, $SecretAccessKey, True));
$Signature = urlencode($Signature);

$BaseUrl = "http://webservices.amazon.com/onca/xml?";
$SignedRequest = $BaseUrl . $String . "&Signature=" . $Signature;

// Fetch the generated URL
$xml = simplexml_load_file($SignedRequest);

我试过使用
$request['Page']
$request['Page']
$request['Pages']
$request['Pages']
。似乎没有人能找到正确的页面。有人知道这个参数的名称吗?

原来是
ItemPage

$request['ItemPage'] = 5;

原来是
ItemPage

$request['ItemPage'] = 5;

事实上,这里有记录:事实上,这里有记录: