Summary of the Environment class
The class represents an eLegere environment, such as esi.oncloud.com. An environment is an instance of eLegere.
The environment class does not have methods to modify data on eLegere: it acts as an intermediary class to interface with eLegere and its applications. The getEnvironment and getEnvironmentFromToken functions initialize the Environment class. The user can employ the functions through either username and password or session token or domain id.
The class requires the initialization through the elegere object.
getApplication() method returns an initialized Application object from an application id and Domain id.
string Id identifying the application.
string Id identifying the domain. The application must belong to the specified domain.
Returns a Promise for an Application object.
getOrganization takes an organization's name and returns an initialized Organization object.
string Represents the name identifying the organization.
Returns a Promise for a Organization object.