Reply To: REST Connector

homepage Forums HMI Support REST Connector Reply To: REST Connector

#1058
grzegorz914
Moderator

To check dynamic domain iP adress I use google api:

Rest Connector config:

Name       DyndnsIP
baseApiUrL  "https://dns.google.com"
method      "POST"
restPath    "/resolve?name=YourDomainName&type=A"
httpHeader  {"Content-Type":"application/json"}
requestBody  {}

to resolve address from response I use text field where value is:

if DyndnsIP.statusCode == 200 then DyndnsIP.response["Answer"][0]["data"]

I thin it Ii clear.

  • This reply was modified 9 months, 2 weeks ago by grzegorz914.
  • This reply was modified 9 months, 2 weeks ago by grzegorz914.