Skip to content

This repository showcases the integration of the Network Enablement API along with the Number Verification API to verify end-users using a phone number.

License

Notifications You must be signed in to change notification settings

Vonage-Community/blog-network-enablement-nodejs-phone_verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Enablement API demo

This demo shows how to use and integrate the Network Enablement API along with the Number Verification API.

Prerequisites

Setting up the Environment

Clone the repository, go to the server folder and copy the .env.example file to .env. Edit the new .env and change the environment variables:

JWT = your_jwt_token

REDIRECT_URI=https://your-server.com/callback

Tips:

  • Use the Virtual CSP: Create a new application with the Network Registry capability enabled, and select "Sandbox" as access type. Use the fake phone number +99012345678 when running the client.
  • You can generate a new JWT using the Vonage JWT Generator tool.

Run the Server

Install the dependencies:

cd server
npm install

Run the application:

node server.js

Run the Client

Open a new terminal and go to the client folder. We'll install the Python dependencies using a virtual environment:

cd client
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run the client:

python client.py +99012345678

About

This repository showcases the integration of the Network Enablement API along with the Number Verification API to verify end-users using a phone number.

Topics

Resources

License

Stars

Watchers

Forks