-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
218 lines (190 loc) · 6.24 KB
/
index.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<head>
<title>Twitch API Request Tool</title>
<meta charset="UTF-8">
<meta name="description" content="The Twitch API Tool is a website to give developers and interested users an easy way to communicate with the Twitch API. With the documentation at hand, you can debug any type of request in no time!">
<link rel="stylesheet" href="css/purgecss/bootstrap-4.3.1.css">
<link rel="stylesheet" href="css/purgecss/bootstrap-select.css">
<link rel="stylesheet" href="css/purgecss/BsMultiSelect.css">
<link rel="stylesheet" href="css/purgecss/index.css">
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap-4.3.1.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/BsMultiSelect.min.js"></script>
<script src="js/i18n/defaults-en_US.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="row">
<div id="scope_div" class="col">
<label for="scope">Scope</label>
<select name="states" id="scope" class="form-control" multiple="multiple" style="display: none;">
</select>
</div>
</div>
<br>
<div class="row">
<!--Client ID-->
<div class="col-md-6 col-sm-12">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text spanSize">Client ID</span>
</div>
<input type="text" class="form-control" id="client_id" placeholder="Client ID" aria-label="Client ID">
<div class="input-group-append">
<button id="generateToken" type="button" class="btn btn-outline-dark btn-block btnSize">Generate</button>
</div>
</div>
</div>
<!--User Access Token-->
<div class="col-md-6 col-sm-12">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">User Access Token</span>
</div>
<input type="password" class="form-control" id="token_used" placeholder="User Access Token" aria-label="User Access Token">
<div class="input-group-append">
<button type="button" id="visibility" class="btn btn-outline-dark btn-block">Show</button>
</div>
<div class="input-group-append">
<button type="button" id="token_revoke" class="btn btn-outline-dark btn-block">Revoke</button>
</div>
<div class="input-group-append">
<button type="button" id="token_validate" class="btn btn-outline-dark btn-block btnSize">Validate</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text spanSize">Username</span>
</div>
<input type="text" class="form-control" id="username" placeholder="Username" aria-label="Username">
<div class="input-group-append">
<button type="button" id="getID" class="btn btn-outline-dark btn-block btnSize">Get ID</button>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text spanSize">User ID</span>
</div>
<input type="text" class="form-control" id="userid" placeholder="User ID" aria-label="User ID">
<div class="input-group-append">
<button type="button" id="getName" class="btn btn-outline-dark btn-block">Get Name</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-2">
<select onchange="" id="api_type" class="selectpicker w-100" aria-label="API">
<option value="helix">Helix</option>
<option value="kraken">Kraken</option>
</select>
</div>
<!--API Request-->
<div class="col-2">
<select onchange="setType(this)" id="request_type" class="selectpicker w-100" aria-label="Request methods">
</select>
</div>
<div class="col-8">
<select onchange="setEntryPoint(this)" id="api_request" class="selectpicker w-100" data-live-search="true" aria-label="Entry point">
</select>
</div>
</div>
<!-- Path -->
<div id="path" class="row">
</div>
<!--Required Parameters-->
<div id="required_query" class="row">
</div>
<!--Optional Parameters-->
<div id="optional_query" class="row">
</div>
<!--Required Body-->
<div id="required_body" class="row">
</div>
<!--Optional Body-->
<div id="optional_body" class="row">
</div>
<!--Send Request-->
<br>
<div class="row">
<div class="col">
<div class="input-group mb-3">
<input oninput="requestParser(this)" id="request" type="text" class="form-control" aria-label="Request">
<div class="input-group-append">
<button id="send" class="btn btn-outline-dark btn-block btnSize" type="button">Send</button>
</div>
</div>
</div>
</div>
<div class="row">
<!--Result-->
<div class="col-md-8 col-xs-12">
<strong>Result:</strong><br><br>
<pre id="api_result"> </pre>
</div>
<div class="col-md-4 col-xs-12">
<div class="row">
<div class="col" id="path_docu">
</div>
</div>
<div class="row">
<div class="col" id="required_query_docu">
</div>
</div>
<div class="row">
<div class="col" id="optional_query_docu">
</div>
</div>
<div class="row">
<div class="col" id="required_body_docu">
</div>
</div>
<div class="row">
<div class="col" id="optional_body_docu">
</div>
</div>
<div class="row">
<div class="col" id="param_result_docu">
</div>
</div>
<div class="row">
<div class="col" id="need_scope_docu">
</div>
</div>
<div class="row">
<div class="col" id="response_docu">
</div>
</div>
<div class="row">
<div class="col" id="code_status_docu">
</div>
</div>
<div class="row">
<div class="col" id="twitch_api_docu">
</div>
</div>
</div>
</div>
<footer>
<div class="text-center">
<hr>
<p><a target="_blank" href="https://twitch.tv/serdrad0x">Serdrad0x</a> | <a href="https://github.com/serdrad0x/Twitch-API-Request-Tool" target="_blank">GitHub</a> | <a href="https://discord.gg/Q7tmkmv" target="_blank">Discord</a> | <a href="howto.html">Howto</a> | Not associated with Twitch! Unofficial API Request Tool!</p>
</div>
</footer>
</div>
<script src="js/index.min.js"></script>
</body>
</html>