cmb-open
v1.2.0
Published
掌上生活开放平台(CMB Life Open) Node.js SDK
Downloads
6
Readme
node-cmb-open
掌上生活开放平台( https://open.cmbchina.com/Platform/ ) Node.js SDK
安装
npm install cmb-open --save
使用
const CMB = require('cmb-open');
const cmb = new CMB({
mid: 'xxx',
aid: 'xxx',
key: '/path/to/cmb.key',
publicKey: '/path/to/pubkey.pem',
});
// 授权登录
cmb.getApproval();
// 获取 AccessToken
cmb.getAccessToken();
// 结果签名验证
cmb.verifyRespons();