@pipedream/zoom 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/add-meeting-registrant/add-meeting-registrant.mjs +157 -108
- package/actions/add-webinar-registrant/add-webinar-registrant.mjs +157 -108
- package/actions/get-webinar-details/get-webinar-details.mjs +36 -22
- package/actions/list-past-meeting-participants/list-past-meeting-participants.mjs +25 -23
- package/actions/list-webinar-participants-report/list-webinar-participants-report.mjs +68 -0
- package/common/constants.mjs +9 -0
- package/common/utils.mjs +20 -0
- package/package.json +3 -3
- package/sources/common/common.mjs +2 -2
- package/sources/common/constants.mjs +106 -104
- package/sources/custom-event/custom-event.mjs +13 -10
- package/sources/meeting-created/meeting-created.mjs +16 -10
- package/sources/meeting-deleted/meeting-deleted.mjs +13 -8
- package/sources/meeting-ended/meeting-ended.mjs +20 -12
- package/sources/meeting-started/meeting-started.mjs +17 -11
- package/sources/meeting-updated/meeting-updated.mjs +16 -10
- package/sources/phone-event/phone-event.mjs +12 -10
- package/sources/recording-completed/recording-completed.mjs +28 -19
- package/sources/webinar-created/webinar-created.mjs +16 -10
- package/sources/webinar-deleted/webinar-deleted.mjs +14 -9
- package/sources/webinar-ended/webinar-ended.mjs +19 -13
- package/sources/webinar-started/webinar-started.mjs +16 -10
- package/sources/webinar-updated/webinar-updated.mjs +16 -10
- package/zoom.app.mjs +238 -42
|
@@ -1,143 +1,192 @@
|
|
|
1
|
-
|
|
2
|
-
import { axios } from "@pipedream/platform";
|
|
1
|
+
import app from "../../zoom.app.mjs";
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
key: "zoom-add-meeting-registrant",
|
|
6
5
|
name: "Add Meeting Registrant",
|
|
7
|
-
description: "Registers a participant for a meeting.",
|
|
8
|
-
version: "0.
|
|
6
|
+
description: "Registers a participant for a meeting. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingRegistrantCreate)",
|
|
7
|
+
version: "0.3.0",
|
|
9
8
|
type: "action",
|
|
10
9
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
app,
|
|
11
|
+
meetingId: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
app,
|
|
14
|
+
"meetingId",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
occurrenceIds: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
app,
|
|
20
|
+
"occurrenceIds",
|
|
21
|
+
],
|
|
23
22
|
},
|
|
24
23
|
email: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
propDefinition: [
|
|
25
|
+
app,
|
|
26
|
+
"email",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
firstName: {
|
|
30
|
+
propDefinition: [
|
|
31
|
+
app,
|
|
32
|
+
"firstName",
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
lastName: {
|
|
36
|
+
propDefinition: [
|
|
37
|
+
app,
|
|
38
|
+
"lastName",
|
|
39
|
+
],
|
|
35
40
|
},
|
|
36
41
|
address: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
propDefinition: [
|
|
43
|
+
app,
|
|
44
|
+
"address",
|
|
45
|
+
],
|
|
40
46
|
},
|
|
41
47
|
city: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
propDefinition: [
|
|
49
|
+
app,
|
|
50
|
+
"city",
|
|
51
|
+
],
|
|
45
52
|
},
|
|
46
53
|
country: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
propDefinition: [
|
|
55
|
+
app,
|
|
56
|
+
"country",
|
|
57
|
+
],
|
|
50
58
|
},
|
|
51
59
|
zip: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
propDefinition: [
|
|
61
|
+
app,
|
|
62
|
+
"zip",
|
|
63
|
+
],
|
|
55
64
|
},
|
|
56
65
|
state: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
propDefinition: [
|
|
67
|
+
app,
|
|
68
|
+
"state",
|
|
69
|
+
],
|
|
60
70
|
},
|
|
61
71
|
phone: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
propDefinition: [
|
|
73
|
+
app,
|
|
74
|
+
"phone",
|
|
75
|
+
],
|
|
65
76
|
},
|
|
66
77
|
industry: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
78
|
+
propDefinition: [
|
|
79
|
+
app,
|
|
80
|
+
"industry",
|
|
81
|
+
],
|
|
70
82
|
},
|
|
71
83
|
org: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
propDefinition: [
|
|
85
|
+
app,
|
|
86
|
+
"org",
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
jobTitle: {
|
|
90
|
+
propDefinition: [
|
|
91
|
+
app,
|
|
92
|
+
"jobTitle",
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
purchasingTimeFrame: {
|
|
96
|
+
propDefinition: [
|
|
97
|
+
app,
|
|
98
|
+
"purchasingTimeFrame",
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
roleInPurchaseProcess: {
|
|
102
|
+
propDefinition: [
|
|
103
|
+
app,
|
|
104
|
+
"roleInPurchaseProcess",
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
noOfEmployees: {
|
|
108
|
+
propDefinition: [
|
|
109
|
+
app,
|
|
110
|
+
"noOfEmployees",
|
|
111
|
+
],
|
|
95
112
|
},
|
|
96
113
|
comments: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
114
|
+
propDefinition: [
|
|
115
|
+
app,
|
|
116
|
+
"comments",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
customQuestions: {
|
|
120
|
+
propDefinition: [
|
|
121
|
+
app,
|
|
122
|
+
"customQuestions",
|
|
123
|
+
],
|
|
100
124
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
addMeetingRegistrant({
|
|
128
|
+
meetingId, ...args
|
|
129
|
+
} = {}) {
|
|
130
|
+
return this.app.create({
|
|
131
|
+
path: `/meetings/${meetingId}/registrants`,
|
|
132
|
+
...args,
|
|
133
|
+
});
|
|
105
134
|
},
|
|
106
135
|
},
|
|
107
|
-
async run({
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
136
|
+
async run({ $: step }) {
|
|
137
|
+
const {
|
|
138
|
+
meetingId,
|
|
139
|
+
occurrenceIds,
|
|
140
|
+
email,
|
|
141
|
+
firstName,
|
|
142
|
+
lastName,
|
|
143
|
+
address,
|
|
144
|
+
city,
|
|
145
|
+
country,
|
|
146
|
+
zip,
|
|
147
|
+
state,
|
|
148
|
+
phone,
|
|
149
|
+
industry,
|
|
150
|
+
org,
|
|
151
|
+
jobTitle,
|
|
152
|
+
purchasingTimeFrame,
|
|
153
|
+
roleInPurchaseProcess,
|
|
154
|
+
noOfEmployees,
|
|
155
|
+
comments,
|
|
156
|
+
customQuestions,
|
|
157
|
+
} = this;
|
|
158
|
+
|
|
159
|
+
const response = await this.addMeetingRegistrant({
|
|
160
|
+
step,
|
|
161
|
+
meetingId,
|
|
112
162
|
params: {
|
|
113
|
-
occurrence_ids:
|
|
163
|
+
occurrence_ids: occurrenceIds,
|
|
114
164
|
},
|
|
115
165
|
data: {
|
|
116
|
-
email
|
|
117
|
-
first_name:
|
|
118
|
-
last_name:
|
|
119
|
-
address
|
|
120
|
-
city
|
|
121
|
-
country
|
|
122
|
-
zip
|
|
123
|
-
state
|
|
124
|
-
phone
|
|
125
|
-
industry
|
|
126
|
-
org
|
|
127
|
-
job_title:
|
|
128
|
-
purchasing_time_frame:
|
|
129
|
-
role_in_purchase_process:
|
|
130
|
-
no_of_employees:
|
|
131
|
-
comments
|
|
132
|
-
custom_questions: typeof
|
|
133
|
-
?
|
|
134
|
-
: JSON.parse(
|
|
135
|
-
},
|
|
136
|
-
headers: {
|
|
137
|
-
"Authorization": `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
138
|
-
"Content-Type": "application/json",
|
|
166
|
+
email,
|
|
167
|
+
first_name: firstName,
|
|
168
|
+
last_name: lastName,
|
|
169
|
+
address,
|
|
170
|
+
city,
|
|
171
|
+
country,
|
|
172
|
+
zip,
|
|
173
|
+
state,
|
|
174
|
+
phone,
|
|
175
|
+
industry,
|
|
176
|
+
org,
|
|
177
|
+
job_title: jobTitle,
|
|
178
|
+
purchasing_time_frame: purchasingTimeFrame,
|
|
179
|
+
role_in_purchase_process: roleInPurchaseProcess,
|
|
180
|
+
no_of_employees: noOfEmployees,
|
|
181
|
+
comments,
|
|
182
|
+
custom_questions: typeof(customQuestions) === "undefined"
|
|
183
|
+
? customQuestions
|
|
184
|
+
: JSON.parse(customQuestions),
|
|
139
185
|
},
|
|
140
|
-
};
|
|
141
|
-
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
step.export("$summary", `Successfully added registrant to meeting with ID \`${response.id}\``);
|
|
189
|
+
|
|
190
|
+
return response;
|
|
142
191
|
},
|
|
143
192
|
};
|
|
@@ -1,143 +1,192 @@
|
|
|
1
|
-
|
|
2
|
-
import { axios } from "@pipedream/platform";
|
|
1
|
+
import app from "../../zoom.app.mjs";
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
key: "zoom-add-webinar-registrant",
|
|
6
5
|
name: "Add Webinar Registrant",
|
|
7
|
-
description: "Registers a participant for a webinar.",
|
|
8
|
-
version: "0.
|
|
6
|
+
description: "Registers a participant for a webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate).",
|
|
7
|
+
version: "0.3.0",
|
|
9
8
|
type: "action",
|
|
10
9
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
app,
|
|
11
|
+
webinarId: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
app,
|
|
14
|
+
"webinarId",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
occurrenceIds: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
app,
|
|
20
|
+
"occurrenceIds",
|
|
21
|
+
],
|
|
23
22
|
},
|
|
24
23
|
email: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
propDefinition: [
|
|
25
|
+
app,
|
|
26
|
+
"email",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
firstName: {
|
|
30
|
+
propDefinition: [
|
|
31
|
+
app,
|
|
32
|
+
"firstName",
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
lastName: {
|
|
36
|
+
propDefinition: [
|
|
37
|
+
app,
|
|
38
|
+
"lastName",
|
|
39
|
+
],
|
|
35
40
|
},
|
|
36
41
|
address: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
propDefinition: [
|
|
43
|
+
app,
|
|
44
|
+
"address",
|
|
45
|
+
],
|
|
40
46
|
},
|
|
41
47
|
city: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
propDefinition: [
|
|
49
|
+
app,
|
|
50
|
+
"city",
|
|
51
|
+
],
|
|
45
52
|
},
|
|
46
53
|
country: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
propDefinition: [
|
|
55
|
+
app,
|
|
56
|
+
"country",
|
|
57
|
+
],
|
|
50
58
|
},
|
|
51
59
|
zip: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
propDefinition: [
|
|
61
|
+
app,
|
|
62
|
+
"zip",
|
|
63
|
+
],
|
|
55
64
|
},
|
|
56
65
|
state: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
propDefinition: [
|
|
67
|
+
app,
|
|
68
|
+
"state",
|
|
69
|
+
],
|
|
60
70
|
},
|
|
61
71
|
phone: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
propDefinition: [
|
|
73
|
+
app,
|
|
74
|
+
"phone",
|
|
75
|
+
],
|
|
65
76
|
},
|
|
66
77
|
industry: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
78
|
+
propDefinition: [
|
|
79
|
+
app,
|
|
80
|
+
"industry",
|
|
81
|
+
],
|
|
70
82
|
},
|
|
71
83
|
org: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
propDefinition: [
|
|
85
|
+
app,
|
|
86
|
+
"org",
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
jobTitle: {
|
|
90
|
+
propDefinition: [
|
|
91
|
+
app,
|
|
92
|
+
"jobTitle",
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
purchasingTimeFrame: {
|
|
96
|
+
propDefinition: [
|
|
97
|
+
app,
|
|
98
|
+
"purchasingTimeFrame",
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
roleInPurchaseProcess: {
|
|
102
|
+
propDefinition: [
|
|
103
|
+
app,
|
|
104
|
+
"roleInPurchaseProcess",
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
noOfEmployees: {
|
|
108
|
+
propDefinition: [
|
|
109
|
+
app,
|
|
110
|
+
"noOfEmployees",
|
|
111
|
+
],
|
|
95
112
|
},
|
|
96
113
|
comments: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
114
|
+
propDefinition: [
|
|
115
|
+
app,
|
|
116
|
+
"comments",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
customQuestions: {
|
|
120
|
+
propDefinition: [
|
|
121
|
+
app,
|
|
122
|
+
"customQuestions",
|
|
123
|
+
],
|
|
100
124
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
addWebinarRegistrant({
|
|
128
|
+
webinarId, ...args
|
|
129
|
+
} = {}) {
|
|
130
|
+
return this.app.create({
|
|
131
|
+
path: `/webinars/${webinarId}/registrants`,
|
|
132
|
+
...args,
|
|
133
|
+
});
|
|
105
134
|
},
|
|
106
135
|
},
|
|
107
|
-
async run({
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
136
|
+
async run({ $: step }) {
|
|
137
|
+
const {
|
|
138
|
+
webinarId,
|
|
139
|
+
occurrenceIds,
|
|
140
|
+
email,
|
|
141
|
+
firstName,
|
|
142
|
+
lastName,
|
|
143
|
+
address,
|
|
144
|
+
city,
|
|
145
|
+
country,
|
|
146
|
+
zip,
|
|
147
|
+
state,
|
|
148
|
+
phone,
|
|
149
|
+
industry,
|
|
150
|
+
org,
|
|
151
|
+
jobTitle,
|
|
152
|
+
purchasingTimeFrame,
|
|
153
|
+
roleInPurchaseProcess,
|
|
154
|
+
noOfEmployees,
|
|
155
|
+
comments,
|
|
156
|
+
customQuestions,
|
|
157
|
+
} = this;
|
|
158
|
+
|
|
159
|
+
const response = await this.addWebinarRegistrant({
|
|
160
|
+
step,
|
|
161
|
+
webinarId,
|
|
112
162
|
params: {
|
|
113
|
-
occurrence_ids:
|
|
163
|
+
occurrence_ids: occurrenceIds,
|
|
114
164
|
},
|
|
115
165
|
data: {
|
|
116
|
-
email
|
|
117
|
-
first_name:
|
|
118
|
-
last_name:
|
|
119
|
-
address
|
|
120
|
-
city
|
|
121
|
-
country
|
|
122
|
-
zip
|
|
123
|
-
state
|
|
124
|
-
phone
|
|
125
|
-
industry
|
|
126
|
-
org
|
|
127
|
-
job_title:
|
|
128
|
-
purchasing_time_frame:
|
|
129
|
-
role_in_purchase_process:
|
|
130
|
-
no_of_employees:
|
|
131
|
-
comments
|
|
132
|
-
custom_questions: typeof
|
|
133
|
-
?
|
|
134
|
-
: JSON.parse(
|
|
135
|
-
},
|
|
136
|
-
headers: {
|
|
137
|
-
"Authorization": `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
138
|
-
"Content-Type": "application/json",
|
|
166
|
+
email,
|
|
167
|
+
first_name: firstName,
|
|
168
|
+
last_name: lastName,
|
|
169
|
+
address,
|
|
170
|
+
city,
|
|
171
|
+
country,
|
|
172
|
+
zip,
|
|
173
|
+
state,
|
|
174
|
+
phone,
|
|
175
|
+
industry,
|
|
176
|
+
org,
|
|
177
|
+
job_title: jobTitle,
|
|
178
|
+
purchasing_time_frame: purchasingTimeFrame,
|
|
179
|
+
role_in_purchase_process: roleInPurchaseProcess,
|
|
180
|
+
no_of_employees: noOfEmployees,
|
|
181
|
+
comments,
|
|
182
|
+
custom_questions: typeof(customQuestions) === "undefined"
|
|
183
|
+
? customQuestions
|
|
184
|
+
: JSON.parse(customQuestions),
|
|
139
185
|
},
|
|
140
|
-
};
|
|
141
|
-
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
step.export("$summary", `Successfully added registrant to webinar with ID \`${response.id}\``);
|
|
189
|
+
|
|
190
|
+
return response;
|
|
142
191
|
},
|
|
143
192
|
};
|
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
import { axios } from "@pipedream/platform";
|
|
1
|
+
import app from "../../zoom.app.mjs";
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
key: "zoom-get-webinar-details",
|
|
6
5
|
name: "Get Webinar Details",
|
|
7
|
-
description: "Gets details of a scheduled webinar.",
|
|
8
|
-
version: "0.
|
|
6
|
+
description: "Gets details of a scheduled webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/webinar).",
|
|
7
|
+
version: "0.3.0",
|
|
9
8
|
type: "action",
|
|
10
9
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
app,
|
|
11
|
+
webinarId: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
app,
|
|
14
|
+
"webinarId",
|
|
15
|
+
],
|
|
14
16
|
},
|
|
15
|
-
|
|
16
|
-
type: "integer",
|
|
17
|
-
description: "The webinar ID.",
|
|
18
|
-
},
|
|
19
|
-
occurrence_id: {
|
|
17
|
+
occurrenceId: {
|
|
20
18
|
type: "string",
|
|
19
|
+
label: "Occurrence ID",
|
|
21
20
|
description: "Unique Identifier that identifies an occurrence of a recurring webinar. Recurring webinars can have a maximum of 50 occurrences.",
|
|
22
21
|
optional: true,
|
|
23
22
|
},
|
|
24
23
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
methods: {
|
|
25
|
+
getWebinarDetails({
|
|
26
|
+
webinarId, ...args
|
|
27
|
+
} = {}) {
|
|
28
|
+
return this.app._makeRequest({
|
|
29
|
+
path: `/webinars/${webinarId}`,
|
|
30
|
+
...args,
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
async run({ $: step }) {
|
|
35
|
+
const {
|
|
36
|
+
webinarId,
|
|
37
|
+
occurrenceId,
|
|
38
|
+
} = this;
|
|
39
|
+
|
|
40
|
+
const response = await this.getWebinarDetails({
|
|
41
|
+
step,
|
|
42
|
+
webinarId,
|
|
29
43
|
params: {
|
|
30
|
-
occurrence_id:
|
|
44
|
+
occurrence_id: occurrenceId,
|
|
31
45
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
step.export("$summary", `Successfully retrieved webinar details with ID \`${response.id}\``);
|
|
49
|
+
|
|
50
|
+
return response;
|
|
37
51
|
},
|
|
38
52
|
};
|