Eyeos Seafile Api Library
Overview
Library used to manage seafile server
How to use it
User api:
var EyeosSeafileUserApi = user;var eyeosSeafileUserApi = username password; /* * @param callback function (err, data) */eyeosSeafileUserApi; /* * @param params { * name: String } * @param callback function (err, data) */eyeosSeafileUserApi; /* * @param params { * repoId: String } * @param callback function (err, data) */eyeosSeafileUserApi; /* * @param callback(err, data) * callback data: { "repo_id": "691b3e24-d05e-43cd-a9f2-6f32bd6b800e", "exists": true } */ eyeosSeafileUserApi; /* * @param callback(err, data) * callback data: { "repo_id": "691b3e24-d05e-43cd-a9f2-6f32bd6b800e", "exists": true } */ eyeosSeafileUserApi; /* * @param callback(err, data) * callback data: { "id": "691b3e24-d05e-43cd-a9f2-6f32bd6b800e", "name": 'home', "owner": 'mytestnewuser@example.org' ... */ eyeosSeafileUserApi; /* * @param callback(err, data) * callback data: { "id": "691b3e24-d05e-43cd-a9f2-6f32bd6b800e", "name": "home", "owner": "mytestnewuser@example.org", ... } */ eyeosSeafileUserApi; /* * @param params { * repoId: 'dae8cecc-2359-4d33-aa42-01b7846c4b32', * pathToFile: '/foo.c' } * @param callback function (err, data) */eyeosSeafileUserApi; /* * @param params { * repoId: 'dae8cecc-2359-4d33-aa42-01b7846c4b32', * pathToFile: '/foo.c' } * @param callback function (err, data) */eyeosSeafileUserApi;
Admin api:
var EyeosSeafileAdminApi = admin;var eyeosSeafileAdminApi = ; /* * @param params { email: required password: required } * @param callback function (err, body) */eyeosSeafileAdminApi; /* * @param params {email: required password: optional note: optional storage: optional } * @param callback function (err, body) */eyeosSeafileAdminApi; /* * @param params { * start: optional (default 0) * limit: optional (default 100) * scope: optional ['LDAP' || 'DB'](default 'DB') * } * @param callback function (err, accounts) */eyeosSeafileAdminApi;
Running tests:
- Start a seafileServer
- Modify settings
- Execute:
./integration-test.sh
Quick help
- Install modules
$ npm install
- Check tests
$ ./tests.sh