亚马逊产品广告 API - 显示价格和图片?

Amazon Product Advertising API - Showing prices and images?

我目前正在调查亚马逊产品广告 API 并希望生成包含详细信息 的 XML 响应,包括商品价格和图片。

这是 URL 的典型示例,我使用相关参数搜索项目,即 ItemSearch:

        IDictionary<string, string> r1 = new Dictionary<string, String>();

        r1["Service"] = "ItemSearch";
        r1["ResponseGroup"] = "Images";
        r1["AssociateTag"] = "AssociateTag";
        r1["Operation"] = "ItemSearch";
        r1["Condition"] = "New";
        r1["Availability"] = "Available";
        r1["SearchIndex"] = "Apparel";
        r1["Keywords"] = itemToSearch;

        requestUrl = _signedRequestHandler.Sign(r1);

上面的 URL 生成器会给我一个 URL,其响应包含图像(因为我在 'ResponseGroup' 中使用 'Images'),将其设置为 'Offers' 会给我价格但没有图片,我想要两个,这可能吗?

是的,这是可能的。指定以逗号分隔的多个响应组。

r1["ResponseGroup"] = "Offers,Images";

将响应组更改为: 响应组('Medium,OfferSummary,VariationSummary')

Key : VariationSummary 将为您提供价格值 key : SmallImage, MediumImage, LargeImage 将为您提供图片网址