This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Danfoss API

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 -H "Authorization: Basic [mytoken]" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials"

command query:


You can query the details about operable devices, including properties and the latest status of the device.
HTTP request:
Response Types:

in this post there is an example of using curl for an API called eSios. It can serve as a starting point.

Forum Jump: