Announcement

Collapse
No announcement yet.

Any Homeseer script command for doing REST/web call??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Any Homeseer script command for doing REST/web call??

    Seems there is / use to be but I cannot find it in the documentation. I need to get the return value.

    Something like this would be great:

    return = hs.RESTcall('GET',"http://somesite.com/foo")

    Ideally, it would do GET and POSTs. The alternative is to write a vb script and do a process/shell call to 'curl' which I'd like to avoid!

    Thanks!

    #2
    https://help.homeseer.com/help/HS3/s...rnet_urlaction
    Jon

    Comment


      #3
      Most excellent. I'm on HS4 and didn't think to look at "legacy" doc. Thanks.

      Comment


        #4
        I don't believe the HS4 Scripting documentation is completed but for future reference can be found here: https://docs.homeseer.com/display/HS4/Scripting
        Jon

        Comment


          #5
          Thanks, that's where I was looking and the web call is not covered. By the way, I once found the so-called JSON documentation (better described as REST or web interface) and cannot find it again. Do you have to know where that is hidden?? Thanks.

          Comment


            #6
            https://docs.homeseer.com/display/HSPI/JSON+API
            Jon

            Comment


              #7
              Thanks much. I'm not a plug-in developer, just a technical user, so that's why I couldn't find it. API looks like it got richer.

              Comment

              Working...
              X