-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
34 lines (30 loc) · 1.22 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
document.addEventListener('DOMContentLoaded', () => {
fetch("https://api.coworking-metz.fr/api-json-wp/cowo/v1/nouvelle-visite?0.07401720597449024", {
"headers": {
"Authorization": "9U9NxjhCJydjxLpgpx4axrWpAcTeq5UiJJzPzKHgYfvr7pPDCXvuWqULoaFzZ5gY",
"Content-Type": "application/json",
},
"method": "GET",
}).then(response => response.json()).then(response => {
fetch("https://api.coworking-metz.fr/api-json-wp/cowo/v1/nouvelle-visite?0.07401720597449024", {
"headers": {
"Authorization": "9U9NxjhCJydjxLpgpx4axrWpAcTeq5UiJJzPzKHgYfvr7pPDCXvuWqULoaFzZ5gY",
"Content-Type": "application/json",
},
"method": "POST",
}).then(response => response.json()).then(response => console.log(response))
console.log(response)
})
})
</script>
</body>
</html>