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.
 
 

19 lines
426 B

import requests, os
from dotenv import load_dotenv
load_dotenv()
pw = os.getenv('BOT')
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'OCS-APIRequest': 'true',
}
data = '{"token": "xzntzmuh", "message": "test"}'
response = requests.post('https://cloud1.sommerschein.de/ocs/v2.php/apps/spreed/api/v1/chat/xzntzmuh', headers=headers, data=data, auth=('Maily', 'pw'))
print(response.content)