Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import get from "lodash/get.js";
import { paginate } from "../../common/pagination.mjs";
import zoomAdmin from "../../zoom_admin.app.mjs";

export default {
name: "Get meeting recordings",
description:
"Get all recordings of a meeting. [See the docs here](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/GET/meetings/{meetingId}/recordings)",
key: "zoom_admin-get-meeting-recordings",
version: "0.0.1",
type: "action",
props: {
zoomAdmin,
meeting: {
propDefinition: [
zoomAdmin,
"meeting",
],
},
downloadAccessToken: {
type: "boolean",
label: "Download Access Token",
description: "Whether to include the download access token in the response",
optional: true,
},
},
async run({ $ }) {
const res = await paginate(
this.zoomAdmin.listMeetingRecordings,
"recordings",
get(this.meeting, "value", this.meeting),
{
download_access_token: this.downloadAccessToken,
},
);

$.export("$summary", `"${get(this.meeting, "label", this.meeting)}" meeting recordings successfully fetched`);

return res;
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import zoomAdmin from "../../zoom_admin.app.mjs";
import get from "lodash/get.js";
import { paginate } from "../../common/pagination.mjs";

export default {
name: "List past meeting participants",
description:
"List all participants of a past meeting. [See the docs here](https://developers.zoom.us/docs/api/meetings/#tag/meetings/GET/past_meetings/{meetingId}/participants)",
key: "zoom_admin-list-past-meeting-participants",
version: "0.0.1",
type: "action",
props: {
zoomAdmin,
meeting: {
propDefinition: [
zoomAdmin,
"meeting",
],
},
},
async run({ $ }) {
const res = await paginate(
this.zoomAdmin.listPastMeetingParticipants,
"participants",
get(this.meeting, "value", this.meeting),
);

$.export("$summary", `"${get(this.meeting, "label", this.meeting)}" past meeting participants successfully fetched`);

return res;
},
};
2 changes: 1 addition & 1 deletion components/zoom_admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/zoom_admin",
"version": "0.7.3",
"version": "0.8.0",
"description": "Pipedream Zoom_admin Components",
"main": "zoom_admin.app.mjs",
"keywords": [
Expand Down
21 changes: 21 additions & 0 deletions components/zoom_admin/zoom_admin.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,26 @@ export default {
});
return data;
},
async listPastMeetingParticipants(meetingId, nextPageToken) {
const { data } = await this._makeRequest({
path: `/past_meetings/${meetingId}/participants`,
params: {
page_size: 100,
next_page_token: nextPageToken,
},
});
return data;
},
async listMeetingRecordings(meetingId, params, nextPageToken) {
const { data } = await this._makeRequest({
path: `/meetings/${meetingId}/recordings`,
params: {
page_size: 100,
next_page_token: nextPageToken,
...params,
},
});
return data;
},
},
};
Loading