While it’s great Mashape allows cross domain request (and why isn’t this documented better?), I was just thinking about adding a simple endpoint to this API that would wrap the json into a jsonp with the provided callback function name.
If you want to consume the API via Javascript, the Mashape proxy supports CORS. So you can actually consume it by making a regular CORS request. For example jQuery already handles the CORS headers automatically, thus you can consume the API with the following script: https://gist.github.com/thefosk/5024297
While it’s great Mashape allows cross domain request (and why isn’t this documented better?), I was just thinking about adding a simple endpoint to this API that would wrap the json into a jsonp with the provided callback function name.
Parameters:
json: {“some” : “thing”}
callback: “do”
Result:
do({“some”:“thing”})
If you want to consume the API via Javascript, the Mashape proxy supports CORS. So you can actually consume it by making a regular CORS request. For example jQuery already handles the CORS headers automatically, thus you can consume the API with the following script: https://gist.github.com/thefosk/5024297