DataFlex / Zoom API / List meeting participants QoS
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
Variant vDate_time
Handle hoDate_time
String sUser_id
String sUser_name
String sDevice
String sIp_address
String sLocation
String sJoin_time
String sLeave_time
String sPc_name
String sDomain
String sMac_addr
String sHarddisk_id
String sVersion
Integer j
Integer iCount_j
String sBitrate
String sLatency
String sJitter
String sAvg_loss
String sMax_loss
String sAudio_outputBitrate
String sAudio_outputLatency
String sAudio_outputJitter
String sAudio_outputAvg_loss
String sAudio_outputMax_loss
String sVideo_inputBitrate
String sVideo_inputLatency
String sVideo_inputJitter
String sVideo_inputAvg_loss
String sVideo_inputMax_loss
String sResolution
String sFrame_rate
String sVideo_outputBitrate
String sVideo_outputLatency
String sVideo_outputJitter
String sVideo_outputAvg_loss
String sVideo_outputMax_loss
String sVideo_outputResolution
String sVideo_outputFrame_rate
String sAs_inputBitrate
String sAs_inputLatency
String sAs_inputJitter
String sAs_inputAvg_loss
String sAs_inputMax_loss
String sAs_inputResolution
String sAs_inputFrame_rate
String sAs_outputBitrate
String sAs_outputLatency
String sAs_outputJitter
String sAs_outputAvg_loss
String sAs_outputMax_loss
String sAs_outputResolution
String sAs_outputFrame_rate
String sZoom_min_cpu_usage
String sZoom_avg_cpu_usage
String sZoom_max_cpu_usage
String sSystem_max_cpu_usage
String sPage_count
String sPage_size
String sTotal_records
String sNext_page_token
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 "type" "live" To iSuccess
Get ComUpdateInt Of hoQueryParams "page_size" 1 To iSuccess
Get ComUpdateString Of hoQueryParams "next_page_token" "quis officia in reprehenderit" 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/metrics/meetings/:meetingId/participants/qos" 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)
// {
// "page_count": "integer [int64]",
// "page_size": "integer",
// "total_records": "integer [int64]",
// "next_page_token": "string",
// "participants": [
// {
// "user_id": "1670000000",
// "user_name": "User",
// "device": "Android",
// "ip_address": "192.0.2.0",
// "location": "San Jose (US)",
// "join_time": "2021-06-24T20:00:00Z",
// "leave_time": "2021-06-24T20:00:00Z",
// "pc_name": "User's Phone",
// "domain": "user-android",
// "mac_addr": "",
// "harddisk_id": "",
// "version": "4.4.55383.0726",
// "user_qos": [
// {
// "date_time": "2021-06-24T20:00:00Z",
// "audio_input": {
// "bitrate": "23 kbps",
// "latency": "126 ms",
// "jitter": "6 ms",
// "avg_loss": "0.3%",
// "max_loss": "1.9%"
// },
// "audio_output": {
// "bitrate": "63 kbps",
// "latency": "134 ms",
// "jitter": "6 ms",
// "avg_loss": "0.0%",
// "max_loss": "0.0%"
// },
// "video_input": {
// "bitrate": "1055 kbps",
// "latency": "129 ms",
// "jitter": "11 ms",
// "avg_loss": "0.0%",
// "max_loss": "4.9%",
// "resolution": "1280*720",
// "frame_rate": "12 fps"
// },
// "video_output": {
// "bitrate": "673 kbps",
// "latency": "135 ms",
// "jitter": "11 ms",
// "avg_loss": "0.0%",
// "max_loss": "0.0%",
// "resolution": "640*360",
// "frame_rate": "22 fps"
// },
// "as_input": {
// "bitrate": "70 kbps",
// "latency": "135 ms",
// "jitter": "8 ms",
// "avg_loss": "0.0%",
// "max_loss": "0.0%",
// "resolution": "0*0",
// "frame_rate": ""
// },
// "as_output": {
// "bitrate": "70 kbps",
// "latency": "135 ms",
// "jitter": "8 ms",
// "avg_loss": "0.0%",
// "max_loss": "0.0%",
// "resolution": "0*0",
// "frame_rate": ""
// },
// "cpu_usage": {
// "zoom_min_cpu_usage": "8%",
// "zoom_avg_cpu_usage": "12%",
// "zoom_max_cpu_usage": "18%",
// "system_max_cpu_usage": "40%"
// }
// }
// ]
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
Get Create (RefClass(cComChilkatDtObj)) To hoDate_time
If (Not(IsComObjectCreated(hoDate_time))) Begin
Send CreateComObject of hoDate_time
End
Get ComStringOf Of hoJResp "page_count" To sPage_count
Get ComStringOf Of hoJResp "page_size" To sPage_size
Get ComStringOf Of hoJResp "total_records" To sTotal_records
Get ComStringOf Of hoJResp "next_page_token" To sNext_page_token
Move 0 To i
Get ComSizeOfArray Of hoJResp "participants" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "participants[i].user_id" To sUser_id
Get ComStringOf Of hoJResp "participants[i].user_name" To sUser_name
Get ComStringOf Of hoJResp "participants[i].device" To sDevice
Get ComStringOf Of hoJResp "participants[i].ip_address" To sIp_address
Get ComStringOf Of hoJResp "participants[i].location" To sLocation
Get ComStringOf Of hoJResp "participants[i].join_time" To sJoin_time
Get ComStringOf Of hoJResp "participants[i].leave_time" To sLeave_time
Get ComStringOf Of hoJResp "participants[i].pc_name" To sPc_name
Get ComStringOf Of hoJResp "participants[i].domain" To sDomain
Get ComStringOf Of hoJResp "participants[i].mac_addr" To sMac_addr
Get ComStringOf Of hoJResp "participants[i].harddisk_id" To sHarddisk_id
Get ComStringOf Of hoJResp "participants[i].version" To sVersion
Move 0 To j
Get ComSizeOfArray Of hoJResp "participants[i].user_qos" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get pvComObject of hoDate_time to vDate_time
Get ComDtOf Of hoJResp "participants[i].user_qos[j].date_time" False vDate_time To iSuccess
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_input.bitrate" To sBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_input.latency" To sLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_input.jitter" To sJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_input.avg_loss" To sAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_input.max_loss" To sMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_output.bitrate" To sAudio_outputBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_output.latency" To sAudio_outputLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_output.jitter" To sAudio_outputJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_output.avg_loss" To sAudio_outputAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].audio_output.max_loss" To sAudio_outputMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.bitrate" To sVideo_inputBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.latency" To sVideo_inputLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.jitter" To sVideo_inputJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.avg_loss" To sVideo_inputAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.max_loss" To sVideo_inputMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.resolution" To sResolution
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_input.frame_rate" To sFrame_rate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.bitrate" To sVideo_outputBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.latency" To sVideo_outputLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.jitter" To sVideo_outputJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.avg_loss" To sVideo_outputAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.max_loss" To sVideo_outputMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.resolution" To sVideo_outputResolution
Get ComStringOf Of hoJResp "participants[i].user_qos[j].video_output.frame_rate" To sVideo_outputFrame_rate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.bitrate" To sAs_inputBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.latency" To sAs_inputLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.jitter" To sAs_inputJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.avg_loss" To sAs_inputAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.max_loss" To sAs_inputMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.resolution" To sAs_inputResolution
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_input.frame_rate" To sAs_inputFrame_rate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.bitrate" To sAs_outputBitrate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.latency" To sAs_outputLatency
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.jitter" To sAs_outputJitter
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.avg_loss" To sAs_outputAvg_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.max_loss" To sAs_outputMax_loss
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.resolution" To sAs_outputResolution
Get ComStringOf Of hoJResp "participants[i].user_qos[j].as_output.frame_rate" To sAs_outputFrame_rate
Get ComStringOf Of hoJResp "participants[i].user_qos[j].cpu_usage.zoom_min_cpu_usage" To sZoom_min_cpu_usage
Get ComStringOf Of hoJResp "participants[i].user_qos[j].cpu_usage.zoom_avg_cpu_usage" To sZoom_avg_cpu_usage
Get ComStringOf Of hoJResp "participants[i].user_qos[j].cpu_usage.zoom_max_cpu_usage" To sZoom_max_cpu_usage
Get ComStringOf Of hoJResp "participants[i].user_qos[j].cpu_usage.system_max_cpu_usage" To sSystem_max_cpu_usage
Move (j + 1) To j
Loop
Move (i + 1) To i
Loop
End_Procedure
Curl Command
curl -G -d "type=live"
-d "page_size=1"
-d "next_page_token=quis%20officia%20in%20reprehenderit"
-H "Authorization: Bearer <access_token>"
https://api.zoom.us/v2/metrics/meetings/:meetingId/participants/qos
Postman Collection Item JSON
{
"name": "List meeting participants QoS",
"request": {
"auth": {
"type": "oauth2"
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/metrics/meetings/:meetingId/participants/qos?type=live&page_size=1&next_page_token=quis officia in reprehenderit",
"host": [
"{{baseUrl}}"
],
"path": [
"metrics",
"meetings",
":meetingId",
"participants",
"qos"
],
"query": [
{
"key": "type",
"value": "live",
"description": "The type of meeting to query: \n* `past` — All past meetings. \n* `live` - All live meetings. \n\nThis value defaults to `live`."
},
{
"key": "page_size",
"value": "1",
"description": "The number of items returned per page."
},
{
"key": "next_page_token",
"value": "quis officia in reprehenderit",
"description": "The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes."
}
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's ID or universally unique ID (UUID). \n* If you provide a meeting ID, the API will return a response for the latest meeting instance. \n* If you provide a meeting UUID that begins with a `/` character or contains the `//` characters, you **must** double-encode the meeting UUID before making an API request."
}
]
},
"description": "Use this API to return a list of meeting participants from live or past meetings and their quality of service recieved during the meeting. The data returned indicates the connection quality for sending/receiving video, audio, and shared content. \n\n**Note:** \n\nThis API may return empty values for participants' `user_name`, `ip_address`, `location`, and `email` responses when the account calling this API: \n* Does **not** have a signed HIPAA business associate agreement (BAA). \n* Is a [**legacy** HIPAA BAA account](https://marketplace.zoom.us/docs/api-reference/other-references/legacy-business-associate-agreements). \n\n**Scopes:** `dashboard_meetings:read:admin` <br> **[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Heavy` \n\n**Prerequisites:** \n* A Business or a higher plan."
},
"response": [
{
"name": "**HTTP Status Code:** `200`<br>\nMeeting participants returned.<br>\nOnly available for paid accounts that have enabled the dashboard feature.",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/metrics/meetings/:meetingId/participants/qos?type=live&page_size=1&next_page_token=quis officia in reprehenderit",
"host": [
"{{baseUrl}}"
],
"path": [
"metrics",
"meetings",
":meetingId",
"participants",
"qos"
],
"query": [
{
"key": "type",
"value": "live"
},
{
"key": "page_size",
"value": "1"
},
{
"key": "next_page_token",
"value": "quis officia in reprehenderit"
}
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's ID or universally unique ID (UUID). \n* If you provide a meeting ID, the API will return a response for the latest meeting instance. \n* If you provide a meeting UUID that begins with a `/` character or contains the `//` characters, you **must** double-encode the meeting UUID before making an API request."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"page_count\": \"integer [int64]\",\n \"page_size\": \"integer\",\n \"total_records\": \"integer [int64]\",\n \"next_page_token\": \"string\",\n \"participants\": [\n {\n \"user_id\": \"1670000000\",\n \"user_name\": \"User\",\n \"device\": \"Android\",\n \"ip_address\": \"192.0.2.0\",\n \"location\": \"San Jose (US)\",\n \"join_time\": \"2021-06-24T20:00:00Z\",\n \"leave_time\": \"2021-06-24T20:00:00Z\",\n \"pc_name\": \"User's Phone\",\n \"domain\": \"user-android\",\n \"mac_addr\": \"\",\n \"harddisk_id\": \"\",\n \"version\": \"4.4.55383.0726\",\n \"user_qos\": [\n {\n \"date_time\": \"2021-06-24T20:00:00Z\",\n \"audio_input\": {\n \"bitrate\": \"23 kbps\",\n \"latency\": \"126 ms\",\n \"jitter\": \"6 ms\",\n \"avg_loss\": \"0.3%\",\n \"max_loss\": \"1.9%\"\n },\n \"audio_output\": {\n \"bitrate\": \"63 kbps\",\n \"latency\": \"134 ms\",\n \"jitter\": \"6 ms\",\n \"avg_loss\": \"0.0%\",\n \"max_loss\": \"0.0%\"\n },\n \"video_input\": {\n \"bitrate\": \"1055 kbps\",\n \"latency\": \"129 ms\",\n \"jitter\": \"11 ms\",\n \"avg_loss\": \"0.0%\",\n \"max_loss\": \"4.9%\",\n \"resolution\": \"1280*720\",\n \"frame_rate\": \"12 fps\"\n },\n \"video_output\": {\n \"bitrate\": \"673 kbps\",\n \"latency\": \"135 ms\",\n \"jitter\": \"11 ms\",\n \"avg_loss\": \"0.0%\",\n \"max_loss\": \"0.0%\",\n \"resolution\": \"640*360\",\n \"frame_rate\": \"22 fps\"\n },\n \"as_input\": {\n \"bitrate\": \"70 kbps\",\n \"latency\": \"135 ms\",\n \"jitter\": \"8 ms\",\n \"avg_loss\": \"0.0%\",\n \"max_loss\": \"0.0%\",\n \"resolution\": \"0*0\",\n \"frame_rate\": \"\"\n },\n \"as_output\": {\n \"bitrate\": \"70 kbps\",\n \"latency\": \"135 ms\",\n \"jitter\": \"8 ms\",\n \"avg_loss\": \"0.0%\",\n \"max_loss\": \"0.0%\",\n \"resolution\": \"0*0\",\n \"frame_rate\": \"\"\n },\n \"cpu_usage\": {\n \"zoom_min_cpu_usage\": \"8%\",\n \"zoom_avg_cpu_usage\": \"12%\",\n \"zoom_max_cpu_usage\": \"18%\",\n \"system_max_cpu_usage\": \"40%\"\n }\n }\n ]\n }\n ]\n}"
},
{
"name": "**Error Code:** `300`<br>\nCan not access webinar info, {meetingId}.<br>\nThe next page token is either invalid or expired.",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/metrics/meetings/:meetingId/participants/qos?type=live&page_size=1&next_page_token=quis officia in reprehenderit",
"host": [
"{{baseUrl}}"
],
"path": [
"metrics",
"meetings",
":meetingId",
"participants",
"qos"
],
"query": [
{
"key": "type",
"value": "live"
},
{
"key": "page_size",
"value": "1"
},
{
"key": "next_page_token",
"value": "quis officia in reprehenderit"
}
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's ID or universally unique ID (UUID). \n* If you provide a meeting ID, the API will return a response for the latest meeting instance. \n* If you provide a meeting UUID that begins with a `/` character or contains the `//` characters, you **must** double-encode the meeting UUID before making an API request."
}
]
}
},
"status": "Multiple Choices",
"code": 300,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "**HTTP Status Code:** `404`<br>\n**Error Code:** `3001`<br>\nThis meeting's detail info is not available.<br>\nThe Meeting ID is not valid or the meeting has not ended yet.\n",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/metrics/meetings/:meetingId/participants/qos?type=live&page_size=1&next_page_token=quis officia in reprehenderit",
"host": [
"{{baseUrl}}"
],
"path": [
"metrics",
"meetings",
":meetingId",
"participants",
"qos"
],
"query": [
{
"key": "type",
"value": "live"
},
{
"key": "page_size",
"value": "1"
},
{
"key": "next_page_token",
"value": "quis officia in reprehenderit"
}
],
"variable": [
{
"key": "meetingId",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's ID or universally unique ID (UUID). \n* If you provide a meeting ID, the API will return a response for the latest meeting instance. \n* If you provide a meeting UUID that begins with a `/` character or contains the `//` characters, you **must** double-encode the meeting UUID before making an API request."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}