/// <summary> /// Submit data feed. /// </summary> public void SubmitFeed() { Console.WriteLine("SubmitFeed"); // Create Request ItemSubscriptionFeedRequest req = new ItemSubscriptionFeedRequest() { Message = new ItemSubscriptionFeedRequestBody() { Item = new ItemSubscriptionFeedRequestBody.ItemSubscriptionFeedItem[] { new ItemSubscriptionFeedRequestBody.ItemSubscriptionFeedItem() { SellerPartNumber = "test1321313", Action = FeedItemSubscriptionAction.Add }, new ItemSubscriptionFeedRequestBody.ItemSubscriptionFeedItem() { SellerPartNumber = "tezsdzsdasd", Action = FeedItemSubscriptionAction.Remove } } } }; // Send your request and get response var feedstatus = datafeedCall.SubmitFeed_ItemSubscriptionFeed(req).Result; // Use the data pre you business Console.WriteLine(string.Format("There are {0} Response messages.", feedstatus.GetResponseBody().ResponseList.Count)); }
public async Task <ItemSubscriptionFeedResponse> SubmitFeed_ItemSubscriptionFeed(ItemSubscriptionFeedRequest reqModel, ConnectSetting connectSetting = null, LoggingConfiguration logSetting = null) { var request = CreateRequest <ItemSubscriptionFeedRequest>(reqModel); request.URI = "datafeedmgmt/feeds/submitfeed"; request.QueryParams.Add("requesttype", RequestType.ITEM_SUBSCRIPTION.ToString()); var response = await client.PostAsync(request, connectSetting); var result = await ProcessResponse <ItemSubscriptionFeedResponse>(response); return(result); }