Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zoom Sync
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
GitLab.com
Zoom Sync
Commits
c0c0622f
Commit
c0c0622f
authored
Jul 10, 2020
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-access-token-failures' into 'master'
Fix access token not loading in sync See merge request
!13
parents
68fd81a0
9562aff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
zoom-sync.rb
zoom-sync.rb
+3
-4
No files found.
zoom-sync.rb
View file @
c0c0622f
...
...
@@ -58,12 +58,12 @@ class ZoomClient
bytes_written
end
private
def
access_token
JWT
.
encode
({
iss:
api_key
,
exp:
Time
.
now
.
to_i
+
86400
},
api_secret
,
'HS256'
,
{
typ:
'JWT'
})
end
private
def
request_headers
{
'Accept'
=>
'application/json'
,
...
...
@@ -214,7 +214,6 @@ class ZoomSyncher
end
def
sync_recording
(
item
)
unless
item
[
'topic'
].
match
(
REC_REGEX
)
puts
"Skipping '
#{
item
[
'topic'
]
}
' as it doesn't include [REC]"
return
...
...
@@ -244,7 +243,7 @@ class ZoomSyncher
ext
=
file_extension
(
file_type
)
folder
=
subfolder
(
topic
,
file_type
)
filename
=
sanitize_filename
(
"
#{
topic
}
-
#{
event_date
}
-
#{
uuid
}
-
#{
index
}
"
)
+
".
#{
ext
}
"
video_url
=
file
[
'download_url'
]
+
"?access_token=
#{
access_token
}
"
video_url
=
file
[
'download_url'
]
+
"?access_token=
#{
client
.
access_token
}
"
file_size
=
file
[
'file_size'
]
if
file_size
.
to_i
>
MAX_FILE_SIZE_BYTES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment