AssociationAPI

new AssociationAPI(rest)

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

Methods

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

Get a single organization.
Parameters:
NameTypeAttributesDefaultDescription
idstringThe ID of the organization.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The organization.
Type: 
Promise.<TidyAPI_V1_Organization>

(async) getOrganizationContacts(organization_id, optionsopt) → {Promise.<TidyAPI_V1_OrganizationContacts>}

Get the contacts that fall under an organization.
Parameters:
NameTypeAttributesDefaultDescription
organization_idstringThe ID of the organization.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The list of contacts.
Type: 
Promise.<TidyAPI_V1_OrganizationContacts>

(async) getOrganizationEvent(organization_id, event_id, optionsopt) → {Promise.<TidyAPI_V1_Event>}

Get a single event that falls under an organization.
Parameters:
NameTypeAttributesDefaultDescription
organization_idstringThe ID of the organization.
event_idnumberThe ID of the event.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The event.
Type: 
Promise.<TidyAPI_V1_Event>

(async) getOrganizationEvents(organization_id, optionsopt) → {Promise.<TidyAPI_V1_Events>}

Get the events that fall under an organization.
Parameters:
NameTypeAttributesDefaultDescription
organization_idstringThe ID of the organization.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
limitnumber<optional>
The maximum number of contacts to return.
offsetnumber<optional>
The number of contacts to skip.
start_atstring<optional>
The start date of the events to return in ISO 8601 format.
end_atstring<optional>
The end date of the events to return in ISO 8601 format.
publicboolean<optional>
Whether to return only public events or not.
Returns:
- The list of events.
Type: 
Promise.<TidyAPI_V1_Events>

(async) getOrganizationMeeting(organization_id, meeting_id, optionsopt) → {Promise.<TidyAPI_V1_Meeting>}

Get a single meeting that falls under an organization.
Parameters:
NameTypeAttributesDefaultDescription
organization_idstringThe ID of the organization.
meeting_idstringThe ID of the meeting.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The meeting.
Type: 
Promise.<TidyAPI_V1_Meeting>

(async) getOrganizationMeetings(organization_id, optionsopt) → {Promise.<TidyAPI_V1_Meetings>}

Get the meetings that fall under an organization.
Parameters:
NameTypeAttributesDefaultDescription
organization_idstringThe ID of the organization.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
limitstring<optional>
The number of results to return.
offsetstring<optional>
The number of results to skip.
Returns:
- The list of meetings.
Type: 
Promise.<TidyAPI_V1_Meetings>

(async) getOrganizations(optionsopt) → {Promise.<TidyAPI_V1_Organizations>}

Get the organizations that fall under the association associated with the access token.
Parameters:
NameTypeAttributesDefaultDescription
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The list of organizations.
Type: 
Promise.<TidyAPI_V1_Organizations>