You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
603 B
Python

# -*- coding: iso-8859-1 -*-
import requests
#import json
import sys
if __name__ == '__main__':
if len(sys.argv) > 1:
message = sys.argv[1]
empfaenger = sys.argv[2]
print('message: {}'.format(message))
print('empfaenger: {}'.format(empfaenger))
webhook_url = 'https://192.168.178.37:5003/talkto/[{}]{}'.format(
empfaenger, message)
# webhook_url = 'https://127.0.0.1:5003/talkto/[{}]{}'.format(
# empfaenger, message)
r = requests.post(webhook_url, verify=False)
print('Talkto : {}'.format(r))