DmitrMakeev
commited on
Commit
•
e5bc8b8
1
Parent(s):
9d7a8d7
Update app.py
Browse files
app.py
CHANGED
@@ -897,6 +897,11 @@ def send_get_request():
|
|
897 |
except requests.exceptions.RequestException as e:
|
898 |
return jsonify({'error': f'API request failed: {str(e)}'}), 500
|
899 |
|
|
|
|
|
|
|
|
|
|
|
900 |
@app.route('/webhookbz', methods=['POST'])
|
901 |
def webhookbz():
|
902 |
api_sys_control = request.args.get('api_sys')
|
@@ -910,7 +915,7 @@ def webhookbz():
|
|
910 |
return jsonify({'error': 'webinarId is required'}), 400
|
911 |
url = f'https://online.bizon365.ru/api/v1/webinars/reports/get?webinarId={webinar_id}'
|
912 |
|
913 |
-
response = requests.get(url, headers={'X-Token':
|
914 |
|
915 |
|
916 |
if response.status_code == 200:
|
|
|
897 |
except requests.exceptions.RequestException as e:
|
898 |
return jsonify({'error': f'API request failed: {str(e)}'}), 500
|
899 |
|
900 |
+
|
901 |
+
|
902 |
+
api_bz = "SkrIONpr3ByeSIuEaBhr1bB8u4aBhSJfH8uEpB2rk7rI_ETrn"
|
903 |
+
|
904 |
+
|
905 |
@app.route('/webhookbz', methods=['POST'])
|
906 |
def webhookbz():
|
907 |
api_sys_control = request.args.get('api_sys')
|
|
|
915 |
return jsonify({'error': 'webinarId is required'}), 400
|
916 |
url = f'https://online.bizon365.ru/api/v1/webinars/reports/get?webinarId={webinar_id}'
|
917 |
|
918 |
+
response = requests.get(url, headers={'X-Token': api_bz})
|
919 |
|
920 |
|
921 |
if response.status_code == 200:
|