mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
14 lines
238 B
Bash
Executable File
14 lines
238 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
set -u
|
|
|
|
. ./.env
|
|
|
|
# https://docs.sms-gate.app/features/webhooks/
|
|
|
|
cmd_curl="curl --fail-with-body -sS"
|
|
|
|
printf '\nExisting webhooks\n'
|
|
$cmd_curl "${SMSGW_BASEURL}/webhooks" \
|
|
-u "${SMSGW_USER}:${SMSGW_PASSWORD}" | jq
|