Hello,
Want to read state from API: GET https://home.myopenhab.org/rest/items/item_id/state
Have tried:
Allowed basic authentication in API security.
-
Added header: "Authorization: Basic Base64(username:password)
Username and password are same which I use to log in to https://myopenhab.org
Status: 401 Unauthorized -
Added header: "Authorization: Bearer token
token was generated from user profile
Status: 401 Unauthorized
After log in in browser to https://myopenhab.org this “Get” API request works fine in browser.
How Authentication should be done?
Thanks.