seafile-js
v0.2.237
Published
This is JavaScript API for Seafile.
Downloads
656
Readme
About
This is JavaScript API for Seafile.
Usage
Install seafile-js package:
npm install seafile-js
In your project:
const { SeafileAPI } = require('seafile-js')
const server = 'xxx'
const username = 'xxx'
const password = 'xxx'
const seafileAPI = new SeafileAPI()
seafileAPI.init({ server, username, password })
seafileAPI.login().then((response) => {
seafileAPI.authPing().then((response) => {
console.log(response)
}).catch((err) => {
console.log('error', err);
})
})
.catch((err) => {
console.log('error',err.config)
})