1.1.3 • Published 5 years ago

wechat-corp-api v1.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

微信企业版 API

目前只是实现了发应用消息, 普通文本与markdown

const {Client} = require('wechat-corp-api');

// 需要填写的参数
const CORP_ID = "";
const CORP_SECRET = "";
const AGENT_ID = "";

// access_token 由client自动续期
const client = new Client(CORP_ID, CORP_SECRET, AGENT_ID);

// 因为这是示例, 所以需要promise, 正常项目不需要
client.initPromise.then(() => {
    client.messager.sendText('Hi Ken');
});
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago