TeleSign Self-service Node.js SDK
Telesign connects, protects, and defends the customer experience with intelligence from billions of digital interactions and mobile signals. Through developer-friendly APIs that deliver user verification, digital identity, and omnichannel communications, we help the world's largest brands secure onboarding, maintain account integrity, prevent fraud, and streamline omnichannel engagement.
Requirements
- Node.js 6+
- npm (Optional) - This package manager isn't required to use this SDK, but it is required to use the installation instructions below.
NOTE:
These instructions are for MacOS. They will need to be adapted if you are installing on Windows.
Installation
Follow these steps to add this SDK as a dependency to your project.
- (Optional) Create a new directory for your Node.js project. Skip this step if you already have created a project. If you plan to create multiple Node.js projects that use Telesign, we recommend that you group them within a
telesign_integrationsdirectory.
cd ~/code/local
mkdir telesign_integrations
cd telesign_integrations
mkdir {your project name}
cd {your project name}
Install the SDK as a dependency in the top-level directory of your project using the command below. Once the SDK is installed, you should see a message in the terminal notifying you that you have successfully installed the SDK.
npm install telesignsdk --save
Generating Routes for a New API Path
Add the API path and operation definition to the YAML configuration in the external OpenAPI Specifications repository.
Add the corresponding module and operation to
batch_process_sdk_autogen/config/node_telesign/generation.yaml.From the repository root, run the Node SDK generator:
npm run generate:nodeThis generates the route map under
src. The generated routes do not replace the SDK's HTTP clients or authentication code.Create the adapter and client for the new API, following the existing
*Adapter.jsand*Client.jspatterns. Register the client and adapter insrc/TeleSign.js, and add tests for the new path.
Authentication
If you use a Telesign SDK to make your request, authentication is handled behind-the-scenes for you. All you need to provide is your Customer ID and API Key(or password). The SDKs apply Digest authentication whenever they make a request to a Telesign service where it is supported. Intelligence uses Basic authentication.
What's next
- Learn to send a request to Telesign with code with one of our tutorials.
- Browse our Developer Portal for tutorials, how-to guides, reference content, and more.
- Check out our sample code on GitHub.