sign_tool_js
v1.0.0
Published
authenticate tool for CTICloud
Downloads
2
Readme
SignTool_JS
http interface authenticate tool for CTICloud
latest version: 1.0.0
install
yarn
yarn add sign_tool_js
npm
npm install sign_tool_js
usage
import
import { SignTool, SignType } from "sign_tool_js"
generate CTICloud sign param
let {timestamp, sign} = SignTool.genSignSync(SignType.Enterprise_Id_And_Token, { enterpriseId: "xxxxxxxxx", token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", })
or
let {timestamp, sign} = await SignTool.genSign(SignType.Enterprise_Id_And_Token, { enterpriseId: "xxxxxxxxx", token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", })