我正在使用aws-lib
亚马逊产品广告 API。
我的代码是:
var aws = require("aws-lib");
var prodAdvOptions = {
host : "ecs.amazonaws.in",
region : "IN",
version : "2013-08-01",
path : "/onca/xml"
};
prodAdv = aws.createProdAdvClient(yourAccessKeyId, yourSecretAccessKey, yourAssociateTag,prodAdvOptions);
prodAdv.call("ItemSearch", {
SearchIndex : "Health & beauty",
Keywords : "health",
ResponseGroup : 'Images,ItemAttributes,Offers,Reviews'
}, function(err, result) {
console.log(JSON.stringify(result));
res.send({
data : result
});
});
但结果是 {}。
如果我没有通过prodAdvOptions
意味着我得到了结果。
prodAdv = aws.createProdAdvClient(yourAccessKeyId, yourSecretAccessKey, yourAssociateTag);
帮我修一下。