Skip to content
Merged
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
@@ -1,13 +1,12 @@
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 documentation](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/GET/meetings/{meetingId}/recordings)",
key: "zoom_admin-get-meeting-recordings",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
zoomAdmin,
Expand All @@ -23,16 +22,26 @@ export default {
description: "Whether to include the download access token in the response",
optional: true,
},
ttl: {
type: "integer",
label: "TTL (seconds)",
description: "Time to live (TTL) of the download_access_token in seconds. Range: 0-604800 (7 days). Only valid when Download Access Token is enabled.",
optional: true,
min: 0,
max: 604800,
},
},
async run({ $ }) {
const res = await paginate(
this.zoomAdmin.listMeetingRecordings,
"recordings",
get(this.meeting, "value", this.meeting),
{
download_access_token: this.downloadAccessToken,
},
);
const params = {};

if (this.downloadAccessToken) {
params.include_fields = "download_access_token";
if (this.ttl !== undefined) {
params.ttl = this.ttl;
}
}

const res = await this.zoomAdmin.listMeetingRecordings(get(this.meeting, "value", this.meeting), params);

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

Expand Down
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.8.0",
"version": "0.9.0",
"description": "Pipedream Zoom_admin Components",
"main": "zoom_admin.app.mjs",
"keywords": [
Expand Down
Loading