django-gcm
django-gcm copied to clipboard
curl request incomplete
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/