This demo shows how to use and integrate the Network Enablement API along with the Number Verification API.
- A Vonage developer account
- Node.js and npm
- Python (>= 3.10)
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.
Install the dependencies:
cd server
npm install
Run the application:
node server.js
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