Search code examples
google-chrome-extensionamazon-mws

Chrome Extension Connect To Amazon MWS


Whats the best way to connect a chrome extension to the Amazon MWS API's?

Should I store the credentials inside the javascript files?

How would I encrypt the credentials?

Thanks


Solution

  • I have done this a few times with various clients, whether they be web apps, or windows, or IOS clients. Doesn't matter, you create an API that your front ends will call and your API handles all the communication with MWS, hiding your access and secret keys from the client.

    I used to use a chrome plugin that talked to MWS to get pricing info. I wanted to figure out how they did it, so I looked at all their javascript and figured it out, including their keys. They quickly released a new version that called back to their servers, essentially following the method I describe above.