JavaScript
Como usar o painel
- Encontre sua inscrição na Painel de controle.
- Clique no aplicativo na lista “Seus Applications”. Em seguida, clique na aba “Numbers”.
- Clique no botão “Link” para vincular um número da Vonage a esse aplicativo.
Como usar a CLI da Vonage
Depois de obter um número adequado, você pode vinculá-lo ao seu aplicativo da Vonage executando este comando:
Copiar
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
Copiar
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
Criação de um aplicativo para fazer chamadas de voz pelo celular
Faça uma chamada de voz de um aplicativo web para um telefone usando o Client SDK do JavaScript.
Etapas
1
Introdução2
Prerequisites3
Criar um servidor de webhooks4
Criar uma aplicação da Vonage5
Vincular um número da Vonage6
Criar um usuário7
Gerar um JWT8
Instalar o Client SDK9
Criar um aplicativo do lado do cliente10
Execute seu aplicativo11
E agora?