Skip to content

Instantly share code, notes, and snippets.

@nandha-dev
Created July 15, 2015 09:34
Show Gist options
  • Save nandha-dev/35ee16f76e33b68d0810 to your computer and use it in GitHub Desktop.
Save nandha-dev/35ee16f76e33b68d0810 to your computer and use it in GitHub Desktop.
Curl request for GCM from terminal
curl -H "Content-Type:application/json" -H "Authorization:key:<APP SERVER KEY>" -X POST -d '{"to":"/topics/<TOPIC>","data":{"message":"test"}}' https://gcm-http.googleapis.com/gcm/send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment