The
callback function
name is the same as the
callback
variable passed to the
URL
https://api.github.com/users/yui?callback=handleJSONP_variable
The content returned from the request:
handleJSONP_variable({"meta": {
"Content-Type": "application/javascript; charset=utf-8",
"Cache-Control": "public, max-age=60, s-maxage=60",
"Vary": "Accept",
"status": 200,
...
}, "data": {
"login": "yui",
"name": "YUI Library",
"company": null,
"blog": "http://yuilibrary.com/",
"location": "Sunnyvale, CA",
"email": null,
"public_repos": 31,
...
}})