1.0.4 • Published 3 years ago

@xiaokyo/enterprise-wechat-app v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@xiaokyo/enterprise-wechat-app

TODO: description

Usage

const wechat = require('@xiaokyo/enterprise-wechat-app').default;
or
import wechat from '@xiaokyo/enterprise-wechat-app' 

const wx = new wechat({
	corpid: 'xxx', // 应用id
  corpsecret: 'xxx', // 应用secret
  agentId: 'xxx', // 企业id
})

API

namedescparams
getToken获取token
sendText发送文本消息(token: string, content: string = 'hello world')
sendTextCard发送文本卡片消息(token: string,data: { title: string; description: string; url: string; btntxt?: string })
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago