Create an Instant Meeting Room
This code snippet shows how to create an instant (default) room using the Meetings API.
See the API Reference for more information.
Example Request
Where needed, replace the following variables in the sample code with your own values:
| Key | Description |
|---|---|
JWT | Used to authenticate your request. See Authentication for more information, including how to generate a JWT. |
ROOM_DISPLAY_NAME | The name of the meeting room. |
VONAGE_APPLICATION_ID | The Vonage Application ID. |
VONAGE_APPLICATION_PRIVATE_KEY_PATH | Private key path. |
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named request.js and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Add the following to build.gradle:
Create a file named CreateInstantRoom and add the following code to the main method:
Run your code
We can use the application plugin for Gradle to simplify the running of our application. Update your build.gradle with the following:
Run the following gradle command to execute your application, replacing com.vonage.quickstart.meetings with the package containing CreateInstantRoom:
Prerequisites
Create a file named CreateInstantRoom.cs and add the following code:
Add the following to CreateInstantRoom.cs:
Prerequisites
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named request.py and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named create-instant-room.rb and add the following code:
Run your code
Save this file to your machine and run it:
Example Response
Your Instant Room has been created.
When an instant room is created, the expiration date is set to 10 minutes.