JSONP (JSON with Padding) is a technique for passing the results of a server request back to the client as a JavaScript function containing JSON data. To use JSONP with the Cooper Hewitt API, you must pass a callback paramater that refers to a function in the window scope of the calling page.

Example request

curl -X GET 'https://api.www-4.collection.cooperhewitt.org/rest/?method=cooperhewitt.labs.whatWouldMicahSay&access_token=****&format=jsonp&callback=myCallbackFunction'

Example response

myCallbackFunction({"micah":{"says":"Always have 8-12 projects on the go."},"stat":"ok"})