DataFlex / Zoom API / Get a webinar
Back to Collection Items
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoHttp
Boolean iSuccess
Variant vQueryParams
Handle hoQueryParams
Variant vResp
Handle hoResp
Variant vSbResponseBody
Handle hoSbResponseBody
Handle hoJResp
Integer iRespStatusCode
String sStrVal
String sCity
String sCountry
String sCountry_name
String sV_number
String sV_type_str
String sCreated_at
Integer iDuration
String sHost_id
Integer iId
String sJoin_url
Boolean iAllow_multiple_devices
String sAlternative_hosts
Integer iApproval_type
String sAudio
String sAuto_recording
Boolean iClose_registration
String sContact_email
String sContact_name
Boolean iEnforce_login
String sEnforce_login_domains
Boolean iHd_video
Boolean iHd_video_for_attendees
Boolean iSend_1080p_video_to_attendees
Boolean iHost_video
Boolean iOn_demand
Boolean iPanelists_video
Boolean iPractice_session
Boolean iQuestion_answer
Boolean iRegistrants_confirmation_email
Integer iRegistrants_restrict_number
Boolean iShow_share_button
Boolean iRegistrants_email_notification
String sEmail_language
Boolean iPanelists_invitation_email_notification
Boolean iEnable
Integer iV_Type
Boolean iFollow_up_attendees_email_notificationEnable
Integer iFollow_up_attendees_email_notificationType
Boolean iFollow_up_absentees_email_notificationEnable
Integer iFollow_up_absentees_email_notificationType
String sStart_time
String sStart_url
String sTimezone
String sTopic
Integer iV_type
String sUuid
Integer i
Integer iCount_i
String sTemp1
Boolean bTemp1
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatHttp)) To hoHttp
If (Not(IsComObjectCreated(hoHttp))) Begin
Send CreateComObject of hoHttp
End
Get Create (RefClass(cComChilkatJsonObject)) To hoQueryParams
If (Not(IsComObjectCreated(hoQueryParams))) Begin
Send CreateComObject of hoQueryParams
End
Get ComUpdateString Of hoQueryParams "occurrence_id" "quis officia in reprehenderit" To iSuccess
Get ComUpdateString Of hoQueryParams "show_previous_occurrences" "true" To iSuccess
// Adds the "Authorization: Bearer <access_token>" header.
Set ComAuthToken Of hoHttp To "<access_token>"
Get pvComObject of hoQueryParams to vQueryParams
Get ComQuickRequestParams Of hoHttp "GET" "https://api.zoom.us/v2/webinars/:webinarId" vQueryParams To vResp
If (IsComObject(vResp)) Begin
Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
Set pvComObject Of hoResp To vResp
End
Get ComLastMethodSuccess Of hoHttp To bTemp1
If (bTemp1 = False) Begin
Get ComLastErrorText Of hoHttp To sTemp1
Showln sTemp1
Procedure_Return
End
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
Send CreateComObject of hoSbResponseBody
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess
Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
If (Not(IsComObjectCreated(hoJResp))) Begin
Send CreateComObject of hoJResp
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
Set ComEmitCompact Of hoJResp To False
Showln "Response Body:"
Get ComEmit Of hoJResp To sTemp1
Showln sTemp1
Get ComStatusCode Of hoResp To iRespStatusCode
Showln "Response Status Code = " iRespStatusCode
If (iRespStatusCode >= 400) Begin
Showln "Response Header:"
Get ComHeader Of hoResp To sTemp1
Showln sTemp1
Showln "Failed."
Send Destroy of hoResp
Procedure_Return
End
Send Destroy of hoResp
// 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
Get ComStringOf Of hoJResp "created_at" To sCreated_at
Get ComIntOf Of hoJResp "duration" To iDuration
Get ComStringOf Of hoJResp "host_id" To sHost_id
Get ComIntOf Of hoJResp "id" To iId
Get ComStringOf Of hoJResp "join_url" To sJoin_url
Get ComBoolOf Of hoJResp "settings.allow_multiple_devices" To iAllow_multiple_devices
Get ComStringOf Of hoJResp "settings.alternative_hosts" To sAlternative_hosts
Get ComIntOf Of hoJResp "settings.approval_type" To iApproval_type
Get ComStringOf Of hoJResp "settings.audio" To sAudio
Get ComStringOf Of hoJResp "settings.auto_recording" To sAuto_recording
Get ComBoolOf Of hoJResp "settings.close_registration" To iClose_registration
Get ComStringOf Of hoJResp "settings.contact_email" To sContact_email
Get ComStringOf Of hoJResp "settings.contact_name" To sContact_name
Get ComBoolOf Of hoJResp "settings.enforce_login" To iEnforce_login
Get ComStringOf Of hoJResp "settings.enforce_login_domains" To sEnforce_login_domains
Get ComBoolOf Of hoJResp "settings.hd_video" To iHd_video
Get ComBoolOf Of hoJResp "settings.hd_video_for_attendees" To iHd_video_for_attendees
Get ComBoolOf Of hoJResp "settings.send_1080p_video_to_attendees" To iSend_1080p_video_to_attendees
Get ComBoolOf Of hoJResp "settings.host_video" To iHost_video
Get ComBoolOf Of hoJResp "settings.on_demand" To iOn_demand
Get ComBoolOf Of hoJResp "settings.panelists_video" To iPanelists_video
Get ComBoolOf Of hoJResp "settings.practice_session" To iPractice_session
Get ComBoolOf Of hoJResp "settings.question_answer" To iQuestion_answer
Get ComBoolOf Of hoJResp "settings.registrants_confirmation_email" To iRegistrants_confirmation_email
Get ComIntOf Of hoJResp "settings.registrants_restrict_number" To iRegistrants_restrict_number
Get ComBoolOf Of hoJResp "settings.show_share_button" To iShow_share_button
Get ComBoolOf Of hoJResp "settings.registrants_email_notification" To iRegistrants_email_notification
Get ComStringOf Of hoJResp "settings.email_language" To sEmail_language
Get ComBoolOf Of hoJResp "settings.panelists_invitation_email_notification" To iPanelists_invitation_email_notification
Get ComBoolOf Of hoJResp "settings.attendees_and_panelists_reminder_email_notification.enable" To iEnable
Get ComIntOf Of hoJResp "settings.attendees_and_panelists_reminder_email_notification.type" To iV_Type
Get ComBoolOf Of hoJResp "settings.follow_up_attendees_email_notification.enable" To iFollow_up_attendees_email_notificationEnable
Get ComIntOf Of hoJResp "settings.follow_up_attendees_email_notification.type" To iFollow_up_attendees_email_notificationType
Get ComBoolOf Of hoJResp "settings.follow_up_absentees_email_notification.enable" To iFollow_up_absentees_email_notificationEnable
Get ComIntOf Of hoJResp "settings.follow_up_absentees_email_notification.type" To iFollow_up_absentees_email_notificationType
Get ComStringOf Of hoJResp "start_time" To sStart_time
Get ComStringOf Of hoJResp "start_url" To sStart_url
Get ComStringOf Of hoJResp "timezone" To sTimezone
Get ComStringOf Of hoJResp "topic" To sTopic
Get ComIntOf Of hoJResp "type" To iV_type
Get ComStringOf Of hoJResp "uuid" To sUuid
Move 0 To i
Get ComSizeOfArray Of hoJResp "settings.global_dial_in_countries" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "settings.global_dial_in_countries[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "settings.global_dial_in_numbers" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "settings.global_dial_in_numbers[i].city" To sCity
Get ComStringOf Of hoJResp "settings.global_dial_in_numbers[i].country" To sCountry
Get ComStringOf Of hoJResp "settings.global_dial_in_numbers[i].country_name" To sCountry_name
Get ComStringOf Of hoJResp "settings.global_dial_in_numbers[i].number" To sV_number
Get ComStringOf Of hoJResp "settings.global_dial_in_numbers[i].type" To sV_type_str
Move (i + 1) To i
Loop
End_Procedure
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": ""
}
]
}