DmitrMakeev
commited on
Commit
•
bcecfa4
1
Parent(s):
bbd22b3
Update app.py
Browse files
app.py
CHANGED
@@ -733,7 +733,7 @@ def send_request():
|
|
733 |
token = request.form.get('token')
|
734 |
min_date = request.form.get('minDate')
|
735 |
type = request.form.get('type')
|
736 |
-
url = f'https://online.bizon365.ru/api/v1/webinars/reports/getlist?minDate={min_date}&type={type}'
|
737 |
|
738 |
response = requests.get(url, headers={'X-Token': token})
|
739 |
|
@@ -811,8 +811,8 @@ def webhookbz():
|
|
811 |
|
812 |
if not webinar_id:
|
813 |
return jsonify({'error': 'webinarId is required'}), 400
|
|
|
814 |
|
815 |
-
url = f'https://online.bizon365.ru/api/v1/webinars/reports/get?webinarId={webinar_id}&limit=100'
|
816 |
response = requests.get(url, headers={'X-Token': api_key_sys})
|
817 |
|
818 |
if response.status_code == 200:
|
|
|
733 |
token = request.form.get('token')
|
734 |
min_date = request.form.get('minDate')
|
735 |
type = request.form.get('type')
|
736 |
+
url = f'https://online.bizon365.ru/api/v1/webinars/reports/getlist?minDate={min_date}&type={type}&limit=100'
|
737 |
|
738 |
response = requests.get(url, headers={'X-Token': token})
|
739 |
|
|
|
811 |
|
812 |
if not webinar_id:
|
813 |
return jsonify({'error': 'webinarId is required'}), 400
|
814 |
+
url = f'https://online.bizon365.ru/api/v1/webinars/reports/get?webinarId={webinar_id}'
|
815 |
|
|
|
816 |
response = requests.get(url, headers={'X-Token': api_key_sys})
|
817 |
|
818 |
if response.status_code == 200:
|