IOS Shortcuts app - Zipato API auth
I got an idea to make it possible to put the lights on directly from a widget in iOS with the build in app Shortcuts and the Zipato API. I am a total newbie on Shortcuts and Json but I have made an “Shortcut” shown in the pictures.
I got a user not exist or password is wrong error in the answer from server (last picture). I have checkt with a SHA-1 hash generator online and it seams that I hash the token right. First I hash the password, concatinate the nonce and password hash and then hash the concatenation.
If I have understand it correct no adjustment need to be done in the web interface to access thru the API. Am I correct?
EDIT: Link to the Shortcut if you want to try. https://www.icloud.com/shortcuts/0c395c38e7484167b605d46c141fa9bc