Folders

public final class Folders extends Resource<Folder>

Constructors

Link copied to clipboard
public Folders Folders(NylasClient client)

Functions

Link copied to clipboard
public final Response<Folder> create(String identifier, CreateFolderRequest requestBody)
public final Response<Folder> create(String identifier, CreateFolderRequest requestBody, RequestOverrides overrides)

Create a Folder

Link copied to clipboard
public final DeleteResponse destroy(String identifier, String folderId)
public final DeleteResponse destroy(String identifier, String folderId, RequestOverrides overrides)

Delete a Folder

Link copied to clipboard
public final Response<Folder> find(String identifier, String folderId)
public final Response<Folder> find(String identifier, String folderId, RequestOverrides overrides)

Return a Folder

Link copied to clipboard
public final ListResponse<Folder> list(String identifier)
public final ListResponse<Folder> list(String identifier, RequestOverrides overrides)

Return all Folders

Link copied to clipboard
public final Response<Folder> update(String identifier, String folderId, UpdateFolderRequest requestBody)
public final Response<Folder> update(String identifier, String folderId, UpdateFolderRequest requestBody, RequestOverrides overrides)

Update a Folder