[英]Using AWS to do product lookup by UPC to get the products ASIN
我現在的任務是找出我的公司可以通過 UPC 進行產品搜索的方法,以便我們可以獲取 ASIN(亞馬遜序列號)。 我希望有人能引導我朝着正確的方向前進,我可以使用 Amazon API 來做到這一點。 我認為他們會有一些允許產品搜索的 API。
我也希望在 C#/.NET 中實現它。
謝謝您的幫助! -劉易斯
您可以使用這個庫Nager.AmazonProductAdvertising ,您可以使用 nuget 輕松安裝它。 該庫還支持 .NET 標准 2.0。
PM> Install-Package Nager.AmazonProductAdvertising
示例代碼:
var authentication = new AmazonAuthentication();
authentication.AccessKey = "accesskey";
authentication.SecretKey = "secretkey";
var wrapper = new AmazonWrapper(authentication, AmazonEndpoint.US);
//The Lord of the Rings
var result = wrapper.Lookup("978-0261102385");
您只需將您的 UPC 粘貼到亞馬遜的搜索欄中,然后點擊 Go,您就會得到結果,之后您必須將商品描述與您給定的產品描述相匹配,匹配的就是您正確的產品,有時我們會找到多個 ASIN一個 SKU
問候,
沙門
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.