JavaScript
会話を作る
を作成する。 会話 ユーザが互いに通信するために使用します。以下のコマンドの Vonage Application ID を置き換えてください:
vonage conversations create ^
--name='your_conversation'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Not Set
Image URL: Not Set
State: ACTIVE
Time to Leave: Not Set
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' ✅ Fetching conversation Name: your_conversation Conversation ID: CON-00000000-0000-0000-0000-000000000000 Display Name: Not Set Image URL: Not Set State: ACTIVE Time to Leave: Not Set 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
ウェブベースのチャットアプリの作成
ユーザー同士がメッセージをやりとりできるWebアプリケーションを作成する
手順
1
このタスクの紹介2
Prerequisites3
Vonageアプリケーションの作成4
会話を作る5
ユーザーを作成する6
会話にユーザーを追加する7
JWTの生成8
Client SDKのインストール9
UIの作成10
ユーザーの認証11
VonageClientをインスタンス化し、Sessionを作成する。12
メッセージ履歴の表示13
メッセージを送る14
アプリケーションの実行15
次はどうする?