Skip to content

Commit 7e751c6

Browse files
committed
marketplace id
1 parent 6fed3e1 commit 7e751c6

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

Source/FikaAmazonAPI.SampleCode/Program.cs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
using FikaAmazonAPI.ConstructFeed;
2-
using FikaAmazonAPI.ConstructFeed.Messages;
3-
using FikaAmazonAPI.Parameter.Finance;
4-
using FikaAmazonAPI.Parameter.ListingItem;
5-
using FikaAmazonAPI.Parameter.ListingsItems;
6-
using FikaAmazonAPI.ReportGeneration;
7-
using FikaAmazonAPI.Utils;
1+
using FikaAmazonAPI.ReportGeneration;
82
using Microsoft.Extensions.Configuration;
9-
using static FikaAmazonAPI.AmazonSpApiSDK.Models.ListingsItems.ListingsItemPutRequest;
103
using static FikaAmazonAPI.Utils.Constants;
114

125
namespace FikaAmazonAPI.SampleCode
@@ -30,12 +23,25 @@ static async Task Main(string[] args)
3023
ClientId = config.GetSection("FikaAmazonAPI:ClientId").Value,
3124
ClientSecret = config.GetSection("FikaAmazonAPI:ClientSecret").Value,
3225
RefreshToken = config.GetSection("FikaAmazonAPI:RefreshToken").Value,
33-
MarketPlace = MarketPlace.GetMarketPlaceByID(config.GetSection("FikaAmazonAPI:MarketPlaceID").Value),
26+
MarketPlaceID = config.GetSection("FikaAmazonAPI:MarketPlaceID").Value,
3427
IsDebugMode = true
3528
});
3629

30+
31+
var offers = amazonConnection.ProductPricing.GetItemOffers(new Parameter.ProductPricing.ParameterGetItemOffers
32+
{
33+
Asin = "B004Z00S8U",//"B07MW2SSZD",// "B0026XRFY8",
34+
CustomerType = CustomerType.Consumer,
35+
ItemCondition = ItemCondition.New,
36+
});
37+
38+
39+
40+
41+
//B0026XRFY8
42+
3743
ReportManager reportManager1 = new ReportManager(amazonConnection);
38-
var list=await reportManager1.GetLedgerDetailAsync(10);
44+
var list = await reportManager1.GetLedgerDetailAsync(10);
3945

4046

4147
//var data2220002 = amazonConnection.Reports.CreateReportAndDownloadFile(

0 commit comments

Comments
 (0)