Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl request incomplete #54

Open
annamarianfr opened this issue Apr 19, 2016 · 0 comments
Open

curl request incomplete #54

annamarianfr opened this issue Apr 19, 2016 · 0 comments

Comments

@annamarianfr
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant