|
1 | 1 | using FikaAmazonAPI.ConstructFeed;
|
2 | 2 | using FikaAmazonAPI.ConstructFeed.Messages;
|
3 | 3 | using FikaAmazonAPI.Parameter.Finance;
|
| 4 | +using FikaAmazonAPI.Parameter.ListingItem; |
| 5 | +using FikaAmazonAPI.Parameter.ListingsItems; |
4 | 6 | using FikaAmazonAPI.Parameter.Order;
|
5 | 7 | using FikaAmazonAPI.ReportGeneration;
|
6 | 8 | using FikaAmazonAPI.Utils;
|
@@ -31,6 +33,44 @@ static async Task Main(string[] args)
|
31 | 33 | MarketPlace = MarketPlace.GetMarketPlaceByID(config.GetSection("FikaAmazonAPI:MarketPlaceID").Value),
|
32 | 34 | IsActiveLimitRate = true
|
33 | 35 | });
|
| 36 | + var SKU = "693749790020"; |
| 37 | + var sellerId = "A3J37AJU4O9RHK"; |
| 38 | + |
| 39 | + ParameterPutListingItem myListing = new ParameterPutListingItem() |
| 40 | + { |
| 41 | + sellerId = sellerId, |
| 42 | + marketplaceIds = new string[] { MarketPlace.UnitedArabEmirates.ID }, |
| 43 | + sku = SKU, |
| 44 | + listingsItemPutRequest = new ListingsItemPutRequest() |
| 45 | + { |
| 46 | + productType = "LUGGAGE", |
| 47 | + requirements = Requirements.LISTING, |
| 48 | + |
| 49 | + //Example from https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2020-09-01-use-case-guide |
| 50 | + attributes = new ParameterAttributes() |
| 51 | + { |
| 52 | + condition_type = new List<ParameterAttributeItem>() { |
| 53 | + new ParameterAttributeItem() |
| 54 | + { |
| 55 | + value = "new_new", |
| 56 | + marketplace_id = MarketPlace.UnitedArabEmirates.ID |
| 57 | + } |
| 58 | + }, |
| 59 | + item_name = new List<ParameterAttributeItem>() |
| 60 | + { |
| 61 | + new ParameterAttributeItem() |
| 62 | + { |
| 63 | + value = "Thorne Research - Diabenil - Support for Maintaining Healthy Blood Sugar Levels - with Chromium, ALA, and Quercetin Phytosome - 90 Capsules - ", |
| 64 | + language_tag = "en_US", |
| 65 | + marketplace_id = MarketPlace.UnitedArabEmirates.ID |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | + } |
| 70 | + }; |
| 71 | + |
| 72 | + var response = amazonConnection.ListingsItem.PutListingsItem(myListing); |
| 73 | + |
34 | 74 |
|
35 | 75 | ReportManager reportManager2 = new ReportManager(amazonConnection);
|
36 | 76 | var products2 = await reportManager2.GetReturnFBAOrderAsync(3); //GET_MERCHANT_LISTINGS_ALL_DATA
|
|
0 commit comments