mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
wip
This commit is contained in:
@@ -32,7 +32,7 @@ Hooks are defined as objects in the JSON or YAML hooks configuration file. Pleas
|
||||
* `query` - object with query parameters and their respective values
|
||||
* `headers` - object with headers and their respective values
|
||||
* `base64EncodedBody` - base64 encoded request body
|
||||
* Output of this command __MUST__ be valid JSON string which will be parsed by the webhook and accessible using the `context` as source when referencing values.
|
||||
* Output of this command __MUST__ be valid JSON string which will be parsed by the webhook and accessible using the `pre-hook` as source when referencing values.
|
||||
|
||||
## Examples
|
||||
Check out [Hook examples page](Hook-Examples.md) for more complex examples of hooks.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Referencing request values
|
||||
There are four types of request values:
|
||||
|
||||
1. Context values
|
||||
1. Pre-hook values
|
||||
These are the values provided by the `pre-hook-command` output.
|
||||
|
||||
```json
|
||||
{
|
||||
"source": "context",
|
||||
"source": "pre-hook",
|
||||
"name": "parameter-name"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user