Sending Notification & Registering Device in Notification Hub
Hi,
I am using Azure Notification Hub's REST APIs for registering devices (Android & iOS) & sending Notifications to it. I am intended to use them in Node JS API (written by me). Before that, I tried it on Postman and got 401 error having put the API url (https://europaNotificationHub.servicebus.windows.net/NotifyHub/registrations/?api-version=2020-06) Header: Content-Type: application/JSON, Authorization: Full Access Endpoint, x-ms-version: 2020-06. The body contains registration id: deviceToken, platform (gcm, fcm, apns, wns) & channelUri: deviceToken
When called from Postman, it gives a 401 unauthorized response code. Same happens in Node API (using axios).
Please provide a solution or suggestion over this.