Skip to content

Commit 74ce885

Browse files
author
dev_chenjiawen
committed
feixed error
1 parent dba51a4 commit 74ce885

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

Source/FikaAmazonAPI/Services/CatalogItemService.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,31 +113,31 @@ public async Task<IList<Categories>> ListCatalogCategoriesAsync(string ASIN, str
113113

114114
#region 2022-04-01
115115

116-
/// <summary>
117-
/// Retrieves details for an item in the Amazon catalog.
118-
/// </summary>
119-
/// <param name="ASIN"></param>
120-
/// <param name="SellerSKU"></param>
121-
/// <param name="MarketPlaceID"></param>
122-
/// <returns></returns>
123-
/// <exception cref="InvalidDataException"></exception>
124-
public async Task<Item> GetCatalogItem202204Async(ParameterGetCatalogItem parameterGetCatalogItem)
125-
{
126-
if (string.IsNullOrEmpty(parameterGetCatalogItem.ASIN))
127-
throw new InvalidDataException("asin is a required property and cannot be null");
116+
///// <summary>
117+
///// Retrieves details for an item in the Amazon catalog.
118+
///// </summary>
119+
///// <param name="ASIN"></param>
120+
///// <param name="SellerSKU"></param>
121+
///// <param name="MarketPlaceID"></param>
122+
///// <returns></returns>
123+
///// <exception cref="InvalidDataException"></exception>
124+
//public async Task<Item> GetCatalogItem202204Async(ParameterGetCatalogItem parameterGetCatalogItem)
125+
//{
126+
// if (string.IsNullOrEmpty(parameterGetCatalogItem.ASIN))
127+
// throw new InvalidDataException("asin is a required property and cannot be null");
128128

129-
if (parameterGetCatalogItem == null || parameterGetCatalogItem.marketplaceIds == null || parameterGetCatalogItem.marketplaceIds.Count == 0)
130-
{
131-
parameterGetCatalogItem.marketplaceIds.Add(AmazonCredential.MarketPlace.ID);
132-
}
129+
// if (parameterGetCatalogItem == null || parameterGetCatalogItem.marketplaceIds == null || parameterGetCatalogItem.marketplaceIds.Count == 0)
130+
// {
131+
// parameterGetCatalogItem.marketplaceIds.Add(AmazonCredential.MarketPlace.ID);
132+
// }
133133

134-
var param = parameterGetCatalogItem.getParameters();
134+
// var param = parameterGetCatalogItem.getParameters();
135135

136-
await CreateAuthorizedRequestAsync(CategoryApiUrls.GetCatalogItem202204(parameterGetCatalogItem.ASIN), RestSharp.Method.GET, param);
137-
var response = await ExecuteRequestAsync<Item>();
136+
// await CreateAuthorizedRequestAsync(CategoryApiUrls.GetCatalogItem202204(parameterGetCatalogItem.ASIN), RestSharp.Method.GET, param);
137+
// var response = await ExecuteRequestAsync<Item>();
138138

139-
return response;
140-
}
139+
// return response;
140+
//}
141141
#endregion
142142
}
143143
}

Source/FikaAmazonAPI/Services/ProductPricingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public async Task<GetBatchOffersResponse> GetItemOffersBatchAsync(ParameterGetIt
8080
/*
8181
"requests": [
8282
{
83-
"uri": "/products/pricing/v0/items/B000P6Q7MY/offers",
83+
"uri": "/products/pricing/v0/items/{ASIN}/offers",
8484
"method": "GET",
8585
"queryParams": {
8686
"MarketplaceId": "ATVPDKIKX0DER",

0 commit comments

Comments
 (0)