Coder Social home page Coder Social logo

Comments (2)

amz-tools avatar amz-tools commented on August 23, 2024

Hi @carlosdavid-textilesmontecid,

it seems you forgot to upload and create the feed. Once you have called the createFeedDocument operation you next step would be calling the .upload() function, like this:
let res = await sellingPartner.upload(feed_upload_details, feed);

Then you have to call the createFeed operation, see the docs here. Only then the feed processing is triggered. You can then use the returned feedId to see the status of the processing with the getFeed operation and once it has the status DONE, you can use the resultFeedDocumentId as input for the getFeedDocument operation, which then returns the download details that you can then use as input to finally call the .download() function, that returns you the result of the uploaded feed.

Quite complicated with a chain of calls there, thats why we already have the plan to add something like a feed() function to the client that wraps up all these necessary calls in one function. It will be part of one of the next client releases but no time frame for that yet.

from amazon-sp-api.

carlosdavid-textilesmontecid avatar carlosdavid-textilesmontecid commented on August 23, 2024

Hi @amz-tools !

Yes, I was trying to do the whole process but I haven't been returning anything with the .download() function, I thought it was because of the signature error that I was receiving.
As you told me to continue the process, I focused instead on the function (with the debugger tool I could be able to get the body of the response after decrypted) and found that I haven't been declaring the file where I wanted the result.
Now I can see the content of the response.

Thank you very much for the detailed answer, and of course, for the whole library!

from amazon-sp-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.