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
#1
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
Reply
#2
Hello
in this post there is an example of using curl for an API called eSios. It can serve as a starting point.
https://forum.logicmachine.net/showthrea...3#pid22153
Greetings
Reply


Forum Jump: