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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-zentao

      Weekly Downloads

      8

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      5.33 kB

      Total Files

      7

      Last publish

      Collaborators

      • liupo