John Yi
John Yi

Reputation: 1

integrated twillio verify service in my App

we already created a Twilio service, but don't know how to integrated it into our APP application for user verify ?

where is the demo API ?

Upvotes: 0

Views: 123

Answers (1)

IObert
IObert

Reputation: 3816

The documentation of the Verify service can be found here. As you already created a Verify service instance (Step 1), you need to add these two steps in your code:

Step 2: Send a Verification Token

client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
      .verificationChecks
      .create({to: '+15017122661', code: '123456'})
      .then(verification_check => console.log(verification_check.status));

Step 3: Check the Verification Token

client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
      .verificationChecks
      .create({to: '+15017122661', code: '123456'})
      .then(verification_check => console.log(verification_check.status));

PS: Other snippets are available on the site I linked above.

Upvotes: 1

Related Questions