-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
43 lines (38 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript">
function qs(search_for) {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
var pos = parms[i].indexOf('=');
if (pos > 0 && search_for == parms[i].substring(0,pos)) {
return parms[i].substring(pos+1);;
}
}
return "";
}
</script>
<title>
Spotify Authentication
</title>
<body>
<div style="max-width: 720px; margin-right: auto; margin-left: auto; font-family: Helvetica; text-align: center; word-break: break-all;">
<h3>Spotify Authentication Details:</h3>
<h4>Spotify authorization code: </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("code"));</script><br><br></font>
<h4>Spotity API access token: </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("access_token"));</script><br><br></font>
<h4>Token Type: </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("token_type"));</script><br><br></font>
<h4>Expiery (in seconds) of the key: </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("expires_in"));</script><br><br></font>
<h4>Value of state parameter supplied in request: </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("state"));</script><br><br></font>
<h4>Error (why authentication failed): </h4>
<font face="Courier"><script type="text/javascript">document.write(qs("error"));</script><br><br></font>
</div>
</body>
</body>
</html>