Currently trying to build my first android app with a GCM API key which will be used by a piece of marketing software to send push notifications.
Wanted to get some help validating my google cloud message (GCM) API key with a curl request. I've tried using a online curl builder but the results dont match the success or error message im expecting.
The below request has been copied from the push sdk documentation. If it comes back with a 401 error i need to update my GCM project to a FCM project.
curl --header "Authorization: key=AIzaSyBIuNzItgztXS31MYdl0xnszQcAUO7lbOg"
--header Content-Type:"application/json"
https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"ABC\"]}"
I would obviously love to know how to do this myself also.
Thanks in advance.
Unauthorized
Error 401
– chris May 23 '17 at 05:20