我是C#的“亚马逊产品广告API”的新用户。我正在使用AWSECommerceService服务来搜索满足特定查询的书籍。
// prepare an ItemSearch request
ItemSearchRequest request = new ItemSearchRequest();
request.SearchIndex = "Books";
request.Title = "";
request.Author = "Ernest Hemingway";
request.ResponseGroup = new string[] { "Small" };
ItemSearch itemSearch = new ItemSearch();
itemSearch.Request = new ItemSearchRequest[] { request };
itemSearch.AWSAccessKeyId = accessKeyId;
// issue the ItemSearch request
ItemSearchResponse response = client.ItemSearch(itemSearch);
// write out the results
foreach (var item in response.Items[0].Item)
{
Console.WriteLine(item.ItemAttributes.Title + "---" + item.ItemLinks[0].URL);
}
我的应用程序应仅从英国网站返回结果...我想我应该在某处设置Locale。有什么想法吗?