-
-
Notifications
You must be signed in to change notification settings - Fork 191
API
Dongsheng Cai edited this page Aug 13, 2014
·
13 revisions
URL: http://localhost:8000/api/v2/push
Accept:application/json
Host:localhost:8000
X-AN-APP-NAME: moodle
X-AN-APP-KEY: XXXXXXXXXXXX
{
"device": "ios",
"token": "FE66489F304DC75B8D6E8200DFF8A456E8D0",
"alert": "Hello from AirNotifier",
"sound": "Submarine.aiff",
"badge": 1
}
HTTP/1.1 202 ACCEPTED
Content-Length: 16
Content-Type: application/json; charset=utf-8
Server: TornadoServer/2.2
POST /api/v2/tokens
Accept:application/json
Host:localhost:8000
X-AN-APP-NAME: moodle
X-AN-APP-KEY: XXXXXXXXXXXX
{
"device":"ios",
"token":"id192809sdfi23uwdifj",
"chanel":"default"
}
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
DELETE /api/v2/tokens/xxxxxxxxxxxxxxxxxxxxxxxx
Accept:application/json
Host:localhost:8000
X-AN-APP-NAME: moodle
X-AN-APP-KEY: XXX
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