-
Notifications
You must be signed in to change notification settings - Fork 11
API script
Manuel Strehl edited this page Aug 2, 2013
·
4 revisions
Template for this request:
http://codepoints.net/api/v1/script/{script*}{?callback}
where {script*}
is one or more ISO 15924 script
codes of interest, e.g.,
Latn
for Latin or Arab
for Arabic. More codes are separated by comma. The
case is significant, that is, the first letter of every script must be
upper-case, the three following must be lower-case.
{?callback}
is an optional callback function name to perform a JSON-P
request.
A response for the request to /api/v1/script/Latn,Arab,WrongScript
looks
like this:
{
"Latn": {
"name": "Latin",
"abstract": "<p>...</p>",
"src": "http://en.wikipedia.org/wiki/Latin_script"
},
"Arab": {
"name": "Arabic",
"abstract": "<p>...</p>",
"src": "http://en.wikipedia.org/wiki/Arabic_script"
},
"WrongScript": null
}
- 404 Not Found: If the value for
{script}
is no comma-separated list of recognized ISO 15924 script codes.