This repository was archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (75 loc) · 2.52 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
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Browser-only Twitter API Tester</title>
<link rel="stylesheet" href="style.css">
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha1.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/enc-base64-min.js"></script>
<script defer src="lib.js"></script>
<script defer src="main.js"></script>
<h1>Browser-only Twitter API Tester</h1>
<h2>Settings</h2>
<table border="1">
<tr>
<th rowspan="4">Credentials</th>
<td>Consumer Key</td>
<td><input type="text" id="consumer_key" size="76" value=""></td>
</tr>
<tr>
<td>Consumer Secret</td>
<td><input type="text" id="consumer_secret" size="76" value=""></td>
</tr>
<tr>
<td>Access Token</td>
<td><input type="text" id="access_token" size="76" value=""></td>
</tr>
<tr>
<td>Access Token Secret</td>
<td><input type="text" id="access_token_secret" size="76" value=""></td>
</tr>
<tr>
<th colspan="2">Method</th>
<td>
<select id="method">
<option value="get">GET</option>
<option value="post">POST</option>
</select>
<small>Attention: <code>POST</code> will trigger downloads.</small>
</td>
</tr>
<tr>
<th colspan="2">URL</th>
<td>https://api.twitter.com/1.1/<input type="text" id="endpoint" size="34">.json</td>
</tr>
<tr>
<th rowspan="6">Parameters</th>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td><input type="text" name="name" size="26"></td>
<td><input type="text" name="value" size="76"></td>
</tr>
<tr>
<td colspan="3">
<button id="submit">Submit</button>
</td>
</tr>
</table>
<h2>Response</h2>
<textarea id="result" rows="120" cols="123"></textarea>