Json call doesnt see admin right
Posted: Friday 21 July 2023 20:40
I want to change switches via a API call, so first of all I tested if I can connect to Domiticz with:
https://USERNAME:[email protected]:4 ... getversion and also tried the variant where USERNAME and PASSWORD are base64 encoded. In both cases I get this result:
But the username and password I use are those from an admin, I also tried adding a new admin and tried with these credentials, but this gives the same result. WhenI i try other json parameters I get the Unauthorized page. So something seems the go wrong.
What is the correct way to connect?
https://USERNAME:[email protected]:4 ... getversion and also tried the variant where USERNAME and PASSWORD are base64 encoded. In both cases I get this result:
According to the documentation: https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's, this is the result: When requested by a (non-admin) User (which is the current default response for users){
"HaveUpdate" : false,
"UseUpdate" : false,
"build_time" : "2023-02-14 15:06:40",
"dzvents_version" : "3.1.8",
"hash" : "f9b9ac774",
"python_version" : "3.7.3 (default, Jan 22 2021, 20:04:44) \n[GCC 8.3.0]",
"status" : "OK",
"title" : "GetVersion",
"version" : "2023.1"
}
But the username and password I use are those from an admin, I also tried adding a new admin and tried with these credentials, but this gives the same result. WhenI i try other json parameters I get the Unauthorized page. So something seems the go wrong.
What is the correct way to connect?