-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook json template example? #363
Comments
So the web hook works like this. Put this in your
For example you want to write every backup result into your own database somehow. If you develop the script on your end you can use the
This is what will be sent to your URL. So you have to program some logic that reads this data and uses it in a way you want to. |
@sebastianfeldmann What are all of the variables available to use though? for example, the
i.e. should I create something that sends this in the body?:
|
You have to create something that is able to receive this json body. The phpbu web hook will call your URL with the json request body. your web hook pseudo code
|
Does anybody have one for us not-so-technically-savvy? lol
I tried using several different online XML to JSON converters with the XML example from:
https://phpbu.de/manual/current/en/logging.html#logging.webhook
but they're not working (I get errors). Plus the XML example seems(?) like it doesn't include all possible results (available result vars).
Should I just copy the 'default result body example':
and hunt down the available matching vars to place on their respective lines? Where can I find that list of all available vars?
thanks in advance! :)
The text was updated successfully, but these errors were encountered: