$request = "http://webservices.amazon.com/onca/xml?" .
"Service=AWSECommerceService" .
"&Operation=BrowseNodeLookup" .
"&BrowseNodeId=465610" .
"&MerchantId=All" .
"&Condition=All" .
"&Availability=Available" .
"&Sort=salesrank" .
"&Version=$this->version" .
"&AssociateTag=$this->associateTag" .
"&BrowseNode=17".
"&SearchIndex=Books" .
"&ResponseGroup=TopSellers";
我在发送请求时收到此回复(如下)(上图):
<Message>
BrowseNodes is not a valid value for ResponseGroup. Please change this value and retry your request.
</Message>
BrowseNodeId 465610
是日本图书的ID,您可以在此处看到:
http://docs.aws.amazon.com/AWSECommerceService/latest/DG/BrowseNodeIDs.html
为什么我遇到这些问题?任何想法的人?
P.S:
上面的$ request是未经处理的请求,当处理它正在工作时,响应是xml
答案 0 :(得分:1)
$uri = "http://webservices.amazon.co.jp/onca/xml?" .
"Service=AWSECommerceService" .
"&Operation=BrowseNodeLookup" .
"&MerchantId=All" .
"&Condition=All" .
"&Sort=salesrank" .
"&Version=$this->version" .
"&AssociateTag=$this->associateTag" .
"&SearchIndex=Books" .
"&BrowseNodeId=465610" .
"&ResponseGroup=TopSellers";
尝试一下,你不需要BrowseNode,它只会限制你获得的文献和文献中的记录。小说,这是在美国,而不是在jp,我不知道它是不同的jp。