Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +3 -3
online.html
CHANGED
|
@@ -41,9 +41,9 @@
|
|
| 41 |
<h1>WhatsApp QR Code</h1>
|
| 42 |
<form id="authForm">
|
| 43 |
<label for="idInstance">Id Instance:</label><br>
|
| 44 |
-
<input required type="text" id="idInstance" name="idInstance"><br>
|
| 45 |
<label for="apiTokenInstance">API Token:</label><br>
|
| 46 |
-
<input required type="text" id="apiTokenInstance" name="apiTokenInstance"><br><br>
|
| 47 |
<button type="submit" class="button buttonGreen">Get QR Code</button>
|
| 48 |
</form>
|
| 49 |
|
|
@@ -56,7 +56,7 @@
|
|
| 56 |
|
| 57 |
const idInstance = document.getElementById("idInstance").value;
|
| 58 |
const apiTokenInstance = document.getElementById("apiTokenInstance").value;
|
| 59 |
-
const apiUrl = "https://
|
| 60 |
|
| 61 |
function updateQRCode() {
|
| 62 |
fetch(`${apiUrl}/waInstance${idInstance}/qr/${apiTokenInstance}`)
|
|
|
|
| 41 |
<h1>WhatsApp QR Code</h1>
|
| 42 |
<form id="authForm">
|
| 43 |
<label for="idInstance">Id Instance:</label><br>
|
| 44 |
+
<input required type="text" id="idInstance" name="idInstance" value="1101761238"><br>
|
| 45 |
<label for="apiTokenInstance">API Token:</label><br>
|
| 46 |
+
<input required type="text" id="apiTokenInstance" name="apiTokenInstance" value="88b54820abd5445894bf547dca2fb2f32ee6e70a29004c18ab"><br><br>
|
| 47 |
<button type="submit" class="button buttonGreen">Get QR Code</button>
|
| 48 |
</form>
|
| 49 |
|
|
|
|
| 56 |
|
| 57 |
const idInstance = document.getElementById("idInstance").value;
|
| 58 |
const apiTokenInstance = document.getElementById("apiTokenInstance").value;
|
| 59 |
+
const apiUrl = "https://api.green-api.com"; // Замените на фактический URL API
|
| 60 |
|
| 61 |
function updateQRCode() {
|
| 62 |
fetch(`${apiUrl}/waInstance${idInstance}/qr/${apiTokenInstance}`)
|