(self)
return self.request.get(f'https://{self.BASE_URL}/hmsweb/users/locations')
This call returns the following:
        {
          "id":"XXX-XXXXXXX_20160823042047",
          "name":"Home",
          "ownerId":"XXX-XXXXXXX",
          "longitude":X.XXXXXXXXXXXXXXXX,
          "latitude":X.XXXXXXXXXXXXXXXX,
          "address":"123 Middle Of Nowhere Bumbfuck, EG, 12345",
          "homeMode":"schedule",
          "awayMode":"mode1",
          "geoEnabled":false,
          "geoRadius":150.0,
          "uniqueIds":[
             "XXX-XXXXXXX_XXXXXXXXXXXXX"
          ],
          "smartDevices":[
             "XXXXXXXXXX",
             "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
          ],
          "pushNotifyDevices":[
             "XXXXXXXXXX"
          ]
        }
This call returns the following:
        {
          "id":"XXX-XXXXXXX_20160823042047",
          "name":"Home",
          "ownerId":"XXX-XXXXXXX",
          "longitude":X.XXXXXXXXXXXXXXXX,
          "latitude":X.XXXXXXXXXXXXXXXX,
          "address":"123 Middle Of Nowhere Bumbfuck, EG, 12345",
          "homeMode":"schedule",
          "awayMode":"mode1",
          "geoEnabled":false,
          "geoRadius":150.0,
          "uniqueIds":[
             "XXX-XXXXXXX_XXXXXXXXXXXXX"
          ],
          "smartDevices":[
             "XXXXXXXXXX",
             "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
          ],
          "pushNotifyDevices":[
             "XXXXXXXXXX"
          ]
        }
This call returns the following : { id : XXX - XXXXXXX_20160823042047 name : Home ownerId : XXX - XXXXXXX longitude : X . XXXXXXXXXXXXXXXX latitude : X . XXXXXXXXXXXXXXXX address : 123 Middle Of Nowhere Bumbfuck EG 12345 homeMode : schedule awayMode : mode1 geoEnabled : false geoRadius : 150 . 0 uniqueIds : [ XXX - XXXXXXX_XXXXXXXXXXXXX ] smartDevices : [ XXXXXXXXXX XXXXXXXX - XXXX - XXXX - XXXX - XXXXXXXXXXXX ] pushNotifyDevices : [ XXXXXXXXXX ] }
def GetLocations(self):
        """
        This call returns the following:
        {
          "id":"XXX-XXXXXXX_20160823042047",
          "name":"Home",
          "ownerId":"XXX-XXXXXXX",
          "longitude":X.XXXXXXXXXXXXXXXX,
          "latitude":X.XXXXXXXXXXXXXXXX,
          "address":"123 Middle Of Nowhere Bumbfuck, EG, 12345",
          "homeMode":"schedule",
          "awayMode":"mode1",
          "geoEnabled":false,
          "geoRadius":150.0,
          "uniqueIds":[
             "XXX-XXXXXXX_XXXXXXXXXXXXX"
          ],
          "smartDevices":[
             "XXXXXXXXXX",
             "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
          ],
          "pushNotifyDevices":[
             "XXXXXXXXXX"
          ]
        }
        """
        return self.request.get(f'https://{self.BASE_URL}/hmsweb/users/locations')
def GetLocations ( self ) : return self . request . get ( f'https://{self.BASE_URL}/hmsweb/users/locations' )