bogdal / django-gcm

Google Cloud Messaging Server in Django
https://django-gcm.readthedocs.org
BSD 2-Clause "Simplified" License
98 stars 42 forks source link

Usage of unregister API endpoint is unclear #19

Closed okal closed 8 years ago

okal commented 10 years ago

It is not clear from the documentation what sort of payload unregister accepts. What should be the contents of the JSON?

bogdal commented 10 years ago

Hi @okal. Unregister endpoint requires only dev_id param.

An example:

curl -X POST -H "Content-Type: application/json" -d '{"dev_id": "test"}' http://localhost:8000/gcm/v1/device/unregister/
bogdal commented 8 years ago

https://django-gcm.readthedocs.org/en/latest/registration.html#unregister

okal commented 8 years ago

:+1: Thanks.