PowerBuilder / Zoom API / Use in-meeting cloud recording controls
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Req
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Req = create oleobject
// Use "Chilkat_9_5_0.HttpRequest" for versions of Chilkat < 10.0.0
li_rc = loo_Req.ConnectToNewObject("Chilkat.HttpRequest")
loo_Req.HttpVerb = "PATCH"
loo_Req.Path = "/v2/live_meetings/:meetingId/events"
loo_Req.ContentType = "multipart/form-data"
loo_Req.AddParam("method","irure deserunt labore culpa ea")
loo_Req.AddParam("params","irure deserunt labore culpa ea{~"contacts~":[{~"id~":~"mollit pariatur quis commodo~",~"email~":~"velit non Duis~"},{~"id~":~"eiusmod nostrud~",~"email~":~"reprehenderit laborum in fugiat~"}]}")
loo_Req.AddHeader("Authorization","Bearer <access_token>")
loo_Resp = loo_Http.SynchronousRequest("api.zoom.us",443,1,loo_Req)
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_Req
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_Req
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
destroy loo_Resp
destroy loo_Http
destroy loo_Req
destroy loo_SbResponseBody
destroy loo_JResp
Curl Command
curl -X PATCH
-H "Authorization: Bearer <access_token>"
-H "Content-Type: multipart/form-data"
--form 'method=irure deserunt labore culpa ea'
--form 'params=irure deserunt labore culpa ea{"contacts":[{"id":"mollit pariatur quis commodo","email":"velit non Duis"},{"id":"eiusmod nostrud","email":"reprehenderit laborum in fugiat"}]}'
https://api.zoom.us/v2/live_meetings/:meetingId/events
Postman Collection Item JSON
{
"name": "Use in-meeting cloud recording controls",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "multipart/form-data"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "method",
"value": "irure deserunt labore culpa ea",
"description": "The in-meeting recording method to control: \n* `recording.start` — Start the recording. \n* `recording.stop` — Stop the recording. \n* `recording.pause` — Pause the recording. \n* `recording.resume` — Resume a paused recording. \n* `participant.invite` — Invite a participant to the meeting.",
"type": "text"
},
{
"key": "params",
"value": "{\"contacts\":[{\"id\":\"mollit pariatur quis commodo\",\"email\":\"velit non Duis\"},{\"id\":\"eiusmod nostrud\",\"email\":\"reprehenderit laborum in fugiat\"}]}",
"description": "The in-meeting parameters.",
"type": "text"
}
]
},
"url": {
"raw": "{{baseUrl}}/live_meetings/:meetingId/events",
"host": [
"{{baseUrl}}"
],
"path": [
"live_meetings",
":meetingId",
"events"
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The live meeting's ID."
}
]
},
"description": "Use this API to control [in-meeting](https://support.zoom.us/hc/en-us/articles/360021921032-In-Meeting-Controls) cloud recording features. In-meeting controls include starting and stopping a recording, pausing and resuming a recording, and inviting participants. \n\n**Note:** This API only works for cloud recordings. It does **not** work for local recordings. \n\n**Scopes:** `meeting:write`, `meeting:write:admin`, `meeting:master` \n\n**Prerequisites:**\n* The meeting **must** be a live meeting. \n* [Cloud recording](https://support.zoom.us/hc/en-us/articles/360060231472-Enabling-cloud-recording) must be enabled on the account. \n* The user calling this API must be the host or an alternative meeting host.\n\n **[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Medium`"
},
"response": [
{
"name": "**HTTP Status:** `202` **Accepted**\nRequest processed successfully.",
"originalRequest": {
"method": "PATCH",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "method",
"value": "adipisicing Lorem ipsum",
"description": "The in-meeting recording method to control: \n* `recording.start` — Start the recording. \n* `recording.stop` — Stop the recording. \n* `recording.pause` — Pause the recording. \n* `recording.resume` — Resume a paused recording. \n* `participant.invite` — Invite a participant to the meeting.",
"type": "text"
},
{
"key": "params",
"value": "{\"contacts\":[{\"id\":\"elit et quis\",\"email\":\"Duis esse\"},{\"id\":\"mollit \",\"email\":\"sed\"}]}",
"description": "The in-meeting parameters.",
"type": "text"
}
]
},
"url": {
"raw": "{{baseUrl}}/live_meetings/:meetingId/events",
"host": [
"{{baseUrl}}"
],
"path": [
"live_meetings",
":meetingId",
"events"
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The live meeting's ID."
}
]
}
},
"status": "Accepted",
"code": 202,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{}"
},
{
"name": "**HTTP Status:** `400` **Bad Request** <br><br>\n**Error Code:** `300`<br>\n* Meeting id does not exist.<br>\n* Invalid meeting id.<br>\n* Meeting does not exist.<br>\n* No permission.\n",
"originalRequest": {
"method": "PATCH",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "method",
"value": "adipisicing Lorem ipsum",
"description": "The in-meeting recording method to control: \n* `recording.start` — Start the recording. \n* `recording.stop` — Stop the recording. \n* `recording.pause` — Pause the recording. \n* `recording.resume` — Resume a paused recording. \n* `participant.invite` — Invite a participant to the meeting.",
"type": "text"
},
{
"key": "params",
"value": "{\"contacts\":[{\"id\":\"elit et quis\",\"email\":\"Duis esse\"},{\"id\":\"mollit \",\"email\":\"sed\"}]}",
"description": "The in-meeting parameters.",
"type": "text"
}
]
},
"url": {
"raw": "{{baseUrl}}/live_meetings/:meetingId/events",
"host": [
"{{baseUrl}}"
],
"path": [
"live_meetings",
":meetingId",
"events"
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The live meeting's ID."
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "**HTTP Status Code:** `404`<br>\n**Error Code:** `3001` <br> Meeting {meetingId} is not found or has expired.",
"originalRequest": {
"method": "PATCH",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "method",
"value": "adipisicing Lorem ipsum",
"description": "The in-meeting recording method to control: \n* `recording.start` — Start the recording. \n* `recording.stop` — Stop the recording. \n* `recording.pause` — Pause the recording. \n* `recording.resume` — Resume a paused recording. \n* `participant.invite` — Invite a participant to the meeting.",
"type": "text"
},
{
"key": "params",
"value": "{\"contacts\":[{\"id\":\"elit et quis\",\"email\":\"Duis esse\"},{\"id\":\"mollit \",\"email\":\"sed\"}]}",
"description": "The in-meeting parameters.",
"type": "text"
}
]
},
"url": {
"raw": "{{baseUrl}}/live_meetings/:meetingId/events",
"host": [
"{{baseUrl}}"
],
"path": [
"live_meetings",
":meetingId",
"events"
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The live meeting's ID."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}