在亚马逊的API使用ItemSearch相对于类别只亚马逊、相对于、类别、ItemSearch

由网友(予欢)分享简介:我使用亚马逊的产品广告API,我想要检索的类别中的所有产品。我想知道的是能我只提供目录不传递任何关键字到ItemSearch操作,获取一套完整的产品记录,包括其子类产品。I am using Amazon Product Advertising API, I want to retrieve all products...

我使用亚马逊的产品广告API,我想要检索的类别中的所有产品。我想知道的是能我只提供目录不传递任何关键字到ItemSearch操作,获取一套完整的产品记录,包括其子类产品。

I am using Amazon Product Advertising API, I want to retrieve all products of a category. What I want to know is can I only provide a category without passing any Keyword into the ItemSearch operation and retrieve the complete set of product records including their sub-category products.

我想无须提供关键字项目通过这个参数数组:

I tried passing this parameter in an array without supplying a 'Keyword' item:

$category = 'Software';    
$single = array(
      "Operation"     => "ItemSearch",
      "SearchIndex"   => $category,
      "Condition"     => "All",
      "ResponseGroup" => "Medium,Reviews"       
    );

不过,这是行不通的。请帮我。

But it does not work. Please help me.

让我在短期再作解释,所有我想要的是让产品的完整列表,通过传递任何类别的不传递任何关键字

Let me explain again in short that all I want is to get the complete list of Products by passing any category without passing any Keyword.

推荐答案

您可能会想执行 BrowseNodeLookup 。此操作将让你浏览反复上下基础上,通过浏览节点ID祖先/儿童的树。

You would probably want to perform a BrowseNodeLookup. This operation will let you iteratively navigate up and down the tree of ancestors/children based on the passed Browse Node ID.

下面是该操作的文档:

的http://docs.aws.amazon.com/AWSECommerceService/latest/DG/BrowseNodeLookup.html

顶层浏览节点ID的名单是在这里:

The list of top level Browse Node ID's is here:

http://docs.aws.amazon.com/AWSECommerceService/最新/ DG / BrowseNodeIDs.html

您可以再使用浏览节点ID,你有兴趣,并传递到ItemSearch作为参数值。你将不需要包括关键字参数在所有在此情况

You could then use the Browse Node Id that you are interested in and pass that in to the ItemSearch as a parameter value. You would not need to include the keyword parameter at all in this case.

操作可能是这样的:

$browse_node_id = '409488'; // browse node id for Software in US or other browse node determined by using BrowseNodeLoookup   
$single = array(
  "Operation"     => "ItemSearch",
  "BrowseNode"    => $browse_node_id,
  "SearchIndex"   => "All", // we don't need to limit to certain category here as browse node does this
  "Condition"     => "All",
  "ResponseGroup" => "Medium,Reviews"       
);
阅读全文

相关推荐

最新文章