C / Zoom API / Get past meeting details
Back to Collection Items
#include <C_CkHttp.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>
void ChilkatSample(void)
{
HCkHttp http;
BOOL success;
HCkStringBuilder sbResponseBody;
HCkJsonObject jResp;
int respStatusCode;
const char *uuid;
int id;
const char *host_id;
int v_type;
const char *topic;
const char *user_name;
const char *user_email;
const char *start_time;
const char *end_time;
int duration;
int total_minutes;
int participants_count;
const char *dept;
const char *source;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttp_Create();
// Adds the "Authorization: Bearer <access_token>" header.
CkHttp_putAuthToken(http,"<access_token>");
sbResponseBody = CkStringBuilder_Create();
success = CkHttp_QuickGetSb(http,"https://api.zoom.us/v2/past_meetings/:meetingUUID",sbResponseBody);
if (success == FALSE) {
printf("%s\n",CkHttp_lastErrorText(http));
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
return;
}
jResp = CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);
CkJsonObject_putEmitCompact(jResp,FALSE);
printf("Response Body:\n");
printf("%s\n",CkJsonObject_emit(jResp));
respStatusCode = CkHttp_getLastStatus(http);
printf("Response Status Code = %d\n",respStatusCode);
if (respStatusCode >= 400) {
printf("Response Header:\n");
printf("%s\n",CkHttp_lastHeader(http));
printf("Failed.\n");
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);
return;
}
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "uuid": "JbkqFkfqQ0e7+CZluSnc1g==",
// "id": 535548971,
// "host_id": "DYHrdpjrS3uaOf7dPkkg8w",
// "type": 2,
// "topic": "My Meeting",
// "user_name": "JilLChill",
// "user_email": "user@example.com",
// "start_time": "2020-04-01T07:00:30Z",
// "end_time": "2020-04-01T07:02:01Z",
// "duration": 2,
// "total_minutes": 2,
// "participants_count": 1,
// "dept": "Engineering",
// "source": "Zoom"
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
uuid = CkJsonObject_stringOf(jResp,"uuid");
id = CkJsonObject_IntOf(jResp,"id");
host_id = CkJsonObject_stringOf(jResp,"host_id");
v_type = CkJsonObject_IntOf(jResp,"type");
topic = CkJsonObject_stringOf(jResp,"topic");
user_name = CkJsonObject_stringOf(jResp,"user_name");
user_email = CkJsonObject_stringOf(jResp,"user_email");
start_time = CkJsonObject_stringOf(jResp,"start_time");
end_time = CkJsonObject_stringOf(jResp,"end_time");
duration = CkJsonObject_IntOf(jResp,"duration");
total_minutes = CkJsonObject_IntOf(jResp,"total_minutes");
participants_count = CkJsonObject_IntOf(jResp,"participants_count");
dept = CkJsonObject_stringOf(jResp,"dept");
source = CkJsonObject_stringOf(jResp,"source");
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);
}
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://api.zoom.us/v2/past_meetings/:meetingUUID
Postman Collection Item JSON
{
"name": "Get past meeting details",
"request": {
"auth": {
"type": "oauth2"
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/past_meetings/:meetingUUID",
"host": [
"{{baseUrl}}"
],
"path": [
"past_meetings",
":meetingUUID"
],
"variable": [
{
"key": "meetingUUID",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's universally unique identifier (UUID). Each meeting instance generates a UUID. For example, after a meeting ends, a new UUID is generated for the next meeting instance.\n\nIf the meeting UUID begins with a `/` character or contains a `//` character, you **must** double-encode the meeting UUID when using the meeting UUID for other API calls."
}
]
},
"description": "Use this API to get information about a past meeting. \n\n **Scopes:** `meeting:read:admin`, `meeting:read` <br> **[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Light`"
},
"response": [
{
"name": "**HTTP Status Code:** `200`<br>\nMeeting details returned.",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/past_meetings/:meetingUUID",
"host": [
"{{baseUrl}}"
],
"path": [
"past_meetings",
":meetingUUID"
],
"variable": [
{
"key": "meetingUUID",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's universally unique identifier (UUID). Each meeting instance generates a UUID. For example, after a meeting ends, a new UUID is generated for the next meeting instance.\n\nIf the meeting UUID begins with a `/` character or contains a `//` character, you **must** double-encode the meeting UUID when using the meeting UUID for other API calls."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"uuid\": \"JbkqFkfqQ0e7+CZluSnc1g==\",\n \"id\": 535548971,\n \"host_id\": \"DYHrdpjrS3uaOf7dPkkg8w\",\n \"type\": 2,\n \"topic\": \"My Meeting\",\n \"user_name\": \"JilLChill\",\n \"user_email\": \"user@example.com\",\n \"start_time\": \"2020-04-01T07:00:30Z\",\n \"end_time\": \"2020-04-01T07:02:01Z\",\n \"duration\": 2,\n \"total_minutes\": 2,\n \"participants_count\": 1,\n \"dept\": \"Engineering\",\n \"source\": \"Zoom\"\n}"
},
{
"name": "**HTTP Status Code:** `400`<br>\nMeeting not found<br><br>\n**Error Code:** `1010`<br>\nUser not exist: {userId}<br><br>\nUser {userId} not exist or not belong to this account.<br><br>\n**Error Code:** `300`<br>\nCannot access meeting info.<br><br>\n**Error Code",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/past_meetings/:meetingUUID",
"host": [
"{{baseUrl}}"
],
"path": [
"past_meetings",
":meetingUUID"
],
"variable": [
{
"key": "meetingUUID",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's universally unique identifier (UUID). Each meeting instance generates a UUID. For example, after a meeting ends, a new UUID is generated for the next meeting instance.\n\nIf the meeting UUID begins with a `/` character or contains a `//` character, you **must** double-encode the meeting UUID when using the meeting UUID for other API calls."
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "**HTTP Status Code:** `404`<br>\nMeeting not found<br><br>\n**Error Code:** `3001`<br>\nThis meeting is not available or ID is not valid.<br>\nMeeting ID is invalid or not end.\n",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/past_meetings/:meetingUUID",
"host": [
"{{baseUrl}}"
],
"path": [
"past_meetings",
":meetingUUID"
],
"variable": [
{
"key": "meetingUUID",
"value": "quis officia in reprehenderit",
"description": "(Required) The meeting's universally unique identifier (UUID). Each meeting instance generates a UUID. For example, after a meeting ends, a new UUID is generated for the next meeting instance.\n\nIf the meeting UUID begins with a `/` character or contains a `//` character, you **must** double-encode the meeting UUID when using the meeting UUID for other API calls."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}