Go to file
Simon Vieille 062f1d6403 readme 2016-01-30 21:56:20 +01:00
.gitignore init 2016-01-30 21:21:40 +01:00
README.md readme 2016-01-30 21:56:20 +01:00
accounts.php-dist security 2016-01-30 21:55:13 +01:00
event.php HTTP Code issue, response message 2016-01-30 21:42:21 +01:00

README.md

Webhook API

Gogs webhook api system writed for gitnet project.

Installation

Requirements

  • PHP >= 5.4

With GIT

$ git clone https://gitnet.fr/deblan/webhook-api.git

Without GIT

$ wget https://gitnet.fr/deblan/webhook-api/archive/master.tar.gz
$ tar xvf master.tar.gz

Access keys

$ cp accounts.php-dist accounts.php
$ ... Add API keys in accounts.php ...

Webhook configuration

Payloading url

Configure a http webserver with PHP to access event.php script. https://webhook.deblan.org/event.php for gitnet.

Content Type

Set application/x-www-form-urlencoded.

Secret

Choose an access key from accounts.php. If you use gitnet, the administrator sent you the secret key by email.