IOS Shortcuts app - Zipato API auth

Karl Zander shared this idea 14 days ago
Under Consideration

Hi,

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

2d951af17a5d9fc92c7a64086f0d9720

1e9b96a6cea61e993c304b33b22c5f39

7b732084773fa77609923330b18b5d09

5afc7779d44b42d5b79b0d29b103706c