DEVELOPERS AREA > EBAY RESEARCH API > GETTING STARTED > SAMPLE CODE DOWNLOADS >
XSL HTML REST IMPLEMENTATION DOCUMENTATION
Description:
A client-side javascript application. This example calls the REST API Interface and decodes the results using a client-side XSL stylesheet. This example has identical functionality to the server-side PHP Example, but all of the html is created client side with the XSL transform. This example makes REST calls to Version 2 of the GetResearchResults API.

Download:

Installation:
1) Extract all files from the ZIP. Be sure to extract the files with Folder Names intact.
2) Open research_app.js.
3) On line 29, replace <put token here>, <put user token here>, and <put developer name here> with the appropriate tokens from your sandbox account.
Now opening researcher.html in your web browser should display an interface.

Notes:
  • This example currently is only tested in Microsoft Internet Explorer.
  • This example is insecure! Your tokens are visible to the public in research_app.js!
  • You will want to somehow obscure your tokens before releasing an app based on this code to the public.

  • Troubleshooting:
    The interface does not display any results, instead it displays 'NaN'. What's wrong?
    Make sure that your tokens are correctly inserted into research_app.js.
    When I open researcher.html, I get a blank screen. What's happening?
    Your browser may not support the javascript required to make the calls and transform the results. This example code is currently only tested in Microsoft Internet Explorer.
    I get a bunch of broken images in my browser when I load researcher.html. Is something wrong?
    You may have not extracted the files from the zip with folders intact. There should be a folder called 'images' in the folder containing researcher.html.

    Learn more by calling us at:
    1.888.483.DATA (3282)

    or by emailing us at: