egg-dingtalk

2.0.0 • Public • Published

egg-dingtalk

NPM version build status Test coverage David deps Known Vulnerabilities npm download

egg plugin for dingtalk

Install

$ npm i egg-dingtalk --save

Usage

// {app_root}/config/plugin.js
exports.dingtalk = {
  enable: true,
  package: 'egg-dingtalk',
};
 
// {app_root}/app/controller/test.js
exports.list = async ctx => {
  ctx.body = await ctx.dingtalk.user.list('1', true);
};

Configuration

// {app_root}/config/config.default.js
exports.dingtalk = {
  corpid: '',
  corpsecret: '',
  host: '',
  enableContextLogger: '',
};

Feature

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-dingtalk

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

6.51 kB

Total Files

8

Last publish

Collaborators

  • atian25
  • fengmk2