Hello,
I'm trying to translate in lua script this curl command but this doesn't work could you can help me please.
command for connexion:
curl -X POST https://api.danfoss.com/oauth2/token -H "Authorization: Basic [mytoken]" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials"
command query:
GET
/devices
You can query the details about operable devices, including properties and the latest status of the device.
HTTP request:
https://api.danfoss.com/ally/devices
Response Types:
200:
Thanks
I'm trying to translate in lua script this curl command but this doesn't work could you can help me please.
command for connexion:
curl -X POST https://api.danfoss.com/oauth2/token -H "Authorization: Basic [mytoken]" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials"
command query:
GET
/devices
You can query the details about operable devices, including properties and the latest status of the device.
HTTP request:
https://api.danfoss.com/ally/devices
Response Types:
200:
Thanks