Edits history of script submission #6140 for ' Add Webinar Registrant (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,
    	webinarId: 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
    	}
    ) {
    	try {
    		const client = zoomApi(resource)
    		const meeting = await client.webinars.AddWebinarRegistrant(webinarId, registrant)
    		return meeting
    	} catch (error) {
    		console.log(error)
    	}
    }
    

    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,
    	webinarId: 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
    	}
    ) {
    	try {
    		const client = zoomApi(resource)
    		const meeting = await client.webinars.AddWebinarRegistrant(webinarId, registrant)
    		return meeting
    	} catch (error) {
    		console.log(error)
    	}
    }
    

    Submitted by hugo697 763 days ago