Make a Call with flate file feed #73
Unanswered
OliverZemke2021
asked this question in
Q&A
Replies: 3 comments 10 replies
-
Hello @OliverZemke2021 Please check this Example for change inventory https://github.com/abuzuhri/Amazon-SP-API-CSharp#feed-submit-for-change-quantity please let me know if that help you. |
Beta Was this translation helpful? Give feedback.
6 replies
-
string text = System.IO.File.ReadAllText(@"C:\Users\tareq\Downloads\Beispiel_Upload.txt");
var feedresultTXT = amazonConnection.Feed.SubmitFeed(text
, FeedType.POST_FLAT_FILE_INVLOADER_DATA
, new List<string>() { MarketPlace.UnitedArabEmirates.ID }
, null
, ContentType.TXT);
Thread.Sleep(1000 * 60);
var feedOutput = amazonConnection.Feed.GetFeed(feedresultTXT);
var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId);
var reportOutpit = outPut.Url; |
Beta Was this translation helpful? Give feedback.
1 reply
-
Try this code string text = System.IO.File.ReadAllText(@"C:\Users\tareq\Downloads\Beispiel_Upload.txt");
var feedresultTXT = amazonConnection.Feed.SubmitFeed(text
, FeedType.POST_FLAT_FILE_INVLOADER_DATA
, new List<string>() { MarketPlace.UnitedArabEmirates.ID }
, null
, ContentType.TXT);
string pathURL = string.Empty;
while (pathURL == string.Empty)
{
Thread.Sleep(1000 * 30);
var feedOutput = amazonConnection.Feed.GetFeed(feedresultTXT);
if (feedOutput.ProcessingStatus == AmazonSpApiSDK.Models.Feeds.Feed.ProcessingStatusEnum.DONE)
{
var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId);
pathURL = outPut.Url;
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @abuzuhri ,
first at all, your Library i really helpfull, thank you for that.
We have to migrate from the "old" mws to sp-api. We have a call with the feed POST_FLAT_FILE_INVLOADER_DATA, is there in your library an example for making such a call?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions