@pearmiracle/xy-signature
v2.2.1
Published
xylink's xy-signature by node
Downloads
2
Readme
小鱼易联 签名算法工具包
npm i @pearmiracle/xy-signature
yarn add @pearmiracle/xy-signature
签名算法 V2
import { SignatureV2 } from '@pearmiracle/xy-signature'
const enterpriseId = '' //企业ID,可在小鱼云视讯管理平台获取
const x_xy_clientid = '' //小鱼向三方提供的应用id,可在小鱼云视讯管理平台获取
const x_xy_clientsecret = '' //小鱼向三方提供的应用密钥,可在小鱼云视讯管理平台获取
const V2 = new SignatureV2(enterpriseId, x_xy_clientid, x_xy_clientsecret)
//如果需要在控制台打印,设置isLog为ture,默认为false
//V2.isLog = true
const signs = await V2.getSigns(method, uri, requestBody)