import zoomApi from 'zoomapi'
type Zoom = {
accountId: string
oauthClientId: string
oauthClientSecret: string
webhookSecretToken: string
}
export async function main(
resource: Zoom,
userId: string,
meeting: {
uuid?: string
id?: string
host_id?: string
topic?: string
type?: 1 | 2 | 3 | 8
start_time?: string
duration?: number
schedule_for?: string
timezone?: string
created_at?: string
join_url?: string
agenda?: string
start_url?: string
password?: string
h323_password?: string
encrypted_password?: string
pmi?: number
tracking_fields?: {
field: string
value: string
}[]
occurrences?: {
occurrence_id: string
start_time: string
duration: number
status: string
}[]
settings?: {
host_video?: boolean
participant_video?: boolean
cn_meeting?: boolean
in_meeting?: boolean
join_before_host?: boolean
mute_upon_entry?: boolean
watermark?: boolean
use_pmi?: boolean
approval_type?: 0 | 1 | 2
registration_type?: 1 | 2 | 3
audio?: 'both' | 'telephony' | 'voip'
auto_recording?: 'local' | 'cloud' | 'none'
alternative_hosts?: string
close_registration?: boolean
waiting_room?: boolean
global_dial_in_countries?: string[]
global_dial_in_numbers?: {
country: string
country_name: string
city: string
number: string
type: string
}[]
contact_name?: string
contact_email?: string
registrants_confirmation_email?: boolean
registrants_email_notification?: boolean
meeting_authentication?: boolean
authentication_option?: string
authentication_domains?: string
authentication_name?: string
additional_data_center_regions?: string[]
}
recurrence?: {
type: 1 | 2 | 3
repeat_interval: number
weekly_days: string
monthly_day: number
monthly_week: number
monthly_week_day: number
end_times: number
end_date_time: string
}
}
) {
const client = zoomApi(resource)
const createdMeeting = await client.meetings.CreateMeeting(userId, meeting)
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,
userId: string,
meeting: {
uuid?: string
id?: string
host_id?: string
topic?: string
type?: 1 | 2 | 3 | 8
start_time?: string
duration?: number
schedule_for?: string
timezone?: string
created_at?: string
join_url?: string
agenda?: string
start_url?: string
password?: string
h323_password?: string
encrypted_password?: string
pmi?: number
tracking_fields?: {
field: string
value: string
}[]
occurrences?: {
occurrence_id: string
start_time: string
duration: number
status: string
}[]
settings?: {
host_video?: boolean
participant_video?: boolean
cn_meeting?: boolean
in_meeting?: boolean
join_before_host?: boolean
mute_upon_entry?: boolean
watermark?: boolean
use_pmi?: boolean
approval_type?: 0 | 1 | 2
registration_type?: 1 | 2 | 3
audio?: 'both' | 'telephony' | 'voip'
auto_recording?: 'local' | 'cloud' | 'none'
alternative_hosts?: string
close_registration?: boolean
waiting_room?: boolean
global_dial_in_countries?: string[]
global_dial_in_numbers?: {
country: string
country_name: string
city: string
number: string
type: string
}[]
contact_name?: string
contact_email?: string
registrants_confirmation_email?: boolean
registrants_email_notification?: boolean
meeting_authentication?: boolean
authentication_option?: string
authentication_domains?: string
authentication_name?: string
additional_data_center_regions?: string[]
}
recurrence?: {
type: 1 | 2 | 3
repeat_interval: number
weekly_days: string
monthly_day: number
monthly_week: number
monthly_week_day: number
end_times: number
end_date_time: string
}
}
) {
const client = zoomApi(resource)
const createdMeeting = await client.meetings.CreateMeeting(userId, meeting)
return createdMeeting
}
Submitted by hugo697 764 days ago