/
demo.html
38 lines (33 loc) · 1.13 KB
/
demo.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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script src="util.js"></script>
</head>
<body>
<table cellpadding="8">
<tr>
<td width="10%" valign="top">
<img src="img/logo.png" width="60">
</td>
<td width="*" valign="top">
{% if token %}
<h2> Successfully authenticated via the Uber API!</h2>
<p> Your user token is <i>{{ token }}</i>.</p>
{% else %}
<h1> Something went wrong :( </h1>
{% endif %}
</td>
</tr>
</table>
<hr width="100%">
<p>
Click button below to test API calls:
</p>
<button type="button" onclick="action('products')">PRODUCTS!</button>
<button type="button" onclick="action('time')">TIME ESTIMATES!</button>
<button type="button" onclick="action('price')">PRICE ESTIMATES!</button>
<button type="button" onclick="action('history')">HISTORY!</button>
<button type="button" onclick="action('me')">ME!</button>
</body>
</html>