mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-03 08:07:59 +00:00
19 lines
427 B
Bash
Executable File
19 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# 2020-02-20 02:20:22
|
|
g_ts=$(date '+%F %T')
|
|
. ./.env
|
|
|
|
curl --fail-with-body -X POST "${SMSGW_BASEURL}/messages" \
|
|
--user "${SMSGW_USERNAME}:${SMSGW_PASSWORD}" \
|
|
-H 'Content-Type: application/json' \
|
|
--data-binary '
|
|
{
|
|
"textMessage":{
|
|
"text": "Test message. It'\''s '"${g_ts}"'"
|
|
},
|
|
"phoneNumbers": ["'"${SMSGW_TEST_NUMBER}"'"],
|
|
"priority":65
|
|
}
|
|
'
|