DmitrMakeev
commited on
Commit
•
94e14dc
1
Parent(s):
6540fed
Create biz_v
Browse files
biz_v
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>API Request</title>
|
7 |
+
</head>
|
8 |
+
<body>
|
9 |
+
<h1>API Request</h1>
|
10 |
+
<button id="sendRequestButton">Send Request</button>
|
11 |
+
<textarea id="responseArea" rows="10" cols="50" readonly></textarea>
|
12 |
+
|
13 |
+
<script>
|
14 |
+
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
15 |
+
const token = 'YOUR_TOKEN_HERE'; // Замените на ваш токен
|
16 |
+
const url = 'https://online.bizon365.ru/api/v1/webinars/reports/getlist?maxDate=2021-08-06T00:00:00';
|
17 |
+
|
18 |
+
fetch(url, {
|
19 |
+
method: 'GET',
|
20 |
+
headers: {
|
21 |
+
'X-Token': token
|
22 |
+
}
|
23 |
+
})
|
24 |
+
.then(response => response.text())
|
25 |
+
.then(data => {
|
26 |
+
document.getElementById('responseArea').value = data;
|
27 |
+
})
|
28 |
+
.catch(error => {
|
29 |
+
console.error('Error:', error);
|
30 |
+
document.getElementById('responseArea').value = 'Error: ' + error.message;
|
31 |
+
});
|
32 |
+
});
|
33 |
+
</script>
|
34 |
+
</body>
|
35 |
+
</html>
|