The AdOr API is organized around REST. Our API accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Please note that the API is still under development and the documentation and is subject to change without notice.
The AdOr API uses API keys to authenticate your request. Your API key has access to your database, so keep them secure. Do not share your API key in publicly accessible areas!
All API requests will follow the same format.
SERVER will be given to you when the integration api is setup for your site, it will be the same server you use on the mobile client
PORT will be given to you when the integration api is setup for your site
All requests will have at least the X-AUTH-TOKEN key with your API Key as the value. See the individual actions on the interfaces for additional headers
The request body will be a JSON object with the following properties:
- Datatype - String.
- Detail - The name of the interface you want to hit.
- Datatype - Boolean.
- Detail - Specifies whether or not you would like to have the detailed data returned.
- Datatype - JSON array.
- Detail - JSON array of the data required for the selected interface. (see the individual documents)
"interfaceName" : "interfaceName",
"returnDetailedData" : true/false,