public string ItemLookup(string itemId, ResponseGroupType responseType = ResponseGroupType.Medium) { var request = CreateCommonRequest(OperationType.ItemLookup); request["ItemId"] = itemId; request["ResponseGroup"] = Convert.ToString(responseType); request["AssociateTag"] = "_associateTag"; //request["AnUrl"] = "http://www.amazon.com/books"; //request["AUnicodeString"] = "αβγδεٵٶٷٸٹٺチャーハン叉焼"; //request["Latin1Chars"] = "ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJij"; return(GetResponse(request)); }
public string ItemSearch(SearchIndexType indexType, ResponseGroupType responseType = ResponseGroupType.Medium | ResponseGroupType.EditorialReview, string keyword = null, SortType sortType = SortType.salesrank, int itemPage = 1) { var request = CreateCommonRequest(OperationType.ItemSearch); request["SearchIndex"] = Convert.ToString(indexType); request["ResponseGroup"] = Convert.ToString(responseType); request["BrowseNode"] = indexType.ToBrowseNode(_countryType); request["Sort"] = Convert.ToString(sortType); request["ItemPage"] = itemPage.ToString(); //request["MerchantId"] = "All"; if (keyword != null) { request["Keywords"] = keyword; } return(GetResponse(request)); }