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
20 lines (19 loc) • 975 B
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');
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);
}
};