An API that delivers patented phone-based verification and two-factor authentication (2FA) using a one-time passcode (OTP) sent over voice message in the event the end-user chooses the voice method, provides a landline or is not authorized to receive SMS messages in a specific country.
To utilize unirest for node.js install the the npm module:
$ npm install unirest
After installing the npm package you can now start simplifying requests like so:
var unirest = require('unirest');
unirest.post("https://telesign-telesign-voice-verify-v1.p.rapidapi.com/voice-verify?ucid=undefined&originating_ip=undefined&call_forward_action=undefined&language=undefined&prompt_message=undefined&prompt_digit=undefined&caller_id=undefined&tts_message=undefined&pressx=undefined&extension_type=undefined&extension_template=undefined") .header("X-RapidAPI-Key", "undefined") .header("Content-Type", "application/x-www-form-urlencoded") .end(function (result) { console.log(result.status, result.headers, result.body); });