CategoriesAPI

new CategoriesAPI(rest)

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

Methods

(async) getCategories(optionsopt) → {Promise.<TidyAPI_V1_Categories>}

Get a list of all categories.
Parameters:
NameTypeAttributesDefaultDescription
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 categories.
Type: 
Promise.<TidyAPI_V1_Categories>