Retrieves all collections for a given user.
Currently, only the favorites collection
is supported.
This operation is performed by calling function getCollections.
See the endpoint docs at API Reference.
await client.collections.getCollections();
GetCollectionsQueryParams
GetCollectionsHeadersInput
undefined | CancellationToken
This function returns a value of type Collections.
Returns all collections for the given user.
Retrieves the files and/or folders contained within this collection.
This operation is performed by calling function getCollectionItems.
See the endpoint docs at API Reference.
await client.collections.getCollectionItems(favouriteCollection.id!);
string
GetCollectionItemsOptionalsInputThis function returns a value of type ItemsOffsetPaginated.
Returns an array of items in the collection.
Retrieves a collection by its ID.
This operation is performed by calling function getCollectionById.
See the endpoint docs at API Reference.
await client.collections.getCollectionById(collections.entries![0].id!);
string
GetCollectionByIdOptionalsInputThis function returns a value of type Collection.
Returns an array of items in the collection.