1.0.1 • Published 5 years ago

node-zentao v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Node.js client for ZentaoPMS API

禅道 API

Usage

const Zentao = require('node-zentao');
const zentao = Zentao({
    // server: 'http://localhost:8888/zentaopms/www/',
    // account: 'admin',
    // password: '1qaz2wsx',
});

let data = await zentao.login(); // 登录,初始化 session
data = await zentao.getProjects(); // 获取项目列表
data = await zentao.getUsers(); // 获取用户列表
const Koa = require('koa');
const Zentao = require('node-zentao/koa-api');

const app = new Koa();
app.use(Zentao());
app.listen(3000);

Ref

Bug

  • TODO: noGDLib 请用手机浏览器访问