forked from MrSwitch/hello.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (52 loc) · 2.17 KB
/
Copy pathindex.html
File metadata and controls
68 lines (52 loc) · 2.17 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>hello.js testing</title>
<link rel="stylesheet" href="/adorn/adorn.css" />
<link rel="shortcut icon" href="../assets/logo-w64.png" type="image/x-icon" />
<link rel="stylesheet" href="../assets/css-social-buttons/css/zocial.css"/>
<link rel="stylesheet" href="../assets/index.css"/>
<!-- IE7 support -->
<script src="../assets/json2/json2.js"></script>
<script src="../assets/knockout/dist/knockout.js"></script>
<script src="/adorn/adorn.js" async></script>
<!-- AUTHENTICATION -->
<script src="../dist/hello.all.js"></script>
<script src="../demos/client_ids.js"></script>
</head>
<body class="adorn-fullscreen">
<header>
<h1>hello.js endpoint tests</h1>
</header>
<blockquote>
<ol>
<li>Select the scope of the services you want to test
<li>Click the sign-in buttons along the top of the table, and give consent to the application
<li>Click the <button class="run"></button> to run a test
<li>Click on the <button class="response passed"></button> or <button class="response error"></button> response buttons to view the data
</ol>
</blockquote>
<h2>hello( x ).<b>login</b>( [ options ] [, callback] )</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'login' } }"></div>
<h2>hello( x ).<b>logout</b>([ callback ])</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'logout' } }"></div>
<h2>hello( x ).<b>getAuthResponse</b>()</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'getAuthResponse' } }"></div>
<h2>hello( x ).<b>api</b>( path [, method ][, data ][, callback ] )</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'api' } }"></div>
<!-- Tests -->
<script src="../assets/index.js"></script>
<script type="text/html" id="tests-template"></script>
<script type="text/javascript">
// Initiate the library
hello.init(CLIENT_IDS_ALL,{
redirect_uri: '../redirect.html',
oauth_proxy: OAUTH_PROXY_URL
});
getText('../assets/test_network.html', function(response){
document.getElementById('tests-template').text = response;
ko.applyBindings(model);
});
</script>
</body>
</html>