mirror of
https://github.com/dolphin-emu/ep_http_hook.git
synced 2024-10-06 23:33:20 +00:00
Etherpad lite plugin to send HTTP queries for some server-side Etherpad events.
.gitignore | ||
ep.json | ||
main.js | ||
package-lock.json | ||
package.json | ||
README.md |
ep_http_hook
Pushes pad updates to a remote location through HTTP POST requests. Batches updates to avoid overloading the remote location.
Settings
"ep_http_hook": {
"url": "https://...",
"hmac_key": "secret"
}
POST content
The updates are sent as POST requests with the following body:
- HMAC-SHA256 of the payload (in hex encoding).
- A space character.
- The payload data as JSON.
The payload is a list of events which can be of the following types (identified
by their type
field):
pad_update
: A pad was updated. The pad id is contained in theid
field, and its raw contents in thetext
field.