Zoom - Add Webinar Registrant
@sergio
code:
data:privatelast updated:4 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
zoom_add_webinar_registrant
Registers a participant for a webinar.
auth
(auths.zoom)
params
Webinar id

The webinar ID.

 
string ·params.webinar_id
Email

A valid email address of the registrant.

 
string ·params.email
First name

Registrant's first name.

 
string ·params.first_name
Last name

Registrant's last name.

 
string ·params.last_name
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
}
35
//See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate
const config = {
  method: "post",
  url: `https://api.zoom.us/v2/webinars/${params.webinar_id}/registrants`,
  params: {
    occurrence_ids: params.occurrence_ids
  },
  data: {
    email: params.email,
    first_name: params.first_name,
    last_name: params.last_name,
    address: params.address,
    city: params.city,
    country: params.country,
    zip: params.zip,
    state: params.state,
    phone: params.phone,
    industry: params.industry,
    org: params.org,
    job_title: params.job_title,
    purchasing_time_frame: params.purchasing_time_frame,
    role_in_purchase_process: params.role_in_purchase_process,
    no_of_employees: params.no_of_employees,
    comments: params.comments,
    custom_questions: typeof params.custom_questions == 'undefined' ? params.custom_questions : JSON.parse(params.custom_questions),
    },
  headers: {
    Authorization: `Bearer ${auths.zoom.oauth_access_token}`,        
    "Content-Type": "application/json"
  }
}
return await require("@pipedreamhq/platform").axios(this, config)