I am having a hard time figuring out how to specify the headers for a push notification post request.
I am sending the following:
Authorization AppKey:<My app secret>
Content-Type application/json
Accept application/vnd.urbanairship+json; version=3
Passing the following json payload:
{"audience":"all", "device_types": ["ios", "android"], "notification": { "ios": { "alert": "Hi World"}}}
I keep getting a 401 error saying that it's not authorized. I think it has something to do with the way I am specifying the app key. Could someone please show me how it should be written?
Thanks,
Lewis
Comments
4 comments