locked
Get Amazon Price

    Question

  • In my windows 8 app I want the user to be able to get the price for an item. The best way I can think to do that would be to check amazon however getting this set up is proving more difficult than I thought. I know HTML/CSS/JS well, however I am not familiar with XML which is what the API is in:

    http://docs.aws.amazon.com/AWSECommerceService/2011-08-01/DG/ItemSearch.html

    How can I perform this search using HTML/JS. The other alternative I saw was using "AWS SDK for JavaScript" however I saw another post in MSDN saying you are not allowed to use node.js which I think is the same thing?

    Any guidance would be appreciated. Thank you

    Friday, January 17, 2014 8:48 PM

Answers

  • Hi,

    AWS proposes 2 different SDKs for Javascript : one for Node.js, and one for browsers.

    In your case, you'll have to use the browsers SDK, which can be found at http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/browser-intro.html. As Rob said, Node.js is a server side environment for JS, and has nothing to do with WinJS.

    So you can download you SDK, include it in your JS files, and start using querying AWS using ajax. Ajax can be used in two ways in WinJS, using the build-in library (http://msdn.microsoft.com/en-us/library/windows/apps/br229787.aspx), or using jQuery if you're more confortable with it (versions 2.x are now [officially ?] supported).

    For AWS specifics, you'll have to read their documentation, or contact their support if you encounter any problem.

    Hope this helped you !

    Sylvain

    • Marked as answer by r.c.byrne Sunday, January 19, 2014 12:48 AM
    Saturday, January 18, 2014 10:36 AM

All replies

  • You'll need to talk to Amazon for specifics about their API. That said, the AWS SDK for JavaScript looks like it is based on standard HTML and JavaScript and so likely will work fine in a Windows Store app. Node.js is a server side library and is unlikely to be related to the AWS SDK.

    --Rob

    Friday, January 17, 2014 11:17 PM
    Owner
  • Hi,

    AWS proposes 2 different SDKs for Javascript : one for Node.js, and one for browsers.

    In your case, you'll have to use the browsers SDK, which can be found at http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/browser-intro.html. As Rob said, Node.js is a server side environment for JS, and has nothing to do with WinJS.

    So you can download you SDK, include it in your JS files, and start using querying AWS using ajax. Ajax can be used in two ways in WinJS, using the build-in library (http://msdn.microsoft.com/en-us/library/windows/apps/br229787.aspx), or using jQuery if you're more confortable with it (versions 2.x are now [officially ?] supported).

    For AWS specifics, you'll have to read their documentation, or contact their support if you encounter any problem.

    Hope this helped you !

    Sylvain

    • Marked as answer by r.c.byrne Sunday, January 19, 2014 12:48 AM
    Saturday, January 18, 2014 10:36 AM