Skip to content

Commit 71e12aa

Browse files
committed
test async
1 parent 342522c commit 71e12aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/FikaAmazonAPI.SampleCode/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ static async Task Main(string[] args)
3333

3434
var seller = await amazonConnection.Seller.GetMarketplaceParticipationsAsync();
3535

36-
var dataaa = amazonConnection.FbaInventory.GetInventorySummaries(new Parameter.FbaInventory.ParameterGetInventorySummaries
36+
var dataaa = await amazonConnection.FbaInventory.GetInventorySummariesAsync(new Parameter.FbaInventory.ParameterGetInventorySummaries
3737
{
3838
granularityType = AmazonSpApiSDK.Models.FbaInventory.Granularity.GranularityTypeEnum.Marketplace,
3939
granularityId = config.GetSection("FikaAmazonAPI:MarketPlaceID").Value
40-
}); ;
40+
});
4141

4242
ReportManager reportManager = new ReportManager(amazonConnection);
4343
var products = reportManager.GetProducts(); //GET_MERCHANT_LISTINGS_ALL_DATA
4444
var inventoryAging = reportManager.GetInventoryAging(); //GET_FBA_INVENTORY_AGED_DATA
45-
var ordersByDate = reportManager.GetOrdersByOrderDate(90); //GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL
46-
var ordersByLastUpdate = reportManager.GetOrdersByLastUpdate(90); //GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL
45+
var ordersByDate = await reportManager.GetOrdersByOrderDateAsync(90); //GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL
46+
var ordersByLastUpdate = await reportManager.GetOrdersByLastUpdateAsync(90); //GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL
4747
var settlementOrder = reportManager.GetSettlementOrder(90); //GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2
4848
var returnMFNOrder = reportManager.GetReturnMFNOrder(90); //GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE
4949
var returnFBAOrder = reportManager.GetReturnFBAOrder(90); //GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA

0 commit comments

Comments
 (0)