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 id
String Classeur file ID to retrieve.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be aFile
object, ornull
on error.
- Source:
-
getFileMetadata(id, callback)
-
Retrieve metadata for a file.
Parameters:
Name Type Description id
String The Classeur file ID for which to retrieve metadata.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be aFileMetadata
object, ornull
on error.
- Source:
-
getFiles(…ids|[ids], callback)
-
Retrieve one or more files.
Parameters:
Name Type Argument Description …ids|[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.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofFile
objects, ornull
on error.
- Source:
-
getFilesMetadata(…ids|[ids], callback)
-
Retrieve metadata for one or more files.
Parameters:
Name Type Argument Description …ids|[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.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofFileMetadata
objects, ornull
on error.
- Source:
-
getFolder(id, callback)
-
Retrieve a single folder.
Parameters:
Name Type Description id
String Classeur folder ID to retrieve.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be aFolder
object, ornull
on error.
- Source:
-
getFolderMetadata(id, callback)
-
Retrieve metadata for a folder.
Parameters:
Name Type Description id
String The Classeur folder ID for which to retrieve metadata.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be aFolderMetadata
object, ornull
on error.
- Source:
-
getFolders(…ids|[ids], callback)
-
Retrieve one or more folders.
Parameters:
Name Type Argument Description …ids|[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.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofFolder
objects, ornull
on error.
- Source:
-
getFoldersMetadata(…ids|[ids], callback)
-
Retrieve metadata for one or more folders.
Parameters:
Name Type Argument Description …ids|[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.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofFolderMetadata
objects, ornull
on error.
- Source:
-
getUserMetadata(id, callback)
-
Retrieve metadata for a user.
Parameters:
Name Type Description id
String The Classeur user ID for which to retrieve metadata.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be aUserMetadata
object, ornull
on error.
- Source:
-
getUsers(callback)
-
Retrieve all users on the Classeur account to which the ClasseurClient is connected.
Parameters:
Name Type Description callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofUser
objects, ornull
on error.
- Source:
-
getUsersMetadata(…ids|[ids], callback)
-
Retrieve metadata for one or more users.
Parameters:
Name Type Argument Description …ids|[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.
callback
module:classeur-api-client.ScrubbedCallback Called with
(error, result)
. SeeScrubbedCallback
for more info.result
will be an Array ofUserMetadata
objects, ornull
on error.
- Source:
-
<private> metadataQuery()
-
- Source: