Returns details about the organization. The data returned includes the list of all campuses in the organization. The company and campus IDs returned are used as the primary identifiers in other API calls.
GET https://{em_ip_address_or_hostname}/ems/api/org/company
Parameters
Request | |
em_ip_address or hostname | The Manage’s IP address or hostname |
Response | |
id | Organization identifier from Manage |
name | Organization name as described in the Manage |
address | Organization address |
contact | Company's contact phone information |
The email address of the contact person in the company | |
completionstatus | For internal use |
validdomain | The domain name for the company |
price | Electricity rate in cents per kWh |
timezone_name | Timezone information for the specified organization location |
campus | List of campuses in the company along with details for each campus |
title 24 compliance | Enabled if the site is geographically located where Title 24 is required |
latitude | Company’s latitude coordinate |
longitude | Company’s longitude coordinate |
Sample Code
Using your EM IP address, send a request to return the list of all campuses belonging to the organization. The sample response includes the company ID, company name, along with the contact details for the organization, and the list of all campuses belonging to the organization. In the example below, the company, Acme Inc., has two campuses, Hampton and Monroe. The response displays organization details for Acme Inc., along with details of both the campuses.
Get https://{192.80.3.2}/ems/api/org/company HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/json Content-Length: 7582 Date: Sat, 21 Jul 2015 17:06:51 GMT { "id": "1", "name": "Acme Inc.", "address": "Sunnycreek, CA\r\nUSA", "contact": "408 555-1212", "email": "peter@acme.com", "completionstatus": "3", "validdomain": "acme.com", "price": "0.15", "timezone_name": "America/Los_Angeles", "campus": [ { "id": "3", "name": "Hampton Campus", "calcMethod": "SENSOR_BASED", "contractBaseline": "0.00" }, { "id": "5", "name": "Monroe Campus", "calcMethod": "SENSOR_BASED", "contractBaseline": "0.00" }, ], "ntpEnable": "Y", "ntpServers": "0.us.pool.ntp.org,1.us.pool.ntp.org,2.us.pool.ntp.org,3.us.pool.ntp.org", "title24": { "compliance": { "flag": "No" }, …… "formtype": "" }, "latitude": "37.39428", "longitude": "-122.03806" } |
Comments
Article is closed for comments.