Somfy-Developer / Somfy-TaHoma-Developer-Mode

A collection of requests to use a local API with Somfy TaHoma gateways
139 stars 12 forks source link

First step does not work (anymore)... #148

Open FredM67 opened 6 hours ago

FredM67 commented 6 hours ago

When calling curl -d "userId=xxx.yyy@live.fr&userPassword=zzzzzz" -H "Content-Type: application/x-www-form-urlencoded" -X POST https://ha101-1.overkiz.com/enduser-mobile-web/ enduserAPI/login I receive: {"success":true,"roles":[{"name":"ENDUSER"}]}

There's no Cookie, how can I perform the second step ?

rustysponge commented 5 hours ago

I stumbled across this as well and I guess, I figured it out: I save the cookie from the login request by adding "-c ./cookie" as parameter. Now, the cookie data is saved to a file "cookie" and can be used with "-b ./cookie" in the next command.