Files
platform/check_notification.py
T
Арсентьев Александр a2ac226028 ервый импорт проекта
2026-08-06 00:01:51 +03:00

22 lines
527 B
Python

import json
import requests
API_KEY = 'B3526FC8-82CB-4798-92C8-22AF05F9A49F'
BASE_URL = 'https://support.atl-group.ru/api/v3'
import urllib3
urllib3.disable_warnings()
# Get notification content
url = f'{BASE_URL}/requests/24/notifications/323'
params = {
'TECHNICIAN_KEY': API_KEY,
'INPUT_DATA': json.dumps({'type': 'conversation'})
}
resp = requests.get(url, params=params, timeout=30, verify=False)
data = resp.json()
print('Notification response:')
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])