Ordr.in APIs are designed to allow you to easily retrieve restaurant and menu data and then accept an order to be placed with a specified restaurant. Please see both our Restaurant API and our Order API.
All our APIs are RESTful and return JSON. You will first need to register a developer key if you have not already.
Once you have your key, API authentication happens in one of two ways. Every request should contain the following HTTP header:
X-NAAMA-CLIENT-AUTHENTICATION: id="[YOUR KEY HERE]", version="1"
However if you can not set the HTTP header fields, you can also add it to the query string as the _auth field. It is both the id and the version field separated by a comma. So for example (NB: version is always 1):
/rd/100?_auth=1,[YOUR KEY HERE]
If you need to send a request that is not GET or POST, but you are unable to specify a PUT or DELETE in your request, you can make the request as a POST and append:
?_method=PUT
or
?_method=DELETE
and it will be as if you had sent across the method normally.
If you are working in javascript there are two ways to access the API. If you can create a reverse proxy, this will naturally get around the same-origin restriction browsers put on XHRs.
An alternative to this is that the APIs will support JSONP. If you append to your request:
?jsonp=[your callback here]
All return results will be wrapped in a call out to the callback you specified. Please see wikipedia for more details on JSONP.