0.2.0 • Published 1 year ago

as-captcha-sdk v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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')
})
0.2.0

1 year ago