Using JSONP, JSON with padding

What does it do?
JSONP is essentially a way around Same Origin Policy. Same Origin Policy limits requests made with XMLHttpRequest to servers on the same domain as the page running the JavaScript. JSONP offers you a way around this with a little server-side cooperation. JSONP works with a little <script> tag injection as an alternative.

For more information check out these common resources:
Attributes
Each query URL will have required and optional parameters that must be included to complete a query.
Parameters Required Options
apiKey yes String Value
For more information, see Requesting a Key.
format yes String Value
json
callback yes String Value
Basic Examples
#1 This is the most basic query that will return page 1 of all products in JSONP with the function of fooFunction.
          http://api.remix.bestbuy.com/v1/products?format=json&callback=fooFunction&apiKey={YourApiKey}
#2 This is the most basic query that will return page 1 of all stores in JSONP with the function of fooFunction.
          http://api.remix.bestbuy.com/v1/stores?format=json&callback=fooFunction&apiKey={YourApiKey}
#3 This is the most basic query that will return page 1 of all categories in JSONP with the function of fooFunction.
          http://api.remix.bestbuy.com/v1/categories?format=json&callback=fooFunction&apiKey={YourApiKey}

Comments