telesignenterprisesdk
Version:
This SDK enhances the functionality of the Telesign Self-service Node SDK, providing access to a broader range of Telesign APIs. See our source code on GitHub (https://github.com/TeleSign/node_telesign_enterprise) for installation instructions and other d
25 lines (24 loc) • 1.29 kB
JavaScript
const Verify = require('./verify.js');
const PhoneID = require('./phoneid.js');
const Telebureau = require('./telebureau.js');
const Messaging = require('./messaging.js');
const OmniVerify = require('./omniverifyclient.js');
const ScoreClient = require("./scoreclient.js");
const AppVerifyClient = require("./appverifyclient.js");
const detectEndpoint = "https://detect.telesign.com";
module.exports = class Telesign {
constructor(customerId,
apiKey,
restEndpoint = "https://rest-ww.telesign.com",
timeout = 10000,
useragent = null,
urlOmniVerify = "https://verify.telesign.com") {
this.omniVerify = new OmniVerify(customerId, apiKey, urlOmniVerify);
this.verify = new Verify(customerId, apiKey, restEndpoint, timeout, useragent, urlOmniVerify);
this.phoneid = new PhoneID(customerId, apiKey, restEndpoint, timeout, useragent);
this.telebureau = new Telebureau(customerId, apiKey, restEndpoint, timeout, useragent);
this.messaging = new Messaging(customerId, apiKey, restEndpoint, timeout, useragent);
this.score = new ScoreClient(customerId, apiKey, detectEndpoint, timeout, useragent);
this.appVerify = new AppVerifyClient(customerId, apiKey, restEndpoint, timeout, useragent);
}
};