1.2.0 • Published 7 years ago

node-seafile v1.2.0

Weekly downloads
23
License
CC-BY-SA
Repository
-
Last release
7 years ago

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){})

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago