vonage conversations create `
--name='your_conversation' `
--display-name='Your conversation' `
--image-url='https://manchuck.com' `
--ttl=600 `
--phone-number=16127779311 `
--callback-url='https://example.com/conversations/callback' `
--callback-event-mask='audio:mute:on' `
--callback-event-mask='audio:mute:off' `
--callback-method='GET' `
--callback-application-id='00000000-0000-0000-0000-000000000000' `
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
Kotlin
Eine Konversation schaffen
Erstellen Sie die Konversation die die Nutzer für die Kommunikation untereinander verwenden werden.
vonage conversations create ^
--name='your_conversation' ^
--display-name='Your conversation' ^
--image-url='https://manchuck.com' ^
--ttl=600 ^
--phone-number=16127779311 ^
--callback-url='https://example.com/conversations/callback' ^
--callback-event-mask='audio:mute:on' ^
--callback-event-mask='audio:mute:off' ^
--callback-method='GET' ^
--callback-application-id='00000000-0000-0000-0000-000000000000' ^
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
vonage conversations create \ --name='your_conversation' \ --display-name='Your conversation' \ --image-url='https://manchuck.com' \ --ttl=600 \ --phone-number=16127779311 \ --callback-url='https://example.com/conversations/callback' \ --callback-event-mask='audio:mute:on' \ --callback-event-mask='audio:mute:off' \ --callback-method='GET' \ --callback-application-id='00000000-0000-0000-0000-000000000000' \ --callback-ncco-url='https://example.com/conversations/ncco' ✅ Fetching conversation Name: your_conversation Conversation ID: CON-00000000-0000-0000-0000-000000000000 Display Name: Your Conversation Image URL: https://tinyurl.com/5ey2vhw2 State: ACTIVE Time to Leave: 600 Created at: 08/29/1997, 02:14:00 AM Updated at: Not Set Destroyed at: Not Set Sequence: 0 Media State: Earmuffed: ❌ No Muted: ❌ No Playing Stream: ❌ No Recording: ❌ No Transcribing: ❌ No Text To Speech: ❌ No
Notieren Sie sich diese neu erzeugte Konversations-ID (CON-...). Sie werden sie später verwenden, um Folgendes hinzuzufügen Benutzer zum Konversation als Mitglieder.
Erstellen einer Android-Chat-App
Erstellen Sie eine Android-Applikation, die es Nutzern ermöglicht, einander mit Hilfe des Android Client SDK und Kotlin Nachrichten zu senden.
Schritte
1
Einleitung zu dieser Aufgabe2
Prerequisites3
Erstellen einer Vonage-Applikation4
Ein Gespräch führen5
Erstellen Sie die Benutzer6
Benutzer zur Konversation hinzufügen7
JWTs generieren8
Ein Android-Projekt erstellen9
Berechtigungen hinzufügen10
Hauptbildschirm erstellen11
Initialisierung des Clients12
Holen Sie sich das Gespräch13
Gesprächsereignisse abrufen14
Eine Nachricht senden15
Empfangen neuer Nachrichten16
Was kommt als Nächstes?