Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wizards
mffzoom
Commits
8961b83f
Commit
8961b83f
authored
Mar 24, 2020
by
Martin Mareš
Browse files
Hook: Logging of all events as raw JSON
parent
7da8b663
Changes
2
Hide whitespace changes
Inline
Side-by-side
db.ddl
View file @
8961b83f
...
...
@@ -22,3 +22,10 @@ CREATE TABLE zoom_schedule (
duration int NOT NULL, -- minutes
UNIQUE(mid, occurrence_id)
);
CREATE TABLE zoom_events (
id serial PRIMARY KEY,
time timestamp NOT NULL DEFAULT NOW(),
event varchar(255) NOT NULL,
js jsonb NOT NULL
);
hook/hook.wsgi
View file @
8961b83f
...
...
@@ -255,6 +255,8 @@ class HookApp:
self
.
log
(
js
)
event
=
js
[
"event"
]
db_query
(
"INSERT INTO zoom_events(event,js) VALUES(%s,%s)"
,
(
event
,
json
.
dumps
(
js
[
"payload"
])))
if
event
==
"meeting.created"
:
self
.
create_meeting
(
js
)
elif
event
==
"meeting.deleted"
:
...
...
Write
Preview
Supports
Markdown
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