Skip to content
dongsheng edited this page Apr 15, 2012 · 13 revisions

Send Notifications

POST

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

Accept:application/json
Host:localhost:8000
X-AN-APP-NAME: moodle
X-AN-APP-KEY: XXXXXXXXXXXX

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

POST

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

Accept:application/json
Host:localhost:8000
X-AN-APP-NAME: moodle
X-AN-APP-KEY: XXXXXXXXXXXX

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-NAME: moodle
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