Kleies Utility programm für unsere Email verwaltung
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash |
|
|
|
API=$1 |
|
USERNAME=$2 |
|
PASSWORD=$3 |
|
TOKEN=$4 |
|
MESSAGE=$5 |
|
|
|
curl -d '{"token":"'"$TOKEN"'", "message":"'"$MESSAGE"'"}' -H "Content-Type: application/json" -H "Accept:application/json" -H "OCS-APIRequest:true" -u "$USERNAME:$PASSWORD" $API$TOKEN 2> /dev/null | > /dev/null |