Announcement

Collapse
No announcement yet.

Problem with JSON API "getsystems"

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

    Problem with JSON API "getsystems"

    I am passing this query:

    GET http://192.168.75.129/JSON?user=UUU&...est=getsystems HTTP/1.1

    On version 4.1.6.0.

    The response is:

    { "Response":"Error, bad request" }

    I'm sure this used to work with older version of HomeSeer. I have tried both with query parameters, and without using HS4 Username and Password credentials. I can confirm that the username and password are correct, as they work on other API's.

    Has this recently broken?

    #2
    It should be "&username={u}&password={p}"

    Comment


      #3
      You can also find the updated API at https://docs.homeseer.com/display/HSPI

      Comment


        #4
        Originally posted by teverett View Post
        I am passing this query:

        GET http://192.168.75.129/JSON?user=UUU&...est=getsystems HTTP/1.1

        On version 4.1.6.0.

        The response is:

        { "Response":"Error, bad request" }

        I'm sure this used to work with older version of HomeSeer. I have tried both with query parameters, and without using HS4 Username and Password credentials. I can confirm that the username and password are correct, as they work on other API's.

        Has this recently broken?
        Never seen getsystems in the JSON documentation. Were you thinking of "getstatus" ?
        Jon

        Comment


          #5
          Originally posted by jon00 View Post

          Never seen getsystems in the JSON documentation. Were you thinking of "getstatus" ?
          https://help.homeseer.com/help/HS3SD...ling_with_json

          Comment


            #6
            Yes, but that is only for myhs.homeseer.com and not from the Homeseer JSON interface.
            Jon

            Comment


              #7
              Originally posted by jon00 View Post

              Yes, but that is only for myhs.homeseer.com and not from the Homeseer JSON interface.
              I guess you are right

              Comment


                #8
                Originally posted by alexbk66 View Post
                It should be "&username={u}&password={p}"
                Here is the documentation I am referring to:

                https://docs.homeseer.com/display/HSPI/getsystems

                It says:

                https://myhs.homeseer.com/getsystems...&pass=PASSWORD

                Comment


                  #9
                  https://myhs.homeseer.com means myhs, not the local IP you have in OP

                  Comment


                    #10
                    Originally posted by alexbk66 View Post

                    https://myhs.homeseer.com means myhs, not the local IP you have in OP
                    Ah I see. Thanks.

                    Comment

                    Working...
                    X