/egg-dingtalk

egg plugin for dingtalk

Primary LanguageJavaScriptMIT LicenseMIT

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