/receive¶Send device token http://127.0.0.1:8000/receive with UUID.
| Name | Type | Required | Note |
|---|---|---|---|
| device_token | String | YES | 64 letters |
| uuid | String | YES | 36 letters |
| sandbox | Bool | YES |
PUTapplication/jsonnotification.models.DeviceToken{"result": "success"}{"error": "Bad Request"}notification.models.DeviceToken has user field so you can also associate users by applying django.contrib.auth.models.User.
$ curl -X PUT http://127.0.0.1:8000/receive \
-d '{"device_token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "uuid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "sandbox": true}'
/send¶It is possible to send a push notification easily.
Real route is /send/<TARGET_MODE>/<DEVICE_TOKEN>.
01http://127.0.0.1:8000/send/0/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX?message=test%20push%20notification
http://127.0.0.1:8000/send/1/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
/cert_upload¶Upload push notifications’ certificates by superuser.
Note
/login¶Login to session.
/logout¶Logout from session.