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

curl request incomplete #54

Open annamarianfr opened 8 years ago

annamarianfr commented 8 years ago

The requests provided in the documentation won't work when adding user field to device. Instead of: curl -X POST -H "Content-Type: application/json" -d '{"dev_id": "test", "reg_id":"abcd", "name":"test device"}' http://localhost:8000/gcm/v1/device/register/ it should be: curl -X POST -H "Authorization: apikey email@email.com:<api_key>" -H "Content-Type: application/json" -d '{"dev_id": "test", "reg_id":"abcd", "name":"test device"}' http://localhost:8000/gcm/v1/device/register/