as-captcha-sdk
v0.2.0
Published
captcha sdk
Downloads
2
Readme
as-captcha-sdk
useage
npm install as-captcha-sdk --save
const CaptchaSDK = require('as-captcha-sdk')
const sdk = new CaptchaSDK('Your AppId', 'Your AppSecret')
sdk.verifyToken('captcha token', {
timeout: 3000,
params: {
ip: 'ip address',
sceneCode: 'scene code'
}
}).then(({ captchaStatus, detail }) => {
console.log('verification successful')
}).catch(({ detail }) => {
console.log('verification failed')
})