node-seafile
v1.2.0
Published
NodeJS module for communicating with the seafile API
Downloads
3
Readme
node-seafile
NodeJS module for communicating with the seafile API
usage
require('node-seafile')('http://link.to.your.seafile.com')
auth
auth.getToken
get token
node-seafile.auth.getToken(username, password, callback(token))
library
library.list
get list of user's libraries.
node-seafile.library.list(token, callback(err, res))
directory
direcroty.get
get the contents of a folder
node-seafile.folder.get(token, library-id, params, callback(result))
api (direct access)
api.post(endpoint, params, token [optional], callback)
directly sends a POST request to the server
node-seafile.api.post('/ping', {}, function(err, body, res){})
api.get(endpoint, params, token [optional], callback)
directly sends a GET request to the server
node-seafile.api.get('/ping', {}, function(err, body, res){})