From 7cfdcc93f0be2e95b28476a963b6a9711fd7f134 Mon Sep 17 00:00:00 2001 From: Renzo Date: Thu, 18 Aug 2022 11:18:37 +0100 Subject: [PATCH] Added support for JSON content type Added support for JSON content type to be able to submit JSON_LISTINGS_FEED feed type --- Source/FikaAmazonAPI/Services/FeedService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/FikaAmazonAPI/Services/FeedService.cs b/Source/FikaAmazonAPI/Services/FeedService.cs index 277a6d3e..439dc19b 100644 --- a/Source/FikaAmazonAPI/Services/FeedService.cs +++ b/Source/FikaAmazonAPI/Services/FeedService.cs @@ -182,6 +182,10 @@ public async Task SubmitFeedAsync(string XmlContentOrFilePath, FeedType { _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType); } + else if (contentType == ContentType.JSON) + { + _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType); + } else if (contentType == ContentType.TXT) { _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType);