Class: Koofr
| Defined in: | src/koofr.coffee |
Overview
Koofr API client
Instance Method Summary
- # (Koofr) authenticate(email, password) Bound Authenticate the user
- # (http.IncomingMessage) request(method, path, options) Bound Internal helper to make requests to API
- # (Array<Object>) mounts() Bound List mounts
- # (Array<Object>) filesList(mountId, path) Bound List files
- # (Object) filesInfo(mountId, path) Bound File info
- # (void) filesMkdir(mountId, path, name) Bound Create a new folder/directory
- # (void) filesRename(mountId, path, name) Bound Rename a file/directory
- # (void) filesRemove(mountId, path) Bound Remove a file/directory
- # (void) filesCopy(mountId, path, toMountId, toPath) Bound Copy a file/directory
- # (void) filesMove(mountId, path, toMountId, toPath) Bound Move a file/directory
- # (http.IncomingMessage) filesGet(mountId, path, start, end) Bound Get (download) a file/directory
- # (Object) filesPut(mountId, path, name, data) Bound Put (upload) a file
Constructor Details
#
(Koofr)
constructor(endpoint)
Construct a new client
Instance Method Details
#
(Koofr)
authenticate(email, password)
Bound
Authenticate the user
#
(http.IncomingMessage)
request(method, path, options)
Bound
Internal helper to make requests to API
#
(Array<Object>)
mounts()
Bound
List mounts
#
(Array<Object>)
filesList(mountId, path)
Bound
List files
#
(Object)
filesInfo(mountId, path)
Bound
File info
#
(void)
filesMkdir(mountId, path, name)
Bound
Create a new folder/directory
#
(void)
filesRename(mountId, path, name)
Bound
Rename a file/directory
#
(void)
filesRemove(mountId, path)
Bound
Remove a file/directory
#
(void)
filesCopy(mountId, path, toMountId, toPath)
Bound
Copy a file/directory
#
(void)
filesMove(mountId, path, toMountId, toPath)
Bound
Move a file/directory
#
(http.IncomingMessage)
filesGet(mountId, path, start, end)
Bound
Get (download) a file/directory
#
(Object)
filesPut(mountId, path, name, data)
Bound
Put (upload) a file