public class CollectionsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
CollectionsManager() |
protected |
CollectionsManager(CollectionsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getAuth() |
Collection |
getCollectionById(String collectionId)
Retrieves a collection by its ID.
|
Collection |
getCollectionById(String collectionId,
GetCollectionByIdHeaders headers)
Retrieves a collection by its ID.
|
ItemsOffsetPaginated |
getCollectionItems(String collectionId)
Retrieves the files and/or folders contained within this collection.
|
ItemsOffsetPaginated |
getCollectionItems(String collectionId,
GetCollectionItemsHeaders headers)
Retrieves the files and/or folders contained within this collection.
|
ItemsOffsetPaginated |
getCollectionItems(String collectionId,
GetCollectionItemsQueryParams queryParams)
Retrieves the files and/or folders contained within this collection.
|
ItemsOffsetPaginated |
getCollectionItems(String collectionId,
GetCollectionItemsQueryParams queryParams,
GetCollectionItemsHeaders headers)
Retrieves the files and/or folders contained within this collection.
|
Collections |
getCollections()
Retrieves all collections for a given user.
|
Collections |
getCollections(GetCollectionsHeaders headers)
Retrieves all collections for a given user.
|
Collections |
getCollections(GetCollectionsQueryParams queryParams)
Retrieves all collections for a given user.
|
Collections |
getCollections(GetCollectionsQueryParams queryParams,
GetCollectionsHeaders headers)
Retrieves all collections for a given user.
|
NetworkSession |
getNetworkSession() |
public Authentication auth
public NetworkSession networkSession
public CollectionsManager()
protected CollectionsManager(CollectionsManager.Builder builder)
public Collections getCollections()
Currently, only the `favorites` collection is supported.
public Collections getCollections(GetCollectionsQueryParams queryParams)
Currently, only the `favorites` collection is supported.
queryParams - Query parameters of getCollections methodpublic Collections getCollections(GetCollectionsHeaders headers)
Currently, only the `favorites` collection is supported.
headers - Headers of getCollections methodpublic Collections getCollections(GetCollectionsQueryParams queryParams, GetCollectionsHeaders headers)
Currently, only the `favorites` collection is supported.
queryParams - Query parameters of getCollections methodheaders - Headers of getCollections methodpublic ItemsOffsetPaginated getCollectionItems(String collectionId)
collectionId - The ID of the collection. Example: "926489"public ItemsOffsetPaginated getCollectionItems(String collectionId, GetCollectionItemsQueryParams queryParams)
collectionId - The ID of the collection. Example: "926489"queryParams - Query parameters of getCollectionItems methodpublic ItemsOffsetPaginated getCollectionItems(String collectionId, GetCollectionItemsHeaders headers)
collectionId - The ID of the collection. Example: "926489"headers - Headers of getCollectionItems methodpublic ItemsOffsetPaginated getCollectionItems(String collectionId, GetCollectionItemsQueryParams queryParams, GetCollectionItemsHeaders headers)
collectionId - The ID of the collection. Example: "926489"queryParams - Query parameters of getCollectionItems methodheaders - Headers of getCollectionItems methodpublic Collection getCollectionById(String collectionId)
collectionId - The ID of the collection. Example: "926489"public Collection getCollectionById(String collectionId, GetCollectionByIdHeaders headers)
collectionId - The ID of the collection. Example: "926489"headers - Headers of getCollectionById methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()