JavaScript

Crear los usuarios

Cada participante en un Conversación se representa mediante un Usuario objeto y debe ser autenticado por el Client SDK. En una aplicación de producción, lo habitual es almacenar esta información de usuario en una base de datos.

Ejecute los siguientes comandos para crear dos usuarios, Alice y Bob que iniciará sesión en el cliente de Vonage y participará en la conversación.

vonage users create `
  --name='Alice'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Alice
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set
vonage users create ^
  --name='Alice'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Alice
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set
vonage users create \ --name='Alice' ✅ Creating User User ID: USR-00000000-0000-0000-0000-000000000000 Name: Alice Display Name: Not Set Image URL: Not Set Time to Live: Not Set Channels: None Set
vonage users create `
  --name='Bob'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Bob
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set
vonage users create ^
  --name='Bob'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Bob
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set
vonage users create \ --name='Bob' ✅ Creating User User ID: USR-00000000-0000-0000-0000-000000000000 Name: Bob Display Name: Not Set Image URL: Not Set Time to Live: Not Set Channels: None Set