封装了一些常用的钉钉小程序服务端API,获取用户信息
install
npm install dingding-sdk
usage
import dingding from "dingding-sdk"
实例化sdk类
const dd = new dingding(appKey, appSecret)
getAccessToken(): Promise<IToken>
getUserId(code: string, token?: string)
getUser(code: string, token?: string)