Jsonp

From Safe Creative API
Revision as of 13:56, 3 March 2011 by w>Mpolo (Added jsonp)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"})