Skip to content
dongsheng edited this page Mar 26, 2012 · 13 revisions

Send Notifications

Request (POST)

Request URL: http://localhost:8000/notifications/

Accept:application/json
Host:localhost:8000
X-AN-APP-ID: 2
X-AN-APP-KEY: XXX

alert=notification+message&token=xxxxxxxxxxxxxxxxxxxxxxxx

Response

HTTP/1.1 200 OK
Content-Length: 16
X-Powered-By: AirNotifier/1.0
Content-Type: application/json; charset=utf-8
Server: TornadoServer/2.2
{"status": "ok"}

Add Tokens

Request (POST)

Request URL: http://localhost:8000/tokens/xxxxxxxxxxxxxxxxxxxxxxxx

Accept:application/json
Host:localhost:8000
X-AN-APP-ID: 2
X-AN-APP-KEY: XXX

Response

HTTP/1.1 200 OK
Content-Length: 16
X-Powered-By: AirNotifier/1.0
Content-Type: application/json; charset=utf-8
Server: TornadoServer/2.2
{"status": "ok"}

Delete Tokens

Request (DELETE)

Request URL: http://localhost:8000/tokens/xxxxxxxxxxxxxxxxxxxxxxxx

Accept:application/json
Host:localhost:8000
X-AN-APP-ID: 2
X-AN-APP-KEY: XXX

Response

HTTP/1.1 200 OK
Content-Length: 16
X-Powered-By: AirNotifier/1.0
Content-Type: application/json; charset=utf-8
Server: TornadoServer/2.2
{"status": "ok"}

User management

Create user (POST)

Delete user (DELETE)

Update User (PATCH)

Data storage

Add data object

Delete Data object

Clone this wiki locally