import zoomApi from 'zoomapi'
type Zoom = {
accountId: string
oauthClientId: string
oauthClientSecret: string
webhookSecretToken: string
}
export async function main(
resource: Zoom,
meetingId: string,
registrant: {
id?: string
email: string
first_name: string
last_name?: string
address?: string
city?: string
country?: string
zip?: string
state?: string
phone?: string
industry?: string
org?: string
job_title?: string
purchasing_time_frame?: string
role_in_purchase_process?: string
no_of_employees?: string
comments?: string
custom_questions?: {
title: string
value?: string
}[]
status?: 'approved' | 'pending' | 'denied'
create_time?: string
join_url?: string
}
) {
const client = zoomApi(resource)
const createdMeeting = await client.meetings.AddRegistrant(meetingId, registrant)
return createdMeeting
}
Submitted by hugo697 399 days ago
import zoomApi from 'zoomapi'
type Zoom = {
accountId: string
oauthClientId: string
oauthClientSecret: string
webhookSecretToken: string
}
export async function main(
resource: Zoom,
meetingId: string,
registrant: {
id?: string
email: string
first_name: string
last_name?: string
address?: string
city?: string
country?: string
zip?: string
state?: string
phone?: string
industry?: string
org?: string
job_title?: string
purchasing_time_frame?: string
role_in_purchase_process?: string
no_of_employees?: string
comments?: string
custom_questions?: {
title: string
value?: string
}[]
status?: 'approved' | 'pending' | 'denied'
create_time?: string
join_url?: string
}
) {
const client = zoomApi(resource)
const createdMeeting = await client.meetings.AddRegistrant(meetingId, registrant)
return createdMeeting
}
Submitted by hugo697 764 days ago