Code Monkey home page Code Monkey logo

Comments (14)

bhushankummar avatar bhushankummar commented on May 20, 2024

Can you point out me which API would you like to use from below API?
http://docs.developer.amazonservices.com/en_IN/dev_guide/DG_IfNew.html

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

Hi,

It's the reports api. I've tried sending the query GET_CATEGORY_LISTINGS_DATA via requestReport and it sends it properly (breaking my category reports function in amazon), but it seems that it needs at least one param with the parent category or something like that. I don't know exactly.

Thank you so much.

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

@jesusvalle I did some research on this.

We have implemented all API calls which does support by Amazone MWS ScratchPad. Have you tried same API call using it?

Thank You

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

Hi again,

Yes, let me explain it better:

I think that the api call works fine, but this specific report query probably needs an extra param to work properly (like the category id, or the category name). Otherwise, the query breaks the amazon category reports system, and i have to call amazon to make them fix it every time.

I've searched all amazon documentation, but since it's a secret function, there's nothing on internet to know how to make it work properly from the api. Now, the only way to get the category report from amazon (the most complex items report, and the only one with bullet points) it's requesting it from seller central web manually.

So, the question is: do you know how can i pass a category in GET_CATEGORY_LISTINGS_DATA report query throught a parameter with the api?

One more time, thanks a lot for your attention, and sorry for the incoveniences.

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

For now, my call it's like this:

this.amazonMws.reports
.search({
Action: 'RequestReport',
MWSAuthToken: this.amzAccountData.MWSAuthToken,
ReportType: 'GET_CATEGORY_LISTINGS_DATA' <-- The type which breaks amazon
SellerId: this.amzAccountData.SellerId,
Version: '2009-01-01'
})

And as i can see, in https://mws.amazonservices.es/scratchpad/index.html there's an extra field called ReportOptions. Maybe can i pass something from there?

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

@jesusvalle
https://prnt.sc/iu94v6
Are you talking about this?

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

Yes, it is

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

@jesusvalle
I am not sure about that as there is no documentation available for that.
What I can help is you can pass an option directly to the API call just add the field name given on to the
Amazon ScratchPad directly. e.g if you would like to pass extra options you can do that directly. See below.

    amazonMws.reports.search({
        'Version': '2009-01-01',
        'Action': 'GetReport',
        'SellerId': 'SELLER_ID',
        'MWSAuthToken': 'MWS_AUTH_TOKEN',
        'ReportType':'REPORT_TYPE',
        'ReportOptions':'REPORT_OPTIONS'
    }, function (error, response) {
        if (error) {
            console.log('error ', error);
            return;
        }
        console.log('response', response);
    });

For debugging purpose use this, so you can watch your request.
export DEBUG=MWS:*

So if you do so then you will able to see the console as below :

  MWS:AmazonMwsResource params { host: 'mws.amazonservices.com', port: '443', path: '/Reports/2009-01-01?Version=2009-01-01&Action=GetReport&SellerId=SELLER_ID&MWSAuthToken=MWS_AUTH_TOKEN&ReportId=REPORT_ID&AWSAccessKeyId=YOUR_KEY&Timestamp=2018-03-21T11%3A48%3A03.752Z&SignatureVersion=2&SignatureMethod=HmacSHA256&Signature=C8l3zyIBxtXPnTmKNBScSVzbMt6b00mrQ4gU9KqDJpc%3D', method: 'GET', headers: { Accept: 'text/xml', 'Content-Type': 'text/xml', 'Content-MD5': 'xHMCEB8D4JpBzqm1moUIUg==' } } 

I am closing this issue as basically that is not supported by Amazon MWS itself.
However, We can keep continuing the discussion here.

Thank You

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

Yes, i know the fact about passing the same field from scratchpad in the api. But i still thinking in which format i have to pass the category to not break everything.

About the documentation, there's nothing on it, 100% confirmed.

Thank you.

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

Do you mean that in MWS Scratchpad you getting expected response?

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

http://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html
Here is the list of different APIs available for report by category.

from amazon-mws.

jesusvalle avatar jesusvalle commented on May 20, 2024

I know them, and like i've said before, it's a secret report type not listed in amazon's documentation.

from amazon-mws.

bhushankummar avatar bhushankummar commented on May 20, 2024

hmm. I understand.
In any case, let me know if you will able to make the call though ScratchPad or Library. I'll also do research on that and get back to you if I found anything.

from amazon-mws.

goodryanboy avatar goodryanboy commented on May 20, 2024

@jesusvalle Hi sir were you able to request properly the GET_CATEGORY_LISTINGS_DATA?

from amazon-mws.

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.