Closed jigneshk5 closed 3 years ago
Bearer
So, I need to make two http request for getting device info. Is there any way I can get the device state(switch) on startup using Sinric.pro library in Nodemcu.
For this you can use SinricPro.restoreDeviceStates(true);
Closing due to inactivity
I'm following this api doc: https://apidocs.sinric.pro/#api-Device-get_api_v1_devices__id
But I'm not able to make request correctly to get the device information.
I'm getting this error: { "success": false, "message": "Unauthorized" }
Although I'm making the request in following ways: Api: https://api.sinric.pro/api/v1/devices/5dc1564130xxxxxxxxxxxxxx with header: Authorization: Bearer {APP-KEY} Content-Type: application/x-www-form-urlencoded
Please help me out!