-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (46 loc) · 2.1 KB
/
Copy pathindex.html
File metadata and controls
53 lines (46 loc) · 2.1 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GreenAPI</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
</head>
<body class="container mt-4">
<div class="row">
<div class="col-md-6">
<div class="mb-1">
<label for="idInstance" class="form-label">idInstance</label>
<input type="text" id="idInstance" class="form-control" placeholder="Enter idInstance">
</div>
<div class="mb-1">
<label for="apiTokenInstance" class="form-label">ApiTokenInstance</label>
<input type="text" id="apiTokenInstance" class="form-control" placeholder="Enter ApiTokenInstance">
</div>
<button class="btn btn-primary w-100 mb-2" onclick="getSettings()">Get Settings</button>
<button class="btn btn-info w-100 mb-2" onclick="getStateInstance()">Get State</button>
<hr>
<div class="mb-1">
<input type="text" id="phoneNumber" class="form-control" placeholder="Enter Phone Number">
</div>
<div class="mb-1">
<textarea id="messageText" class="form-control mb-2" rows="3" placeholder="Enter Text"></textarea>
</div>
<button class="btn btn-success w-100" onclick="sendMessage()">Send Message</button>
<hr>
<div class="mb-1">
<input type="text" id="" class="form-control" placeholder="Enter Phone Number">
</div>
<div class="mb-1">
<input type="text" id="fileUrl" class="form-control" placeholder="Enter File URL">
</div>
<button class="btn btn-success w-100" onclick="sendFileByUrl()">Send File</button>
</div>
<div class="col-md-6">
<h6>Response:</h6>
<textarea id="response" class="form-control" rows="23" readonly></textarea>
</div>
</div>
<script src="script.js"></script>
</body>
</html>