OrganizationAPI

new OrganizationAPI(rest)

This class is used to interact with Organizations in TidyHQ.
Parameters:
NameTypeDescription
restRestThe rest instance to use for requests.

Methods

(async) getOrganization(optionsopt) → {Promise.<TidyAPI_V1_Organization>}

Get the organization associated with the access token.
Parameters:
NameTypeAttributesDefaultDescription
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The organization.
Type: 
Promise.<TidyAPI_V1_Organization>