by P. Andreas Schmidt, IVE
Version 3 (October 10, 2022)
Download (71 downloads)
Update: just a few improvements
Just shows how to get the hmac sha256 hash digest for the sign in request, according to the example on their website
https://developer.tuya.com/en/docs/iot/singnature?id=Ka43a5mtx1gsc
I don't use the IoT and don't know anything else, I'm sorry. But I hope it still helps. It works in this scenario, for yours it might not be enough to just change the variables. E.g. in their example there's an empty line in the stringToSign between the headers and the url. Should that also be there when you have no headers? From the Java and nodejs demo my guess would be, yes. But...? I'm also certain that in more complex scenarios you'll have to adapt the flow more (e.g. the url as it's supposed to be). If I look at the Java example they give the function for making the stringToSign it's very elaborate, but seems to cover for any eventuality from the developers page. But I'm not going to implement that, somebody else who knows better (about http, Java, this API etc) and has the time can take it from here, I'm afraid.
Thx and credit to Param for his hcam hash flow! Great job!
https://llamalab.com/automate/community/flows/38171
5 stars | 2 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.