Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925
edits
No edit summary |
|||
| Line 94: | Line 94: | ||
'''On every request, you must set both the "Accept" and "Content-Type" HTTP headers to the MIME type of the data format you are using to communicate with the API.''' Content-Type tells the API how to interpret your request, and Accept tells it how you want your data back. | '''On every request, you must set both the "Accept" and "Content-Type" HTTP headers to the MIME type of the data format you are using to communicate with the API.''' Content-Type tells the API how to interpret your request, and Accept tells it how you want your data back. | ||
Currently, the API | Currently, the API only supports JSON (MIME type: "application/json") and JSONP (MIME type: "application/javascript" - add a "callback" parameter to name your callback). There are no plans for this to change. | ||
== Errors == | == Errors == | ||