Hello Guys,
I’d need your heIp with this. I have this command in a bash script line what I want to use with OH Http Binding:
curl -X POST -d “grant_type=password&client_id=CLIENT_ID&username=EMAIL@DOMAIN.COM&password=MY_PASSWORD” https://api.authentication.husqvarnagroup.dev/v1/oauth2/token | jq ‘.json_info’
My Item looks like this, but it does not work. I believe it’s something about the “@” character, but I cannot figure out the solution.
String JSON_INFO “HTTP info [%s]” (Automower) { http=“<[https://api.authentication.husqvarnagroup.dev/v1/oauth2/token{grant_type=password&client_id=CLIENT_ID&username=EMAIL@DOMAIN.COM&password=MY_PASSWORD}:60000:JSONPATH($.my_info)]” }
Can you please help me with this?
Thanks,
Peter