Skip to content

Commit 3094d1e

Browse files
authored
fix: zoom scheduling was broken due to new API (#2168)
Co-authored-by: Fran Méndez <fmvilas@gmail.com>
1 parent 8afe49d commit 3094d1e

File tree

1 file changed

+3
-4
lines changed
  • .github/workflows/create-event-helpers/zoom

1 file changed

+3
-4
lines changed

.github/workflows/create-event-helpers/zoom/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = async(date, time, host, cohost) => {
2222
method: 'POST',
2323
body: params,
2424
headers: {
25-
Authorization: `Basic ${ process.env.ZOOM_TOKEN }`
25+
Authorization: `Basic ${process.env.ZOOM_CLIENT_ID}:${ process.env.ZOOM_TOKEN }`
2626
},
2727
});
2828
token = (await tokenCreationResponse.json()).access_token;
@@ -52,9 +52,8 @@ module.exports = async(date, time, host, cohost) => {
5252
method: 'POST',
5353

5454
headers: {
55-
'User-Agent': 'Zoom-api-Jwt-Request',
56-
'content-type': 'application/json',
57-
Authorization: `bearer ${ token }`
55+
'Content-Type': 'application/json',
56+
Authorization: `Bearer ${ token }`
5857
},
5958

6059
body: zoomSettings

0 commit comments

Comments
 (0)