dx-captcha-sdk
v0.2.0
Published
dingxiang captcha sdk
Downloads
11
Readme
dx-captcha-sdk
顶象验证码SDK
使用方式
npm install dx-captcha-sdk --save
const CaptchaSDK = require('dx-captcha-sdk')
const sdk = new CaptchaSDK('您的appId', '您的appSecret')
sdk.verifyToken('验证码token', {
timeout: 3000,
params: {
ip: '透传IP',
sceneCode: '场景code'
}
}).then(({ captchaStatus, detail }) => {
console.log('验证成功')
}).catch(({ detail }) => {
console.log('验证失败')
})