0
我正在使用aws-lib
進行亞馬遜procuct廣告API。aws-lib節點未生成主機的結果:「ecs.amazonaws.in」
我的代碼是:
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);
幫我解決它。
你是真棒:) – NavyCody