21
21
using FikaAmazonAPI . AmazonSpApiSDK . Models . Token ;
22
22
using FikaAmazonAPI . AmazonSpApiSDK . Services ;
23
23
using static FikaAmazonAPI . AmazonSpApiSDK . Models . Token . RestrictedResource ;
24
+ using FikaAmazonAPI . AmazonSpApiSDK . Models . Reports ;
24
25
25
26
namespace FikaAmazonAPI . Sample
26
27
{
@@ -30,6 +31,7 @@ static async Task Main(string[] args)
30
31
{
31
32
32
33
34
+
33
35
AmazonConnection amazonConnection = new AmazonConnection ( new AmazonCredential ( )
34
36
{
35
37
AccessKey = Environment . GetEnvironmentVariable ( "AccessKey" ) ,
@@ -38,12 +40,37 @@ static async Task Main(string[] args)
38
40
ClientId = Environment . GetEnvironmentVariable ( "ClientId" ) ,
39
41
ClientSecret = Environment . GetEnvironmentVariable ( "ClientSecret" ) ,
40
42
RefreshToken = Environment . GetEnvironmentVariable ( "RefreshToken" ) ,
41
- MarketPlace = MarketPlace . UnitedArabEmirates ,
43
+ MarketPlace = MarketPlace . UnitedArabEmirates , //MarketPlace.GetMarketPlaceByID("A2VIGQ35RCS4UG")
42
44
IsActiveLimitRate = true
45
+ } ) ;
46
+
47
+ var marketplaceById = MarketPlace . GetMarketPlaceByID ( "A2VIGQ35RCS4UG" ) ;
48
+
49
+ var data2222 = amazonConnection . Seller . GetMarketplaceParticipations ( ) ;
50
+
43
51
52
+ ReportsSample reportsSample = new ReportsSample ( amazonConnection ) ;
53
+
54
+ DateTime startDate = new DateTime ( 2021 , 10 , 03 ) ;
55
+ //DateTime endDate = new DateTime(2021, 10, 10);
56
+ //ReportOptions reportOptions = new ReportOptions();
57
+ //reportOptions.Add("ShowSalesChannel","true");
58
+ //reportOptions.Add("", "");
59
+
60
+ //getCatalogItem
61
+ var CatList2 = amazonConnection . CatalogItem . GetCatalogItem ( "B07NP8W4FM" ) ;
62
+ var CatList = amazonConnection . CatalogItem . GetCatalogItem ( "B01N1LL62W" ) ;
63
+ var CatList3 = amazonConnection . CatalogItem . GetCatalogItem ( "B01J28O9C0" ) ;
64
+
65
+ var ddd = amazonConnection . ProductPricing . GetCompetitivePricing ( new Parameter . ProductPricing . ParameterGetCompetitivePricing ( )
66
+ {
67
+ Asins = new [ ] { "B07XWTQ6HW" } ,
68
+ MarketplaceId = MarketPlace . UnitedArabEmirates . ID
44
69
} ) ;
45
70
46
- //ReportsSample reportsSample = new ReportsSample(amazonConnection);
71
+ var data11111 = amazonConnection . Reports . CreateReportAndDownloadFile ( ReportTypes . GET_MERCHANT_LISTINGS_ALL_DATA ) ;
72
+ var data = amazonConnection . Reports . CreateReportAndDownloadFile ( ReportTypes . GET_FBA_REIMBURSEMENTS_DATA , startDate , null , null ) ;
73
+
47
74
48
75
//reportsSample.GetReportGET_FBA_REIMBURSEMENTS_DATA();
49
76
//reportsSample.GetReportGET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATEs();
@@ -91,7 +118,7 @@ static async Task Main(string[] args)
91
118
Asins = new string [ ] { "B00LZ0VSMI" }
92
119
} ) ;
93
120
94
- var data = amazonConnection . ProductPricing . GetListingOffers ( new Parameter . ProductPricing . ParameterGetListingOffers ( )
121
+ var data3 = amazonConnection . ProductPricing . GetListingOffers ( new Parameter . ProductPricing . ParameterGetListingOffers ( )
95
122
{
96
123
ItemCondition = ItemCondition . New ,
97
124
MarketplaceId = MarketPlace . UnitedArabEmirates . ID ,
0 commit comments