Xojo / Zoom API / Get a webinar
Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Dim http As New Chilkat.Http
Dim success As Boolean
Dim queryParams As New Chilkat.JsonObject
success = queryParams.UpdateString("occurrence_id","quis officia in reprehenderit")
success = queryParams.UpdateString("show_previous_occurrences","true")
// Adds the "Authorization: Bearer <access_token>" header.
http.AuthToken = "<access_token>"
Dim resp As Chilkat.HttpResponse
resp = http.QuickRequestParams("GET","https://api.zoom.us/v2/webinars/:webinarId",queryParams)
If (http.LastMethodSuccess = False) Then
System.DebugLog(http.LastErrorText)
Return
End If
Dim sbResponseBody As New Chilkat.StringBuilder
success = resp.GetBodySb(sbResponseBody)
Dim jResp As New Chilkat.JsonObject
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = False
System.DebugLog("Response Body:")
System.DebugLog(jResp.Emit())
Dim respStatusCode As Int32
respStatusCode = resp.StatusCode
System.DebugLog("Response Status Code = " + Str(respStatusCode))
If (respStatusCode >= 400) Then
System.DebugLog("Response Header:")
System.DebugLog(resp.Header)
System.DebugLog("Failed.")
Return
End If
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "created_at": "2019-09-13T15:35:00Z",
// "duration": 60,
// "host_id": "Labcjskdfsjgfg",
// "id": 12345678,
// "join_url": "https://zoom.us/j/12345678",
// "settings": {
// "allow_multiple_devices": true,
// "alternative_hosts": "",
// "approval_type": 2,
// "audio": "both",
// "auto_recording": "local",
// "close_registration": true,
// "contact_email": "example@example.com",
// "contact_name": "Amal",
// "enforce_login": false,
// "enforce_login_domains": "",
// "global_dial_in_countries": [
// "US"
// ],
// "global_dial_in_numbers": [
// {
// "city": "New York",
// "country": "US",
// "country_name": "US",
// "number": "+1 00000",
// "type": "toll"
// },
// {
// "city": "San Jose",
// "country": "US",
// "country_name": "US",
// "number": "+1 111111111",
// "type": "toll"
// },
// {
// "city": "San Jose",
// "country": "US",
// "country_name": "US",
// "number": "+1 11111110",
// "type": "toll"
// }
// ],
// "hd_video": false,
// "hd_video_for_attendees": false,
// "send_1080p_video_to_attendees": false,
// "host_video": false,
// "on_demand": false,
// "panelists_video": false,
// "practice_session": false,
// "question_answer": true,
// "registrants_confirmation_email": true,
// "registrants_restrict_number": 0,
// "show_share_button": true,
// "registrants_email_notification": true,
// "email_language": "en-US",
// "panelists_invitation_email_notification": true,
// "attendees_and_panelists_reminder_email_notification": {
// "enable": true,
// "type": 1
// },
// "follow_up_attendees_email_notification": {
// "enable": true,
// "type": 1
// },
// "follow_up_absentees_email_notification": {
// "enable": true,
// "type": 1
// }
// },
// "start_time": "2019-08-30T22:00:00Z",
// "start_url": "https://zoom.us/s/00000011110?zhghTlUT1Rjd2FXRgh0amxoejNQZ1EiLCJjaWQiOiIifQ.NJ0CXWQ-yhI8Xv01JvxityBtzp3Bt7odMOEG2L8DLmY",
// "timezone": "America/New_York",
// "topic": "Test Webinar",
// "type": 5,
// "uuid": "nWMHAAAAAAAAAAAAAUDP1A=="
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
Dim strVal As String
Dim city As String
Dim country As String
Dim country_name As String
Dim v_number As String
Dim v_type_str As String
Dim created_at As String
created_at = jResp.StringOf("created_at")
Dim duration As Int32
duration = jResp.IntOf("duration")
Dim host_id As String
host_id = jResp.StringOf("host_id")
Dim id As Int32
id = jResp.IntOf("id")
Dim join_url As String
join_url = jResp.StringOf("join_url")
Dim Allow_multiple_devices As Boolean
Allow_multiple_devices = jResp.BoolOf("settings.allow_multiple_devices")
Dim Alternative_hosts As String
Alternative_hosts = jResp.StringOf("settings.alternative_hosts")
Dim Approval_type As Int32
Approval_type = jResp.IntOf("settings.approval_type")
Dim Audio As String
Audio = jResp.StringOf("settings.audio")
Dim Auto_recording As String
Auto_recording = jResp.StringOf("settings.auto_recording")
Dim Close_registration As Boolean
Close_registration = jResp.BoolOf("settings.close_registration")
Dim Contact_email As String
Contact_email = jResp.StringOf("settings.contact_email")
Dim Contact_name As String
Contact_name = jResp.StringOf("settings.contact_name")
Dim Enforce_login As Boolean
Enforce_login = jResp.BoolOf("settings.enforce_login")
Dim Enforce_login_domains As String
Enforce_login_domains = jResp.StringOf("settings.enforce_login_domains")
Dim Hd_video As Boolean
Hd_video = jResp.BoolOf("settings.hd_video")
Dim Hd_video_for_attendees As Boolean
Hd_video_for_attendees = jResp.BoolOf("settings.hd_video_for_attendees")
Dim Send_1080p_video_to_attendees As Boolean
Send_1080p_video_to_attendees = jResp.BoolOf("settings.send_1080p_video_to_attendees")
Dim Host_video As Boolean
Host_video = jResp.BoolOf("settings.host_video")
Dim On_demand As Boolean
On_demand = jResp.BoolOf("settings.on_demand")
Dim Panelists_video As Boolean
Panelists_video = jResp.BoolOf("settings.panelists_video")
Dim Practice_session As Boolean
Practice_session = jResp.BoolOf("settings.practice_session")
Dim Question_answer As Boolean
Question_answer = jResp.BoolOf("settings.question_answer")
Dim Registrants_confirmation_email As Boolean
Registrants_confirmation_email = jResp.BoolOf("settings.registrants_confirmation_email")
Dim Registrants_restrict_number As Int32
Registrants_restrict_number = jResp.IntOf("settings.registrants_restrict_number")
Dim Show_share_button As Boolean
Show_share_button = jResp.BoolOf("settings.show_share_button")
Dim Registrants_email_notification As Boolean
Registrants_email_notification = jResp.BoolOf("settings.registrants_email_notification")
Dim Email_language As String
Email_language = jResp.StringOf("settings.email_language")
Dim Panelists_invitation_email_notification As Boolean
Panelists_invitation_email_notification = jResp.BoolOf("settings.panelists_invitation_email_notification")
Dim Enable As Boolean
Enable = jResp.BoolOf("settings.attendees_and_panelists_reminder_email_notification.enable")
Dim v_Type As Int32
v_Type = jResp.IntOf("settings.attendees_and_panelists_reminder_email_notification.type")
Dim Follow_up_attendees_email_notificationEnable As Boolean
Follow_up_attendees_email_notificationEnable = jResp.BoolOf("settings.follow_up_attendees_email_notification.enable")
Dim Follow_up_attendees_email_notificationType As Int32
Follow_up_attendees_email_notificationType = jResp.IntOf("settings.follow_up_attendees_email_notification.type")
Dim Follow_up_absentees_email_notificationEnable As Boolean
Follow_up_absentees_email_notificationEnable = jResp.BoolOf("settings.follow_up_absentees_email_notification.enable")
Dim Follow_up_absentees_email_notificationType As Int32
Follow_up_absentees_email_notificationType = jResp.IntOf("settings.follow_up_absentees_email_notification.type")
Dim start_time As String
start_time = jResp.StringOf("start_time")
Dim start_url As String
start_url = jResp.StringOf("start_url")
Dim timezone As String
timezone = jResp.StringOf("timezone")
Dim topic As String
topic = jResp.StringOf("topic")
Dim v_type As Int32
v_type = jResp.IntOf("type")
Dim uuid As String
uuid = jResp.StringOf("uuid")
Dim i As Int32
i = 0
Dim count_i As Int32
count_i = jResp.SizeOfArray("settings.global_dial_in_countries")
While i < count_i
jResp.I = i
strVal = jResp.StringOf("settings.global_dial_in_countries[i]")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("settings.global_dial_in_numbers")
While i < count_i
jResp.I = i
city = jResp.StringOf("settings.global_dial_in_numbers[i].city")
country = jResp.StringOf("settings.global_dial_in_numbers[i].country")
country_name = jResp.StringOf("settings.global_dial_in_numbers[i].country_name")
v_number = jResp.StringOf("settings.global_dial_in_numbers[i].number")
v_type_str = jResp.StringOf("settings.global_dial_in_numbers[i].type")
i = i + 1
Wend
Curl Command
curl -G -d "occurrence_id=quis%20officia%20in%20reprehenderit"
-d "show_previous_occurrences=true"
-H "Authorization: Bearer <access_token>"
https://api.zoom.us/v2/webinars/:webinarId
Postman Collection Item JSON
{
"name": "Get a webinar",
"request": {
"auth": {
"type": "oauth2"
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/webinars/:webinarId?occurrence_id=quis officia in reprehenderit&show_previous_occurrences=true",
"host": [
"{{baseUrl}}"
],
"path": [
"webinars",
":webinarId"
],
"query": [
{
"key": "occurrence_id",
"value": "quis officia in reprehenderit",
"description": "Unique Identifier that identifies an occurrence of a recurring webinar. [Recurring webinars](https://support.zoom.us/hc/en-us/articles/216354763-How-to-Schedule-A-Recurring-Webinar) can have a maximum of 50 occurrences. When you create a recurring Webinar using [Create a Webinar API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate), you can retrieve the Occurrence ID from the response of the API call."
},
{
"key": "show_previous_occurrences",
"value": "true",
"description": "Set the value of this field to `true` if you would like to view Webinar details of all previous occurrences of a recurring Webinar."
}
],
"variable": [
{
"key": "webinarId",
"value": "quis officia in reprehenderit",
"description": "(Required) The webinar's ID or universally unique ID (UUID)."
}
]
},
"description": "Zoom users with a [Webinar Plan](https://zoom.us/webinar) have access to creating and managing Webinars. Webinar allows a host to broadcast a Zoom meeting to up to 10,000 attendees.<br>Use this API to get details of a scheduled webinar.<br><br>\n**Scopes:** `webinar:read:admin` `webinar:read`<br> \n **[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Light`<br>**Prerequisites:**\n* Pro or higher plan with a Webinar Add-on."
},
"response": [
{
"name": "**HTTP Status Code:** `200`<br>\nSuccess",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/webinars/:webinarId?occurrence_id=quis officia in reprehenderit&show_previous_occurrences=true",
"host": [
"{{baseUrl}}"
],
"path": [
"webinars",
":webinarId"
],
"query": [
{
"key": "occurrence_id",
"value": "quis officia in reprehenderit"
},
{
"key": "show_previous_occurrences",
"value": "true"
}
],
"variable": [
{
"key": "webinarId",
"value": "quis officia in reprehenderit",
"description": "(Required) The webinar's ID or universally unique ID (UUID)."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"created_at\": \"2019-09-13T15:35:00Z\",\n \"duration\": 60,\n \"host_id\": \"Labcjskdfsjgfg\",\n \"id\": 12345678,\n \"join_url\": \"https://zoom.us/j/12345678\",\n \"settings\": {\n \"allow_multiple_devices\": true,\n \"alternative_hosts\": \"\",\n \"approval_type\": 2,\n \"audio\": \"both\",\n \"auto_recording\": \"local\",\n \"close_registration\": true,\n \"contact_email\": \"example@example.com\",\n \"contact_name\": \"Amal\",\n \"enforce_login\": false,\n \"enforce_login_domains\": \"\",\n \"global_dial_in_countries\": [\n \"US\"\n ],\n \"global_dial_in_numbers\": [\n {\n \"city\": \"New York\",\n \"country\": \"US\",\n \"country_name\": \"US\",\n \"number\": \"+1 00000\",\n \"type\": \"toll\"\n },\n {\n \"city\": \"San Jose\",\n \"country\": \"US\",\n \"country_name\": \"US\",\n \"number\": \"+1 111111111\",\n \"type\": \"toll\"\n },\n {\n \"city\": \"San Jose\",\n \"country\": \"US\",\n \"country_name\": \"US\",\n \"number\": \"+1 11111110\",\n \"type\": \"toll\"\n }\n ],\n \"hd_video\": false,\n \"hd_video_for_attendees\": false,\n \"send_1080p_video_to_attendees\": false,\n \"host_video\": false,\n \"on_demand\": false,\n \"panelists_video\": false,\n \"practice_session\": false,\n \"question_answer\": true,\n \"registrants_confirmation_email\": true,\n \"registrants_restrict_number\": 0,\n \"show_share_button\": true,\n \"registrants_email_notification\": true,\n \"email_language\": \"en-US\",\n \"panelists_invitation_email_notification\": true,\n \"attendees_and_panelists_reminder_email_notification\": {\n \"enable\": true,\n \"type\": 1\n },\n \"follow_up_attendees_email_notification\": {\n \"enable\": true,\n \"type\": 1\n },\n \"follow_up_absentees_email_notification\": {\n \"enable\": true,\n \"type\": 1\n }\n },\n \"start_time\": \"2019-08-30T22:00:00Z\",\n \"start_url\": \"https://zoom.us/s/00000011110?zhghTlUT1Rjd2FXRgh0amxoejNQZ1EiLCJjaWQiOiIifQ.NJ0CXWQ-yhI8Xv01JvxityBtzp3Bt7odMOEG2L8DLmY\",\n \"timezone\": \"America/New_York\",\n \"topic\": \"Test Webinar\",\n \"type\": 5,\n \"uuid\": \"nWMHAAAAAAAAAAAAAUDP1A==\"\n}"
},
{
"name": "**HTTP Status Code:** `300`<br>Invalid webinar ID.",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/webinars/:webinarId?occurrence_id=quis officia in reprehenderit&show_previous_occurrences=true",
"host": [
"{{baseUrl}}"
],
"path": [
"webinars",
":webinarId"
],
"query": [
{
"key": "occurrence_id",
"value": "quis officia in reprehenderit"
},
{
"key": "show_previous_occurrences",
"value": "true"
}
],
"variable": [
{
"key": "webinarId",
"value": "quis officia in reprehenderit",
"description": "(Required) The webinar's ID or universally unique ID (UUID)."
}
]
}
},
"status": "Multiple Choices",
"code": 300,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "**HTTP Status Code:** `400`<br>\nBad request<br>\n**Error Code:** `1010`<br>\nUser does not belong to this account:{accountId}.<br>",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/webinars/:webinarId?occurrence_id=quis officia in reprehenderit&show_previous_occurrences=true",
"host": [
"{{baseUrl}}"
],
"path": [
"webinars",
":webinarId"
],
"query": [
{
"key": "occurrence_id",
"value": "quis officia in reprehenderit"
},
{
"key": "show_previous_occurrences",
"value": "true"
}
],
"variable": [
{
"key": "webinarId",
"value": "quis officia in reprehenderit",
"description": "(Required) The webinar's ID or universally unique ID (UUID)."
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "**HTTP Status Code:** `404`<br>\nWebinar not found.<br>\n**Error Code:** `1001`<br>\nUser {userId} does not exist or does not belong to this account.<br>\n**Error Code:** `3001`<br>\nWebinar {webinarId} not found or has expired.<br>",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/webinars/:webinarId?occurrence_id=quis officia in reprehenderit&show_previous_occurrences=true",
"host": [
"{{baseUrl}}"
],
"path": [
"webinars",
":webinarId"
],
"query": [
{
"key": "occurrence_id",
"value": "quis officia in reprehenderit"
},
{
"key": "show_previous_occurrences",
"value": "true"
}
],
"variable": [
{
"key": "webinarId",
"value": "quis officia in reprehenderit",
"description": "(Required) The webinar's ID or universally unique ID (UUID)."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}