0

Update Webinar

by
Published Jun 6, 2022

Update a webinar's topic, start time, or other settings

Script zoom Verified

The script

Submitted by hugo697 Bun
Verified 398 days ago
1
import zoomApi from 'zoomapi'
2

3
type Zoom = {
4
	accountId: string
5
	oauthClientId: string
6
	oauthClientSecret: string
7
	webhookSecretToken: string
8
}
9

10
export async function main(
11
	resource: Zoom,
12
	webinarId: string,
13
	webinar: {
14
		uuid?: string
15
		id?: number
16
		host_id?: string
17
		topic?: string
18
		type?: 5 | 6 | 9
19
		duration?: number
20
		timezone?: string
21
		created_at?: string
22
		join_url?: string
23
		agenda?: string
24
		start_time?: string
25
	}
26
) {
27
	const client = zoomApi(resource)
28
	const createdMeeting = await client.webinars.UpdateWebinar(webinarId, webinar)
29
	return createdMeeting
30
}
31