51 lines
2.0 KiB
Markdown
51 lines
2.0 KiB
Markdown
# Moodle WebHook's
|
|
[](https://github.com/valentineus/moodle-webhooks/releases)
|
|
[](https://travis-ci.org/valentineus/moodle-webhooks)
|
|
[](https://www.codacy.com/app/valentineus/moodle-webhooks)
|
|
[](https://gitter.im/valentineus/moodle-webhooks)
|
|
|
|
Adding Webhooks to Moodle.
|
|
The Webhooks feature allows applications to receive real-time notification of changes to certain data.
|
|
|
|
Using Webhooks, your application will be able to receive notifications of changes to selected topics and their fields.
|
|
Because of this, you do not have to rely on continuous or even periodic requests to check for updates.
|
|
Notifications about Webhooks updates are sent as POST requests to the callback URL you specified.
|
|
Notifications can indicate the very fact of a field change or include a new value.
|
|
|
|
Features:
|
|
|
|
* Use any number of services for notification;
|
|
* Customizing each external service;
|
|
* Interception of all events in the Moodle system;
|
|
* Use a secret phrase to authenticate requests;
|
|
* [JSON](https://en.wikipedia.org/wiki/JSON) - Format of outgoing data;
|
|
|
|
## Installation
|
|
|
|
Get the installation package in any of the available methods:
|
|
|
|
* [GitHub Releases](https://github.com/valentineus/moodle-webhooks/releases).
|
|
* [Compilation from the source code](#build).
|
|
|
|
## Build
|
|
|
|
Self-assembly package is as follows:
|
|
|
|
* Clone the repository:
|
|
```bash
|
|
git clone https://github.com/valentineus/moodle-webhooks.git moodle-webhooks
|
|
```
|
|
|
|
* Run the build script:
|
|
```bash
|
|
cd ./moodle-webhooks
|
|
/bin/sh build.sh
|
|
```
|
|
|
|
## License
|
|
|
|
<img height="256px" alt="GNU Banner" src="https://www.gnu.org/graphics/runfreegnu.png" />
|
|
|
|
[GNU GPLv3](LICENSE.txt).
|
|
Copyright (c)
|
|
[Valentin Popov](mailto:info@valentineus.link). |