Jsonp: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Mpolo
Added jsonp
(No difference)

Revision as of 13:56, 3 March 2011

Our api can also be called from browser pages directly using JSON Padding.

Info

  • format: jsonp
  • jscb: Optional callback function name or defaults to scApiCall

Parameters

Simply add a format parameter to any call and you will get the json response wrapped in a function called scApiCall.

Example

REQUEST:

https://api.safecreative.org/v2/?component=ztime&format=jsonp

Test it on your browser

RESPONSE:

scApiCall({"ztime": "1299160340948"})