django-gcm icon indicating copy to clipboard operation
django-gcm copied to clipboard

curl request incomplete

Open annamarianfr opened this issue 8 years ago • 0 comments

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 protected]:<api_key>" -H "Content-Type: application/json" -d '{"dev_id": "test", "reg_id":"abcd", "name":"test device"}' http://localhost:8000/gcm/v1/device/register/

annamarianfr avatar Apr 19 '16 07:04 annamarianfr