Edits history of script submission #6137 for ' Update Meeting (zoom)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import zoomApi from 'zoomapi'
    
    type Zoom = {
    	accountId: string
    	oauthClientId: string
    	oauthClientSecret: string
    	webhookSecretToken: string
    }
    
    export async function main(
    	resource: Zoom,
    	meetingId: 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.UpdateMeeting(meetingId, meeting)
    	return createdMeeting
    }
    

    Submitted by hugo697 398 days ago

  • bun
    import zoomApi from 'zoomapi'
    
    type Zoom = {
    	accountId: string
    	oauthClientId: string
    	oauthClientSecret: string
    	webhookSecretToken: string
    }
    
    export async function main(
    	resource: Zoom,
    	meetingId: 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.UpdateMeeting(meetingId, meeting)
    	return createdMeeting
    }
    

    Submitted by hugo697 763 days ago