Eddie
2 years ago
5 changed files with 25 additions and 12 deletions
@ -1,5 +1,5 @@
|
||||
import subprocess |
||||
|
||||
def sendMessage(message): |
||||
subprocess.call(['sh','./sender.sh', message]) |
||||
subprocess.call(['sh','./sender2.sh', message]) |
||||
|
||||
|
@ -0,0 +1,7 @@
|
||||
#!/bin/bash |
||||
|
||||
API=https://cloud1.sommerschein.de/ocs/v1.php/apps/spreed/api/v1/chat/onxr79pz |
||||
LOGIN="Maily:Gtjik-qP48b-y62bC-r8yos-qJT9Y" |
||||
MESSAGE=$1 |
||||
|
||||
curl -d '{"token":"onxr79pz", "message":"'"$MESSAGE"'"}' -H "Content-Type: application/json" -H "Accept:application/json" -H "OCS-APIRequest:true" -u "$LOGIN" $API 2> /dev/null | > /dev/null |
Loading…
Reference in new issue