2015-08-26 40 views
0

我想在我的數據庫中使用亞馬遜產品廣告API查找產品詳細信息。但是,響應總是未定義的。我做錯了什麼?亞馬遜產品廣告API總是返回undefined作爲結果

var amazon = require('amazon-product-api'); 

var client = amazon.createClient({ 
    awsId: "my aws id", 
    awsSecret: "my secret key", 
    awsTag: "my aws tag" 
}); 

client.itemLookup({ 
    responseGroup: 'Images,ItemAttributes,Offers,EditorialReview', 
    IdType: 'ASIN', 
    ItemId: "B00UTKTX36" 
}).then(function (results){ 
    console.log("results", results); 
}).catch(function(err){ 
    console.log(err.Error[0].Message); 
}); 

回答

相關問題