Skip to content

Commit

Permalink
examples for dataJsonString and custom_sprig
Browse files Browse the repository at this point in the history
Added an examples for dataJsonString and custom_sprig
  • Loading branch information
vy-bot authored Mar 7, 2023
1 parent 744f417 commit 6cbea7d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,24 @@ custom:
custom_headers:
Content-Type: application/json
X-Api-Key: XXXXX

custom:
- id: webhookJson
custom_webhook_url: http://host/api/webhook
custom_method: GET
custom_format: '{"text":{{dataJsonString}} }'
custom_headers:
Content-Type: application/json
X-Api-Key: XXXXX

custom:
- id: webhook
custom_webhook_url: http://host/api/webhook
custom_method: GET
custom_sprig: '{"text":"{{ .url }}"}'
custom_headers:
Content-Type: application/json
X-Api-Key: XXXXX
```
# Running Notify
Expand Down

0 comments on commit 6cbea7d

Please sign in to comment.