new ClasseurClient(userId, apiKey [, host])
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
userId |
String | Classeur user ID string. |
||
apiKey |
String | API Key string. Keep this secret. |
||
host |
String |
<optional> |
app.classeur.io | Fully qualified hostname to connect to. Connections will be made with HTTPS, regardless of whether the hostname is prefixed with |
- Source:
Methods
-
getFile(id, callback)
-
Retrieve a single file.
Parameters:
Name Type Description idString Classeur file ID to retrieve.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be a File object, ornullon error.
- Source:
-
getFileMetadata(id, callback)
-
Retrieve metadata for a file.
Parameters:
Name Type Description idString The Classeur file ID for which to retrieve metadata.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be a FileMetadata object, ornullon error.
- Source:
-
getFiles(&hellipids|[ids], callback)
-
Retrieve one or more files.
Parameters:
Name Type Argument Description &hellipids|[ids]String | Array.<String> <repeatable>
An Array of strings, or multiple string arguments, each representing a Classeur file ID to retrieve.
- See Plural Functions for more information on functions that can be called with an array or with variadic arguments.
- One REST call is made (in parallel) per ID supplied.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of File objects, ornullon error.
- Source:
-
getFilesMetadata(&hellipids|[ids], callback)
-
Retrieve metadata for one or more files.
Parameters:
Name Type Argument Description &hellipids|[ids]String | Array.<String> <repeatable>
An Array of strings, or multiple string arguments, each representing a Classeur file IDs for which to retrieve metadata.
- See Plural Functions for more information on functions that can be called with an array or with variadic arguments.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of FileMetadata objects, ornullon error.
- Source:
-
getFolder(id, callback)
-
Retrieve a single folder.
Parameters:
Name Type Description idString Classeur folder ID to retrieve.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be a Folder object, ornullon error.
- Source:
-
getFolderMetadata(id, callback)
-
Retrieve metadata for a folder.
Parameters:
Name Type Description idString The Classeur folder ID for which to retrieve metadata.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be a FolderMetadata object, ornullon error.
- Source:
-
getFolders(&hellipids|[ids], callback)
-
Retrieve one or more folders.
Parameters:
Name Type Argument Description &hellipids|[ids]String | Array.<String> <repeatable>
An Array of strings, or multiple string arguments, each representing a Classeur folder ID to retrieve.
- See Plural Functions for more information on functions that can be called with an array or with variadic arguments.
- One REST call is made (in parallel) per ID supplied.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of Folder objects, ornullon error.
- Source:
-
getFoldersMetadata(&hellipids|[ids], callback)
-
Retrieve metadata for one or more folders.
Parameters:
Name Type Argument Description &hellipids|[ids]String | Array.<String> <repeatable>
An Array of strings, or multiple string arguments, each representing a Classeur folder IDs for which to retrieve metadata.
- See Plural Functions for more information on functions that can be called with an array or with variadic arguments.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of FolderMetadata objects, ornullon error.
- Source:
-
getUserMetadata(id, callback)
-
Retrieve metadata for a user.
Parameters:
Name Type Description idString The Classeur user ID for which to retrieve metadata.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be a UserMetadata object, ornullon error.
- Source:
-
getUsers(callback)
-
Retrieve all users on the Classeur account to which the ClasseurClient is connected.
Parameters:
Name Type Description callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of User objects, ornullon error.
- Source:
-
getUsersMetadata(&hellipids|[ids], callback)
-
Retrieve metadata for one or more users.
Parameters:
Name Type Argument Description &hellipids|[ids]String | Array.<String> <repeatable>
An Array of strings, or multiple string arguments, each representing a Classeur user IDs for which to retrieve metadata.
- See Plural Functions for more information on functions that can be called with an array or with variadic arguments.
callbackmodule:classeur-api-client.ScrubbedCallback Called with
(error, result). See ScrubbedCallback for more info.resultwill be an Array of UserMetadata objects, ornullon error.
- Source: