listSites Retrieves a list of all available Vista "sites" End-Point is located at: https://devices.vantage.co/api/listSites.php Parameters are provided to the end-point as POST data in JSON format Results are returned in JSON format Parameters TO end-point: apikey the 32-character API Key (validates the end-point user) Results FROM end-point: Result either "OK" or "FAIL" ResultCode 0 = Success ('Result' = "OK") 1 = apikey was not provided 2 = apikey was not valid 3 = apikey has expired Message Human-readable explaination of ResultCode Appropriate for display to user for ResultCode values other than 0 Upon a ResultCode of 0 (success), the following JSON data will also be present: site_count Number of "site" objects returned sites[] Array of "site" objects Each "site" object contains: site_id The ID of this site (used in other calls that require the specific site to be specified) sitename Name (description) of the Site