-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
66 lines (58 loc) · 2.44 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<title>Viafo Gateway Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<script src="./js/service.viafo.js"></script>
<script src="test.js"></script>
<script>
//
// IMPORTANT: Uncomment and Change these values to match your Viafo settings
//
//var VIAFO_SETTINGS = {
// 'ENDPOINT' : 'https://vsg-live.appspot.com/client/1/',
//
// 'CLIENT_ID' : 'YOUR_CLIENT_ID',
// 'CLIENT_SECRET' : 'YOUR_CLIENT_SECRET',
//
// // Define a custom scope
// 'SCOPES' : {
// // for Facebook we require:
// // - offline_access - so the user only needs to authenticate once (always use this)
// // - publish_stream - for share / status updates (optional)
// // - publish_checkins - for checkin functionality (optional)
// // - publish_actions - for like functionality (optional)
// // If you don't specify anything here, we use "offline_access,publish_stream"
// 'facebook' : 'offline_access,publish_stream,publish_checkins,publish_actions',
// 'att' : 'TL'
// }
//};
</script>
</head>
<body>
<div id="start" data-role="page">
<div data-role="header" data-position="fixed">
<h1>Viafo Gateway Test</h1>
</div><!-- /header -->
<div data-role="content">
<button id="call_init" data-role="button" data-mini="true" data-inline="true" data-theme="b">Initialize</button>
<button id="get_services" data-role="button" data-mini="true" data-inline="true" data-theme="b">Refresh Services</button>
<button id="clear_token" data-role="button" data-mini="true" data-inline="true" data-theme="e">Clear Access Token</button>
<br/>
Access Token:
<input type="text" id="access_token" disabled="true"></input>
<div id="services" data-role="collapsible-set">
</div>
</div><!-- /content -->
</div><!-- /page -->
<div id="response" data-role="page" data-add-back-btn="true">
<div data-role="header" data-position="fixed">
<h1>Response</h1>
</div>
<div data-role="content"></div>
</div>
</body>
</html>