new V2_OrganizationAPI(rest)
This class is used to interact with Organizations in TidyHQ.
Parameters:
Name | Type | Description |
---|---|---|
rest | Rest | The rest instance to use for requests. |
- Source
Methods
(async) getAdmins(optionsopt) → {Promise.<TidyAPI_V2_Contacts>}
Returns all admins configured / provisioned for the current organization.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The admins.
- Type:
- Promise.<TidyAPI_V2_Contacts>
(async) getOrganization(optionsopt) → {Promise.<TidyAPI_V2_Organization>}
Returns the organization the current token is associated with.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The organization.
- Type:
- Promise.<TidyAPI_V2_Organization>
(async) getRoles(optionsopt) → {Promise.<TidyAPI_V2_OrganizationRoles>}
Returns all roles configured / provisioned for the current organization.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The roles.
- Type:
- Promise.<TidyAPI_V2_OrganizationRoles>