node-zentao

1.0.1 • Public • Published

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 请用手机浏览器访问

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.00

Package Sidebar

Install

npm i node-zentao

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

5.33 kB

Total Files

7

Last publish

Collaborators

  • liupo