Skip to content

Commit

Permalink
Added logsnag example
Browse files Browse the repository at this point in the history
  • Loading branch information
CanYumusak committed Dec 27, 2023
1 parent ea67716 commit efadfa7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
File renamed without changes.
11 changes: 11 additions & 0 deletions reader/nordigen/hooks/logsnag-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
reqURL=$2

logsnagToken="<your-logsnag-token>"
logsnagProject="<your-project>"
logsnagChannel="<your-channel>"

wget --header 'Content-Type: application/json' \
--header "Authorization: Bearer ${logsnagToken}" \
--post-data "{\"project\":\"${logsnagProject}\",\"channel\":\"${logsnagChannel}\",\"event\":\"Confirm requisition URL\",\"description\":\"${reqURL}\",\"icon\":\"❤️\",\"notify\":true}" \
'https://api.logsnag.com/v1/log'

0 comments on commit efadfa7

Please sign in to comment.