Edits history of script submission #6133 for ' Create User (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,
    	user: {
    		action: 'create' | 'autoCreate' | 'custCreate' | 'ssoCreate'
    		user_info?: {
    			email: string
    			/**
    			 * 1 - Basic.
    			 * 2 - Licensed.
    			 * 3 - On-prem.
    			 */
    			type: 1 | 2 | 3
    			first_name?: string
    			last_name?: string
    			password?: string
    		}
    	}
    ) {
    	const client = zoomApi(resource)
    	const createdUser = await client.users.CreateUser(user)
    	return createdUser
    }
    

    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,
    	user: {
    		action: 'create' | 'autoCreate' | 'custCreate' | 'ssoCreate'
    		user_info?: {
    			email: string
    			/**
    			 * 1 - Basic.
    			 * 2 - Licensed.
    			 * 3 - On-prem.
    			 */
    			type: 1 | 2 | 3
    			first_name?: string
    			last_name?: string
    			password?: string
    		}
    	}
    ) {
    	const client = zoomApi(resource)
    	const createdUser = await client.users.CreateUser(user)
    	return createdUser
    }
    

    Submitted by hugo697 763 days ago