forked from AntonNguyen/FreshBooks-API-Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinteract.html
93 lines (83 loc) · 3.38 KB
/
interact.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
83
84
85
86
87
88
89
90
91
92
93
<html>
<head>
<title>FreshBooks API Playground</title>
<link rel="stylesheet" href="css/reset.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/vs.css" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.hotkeys-0.7.9.min.js"></script>
<script type="text/javascript" src="js/Class.js"></script>
<script type="text/javascript" src="js/FreshBooks.js"></script>
<script type="text/javascript" src="js/Transport.js"></script>
<script type="text/javascript" src="js/Token.js"></script>
<script type="text/javascript" src="js/OAuth.js"></script>
<script type="text/javascript" src="js/OAuthRequestToken.js"></script>
<script type="text/javascript" src="js/OAuthAccessToken.js"></script>
<script type="text/javascript" src="js/highlight.pack.js"></script>
<script type="text/javascript" src="js/definition.json"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body>
<h1>FreshBooks API Playground</h1>
<div id="sidebar">
<div class="input_grouping">
<h2>1) Select an API Resource</h2>
<hr/>
<ul id="resources"></ul>
<div class="clearfix"></div>
</div>
<div class="input_grouping">
<h2>2) Choose a Method To Run</h2>
<hr/>
<ul id="methods"></ul>
<div class="clearfix"></div>
</div>
<div class="input_grouping">
<h2>3) Fill in your Fields</h2>
<hr/>
<div id="fields" class="fields"></div>
<div class="clearfix"></div>
</div>
</div>
<div id="content">
<div id="userDetails" class="requestInfo input_grouping">
<h2><span id="authTitle">Token User</span> <a href="#" id="switch">Switch</a></h2>
<hr/>
<p><input id="apiURL" placeholder="subdomain.freshbooks.com" type="text" name="apiURL" class="authentication"/></p>
<div id="tokenCredentials">
<input id="apiToken" placeholder="API Token" type="text" name="apiToken" class="authentication"/>
</div>
<div id="oauthCredentials">
<input id="consumerKey" placeholder="Consumer Key" type="text" name="consumerKey" class="authentication"/>
<input id="consumerSecret" placeholder="Consumer Secret" type="text" name="consumerSecret" class="authentication"/>
<input id="accessToken" placeholder="Access Token" type="text" name="accessToken" class="authentication"/>
<input id="accessTokenSecret" placeholder="Access Token Secret" type="text" name="accessTokenSecret" class="authentication"/>
<a href="#" id="connect">No access token? Connect your account.</a>
</div>
</div>
<div class="requestInfo input_grouping">
<h2>Request <a href="#" id="curl">Show Curl Request</a></h2>
<hr/>
<textarea id="curlCommand" rows="1" wrap="off"></textarea>
<div>
<pre id="request"><code class="xml"></code></pre>
</div>
<a href="#" id="sendRequest" accesskey="S">Send Request</a>
</div>
<div class="requestInfo input_grouping">
<h2>Response</h2>
<hr/>
<div id="loader">
<img src="media/ajax-loader.gif"/><br/>
<p>Shhh! I'm thinking!</p>
</div>
<pre id="response"><code class="xml"></code></pre>
</div>
</div>
<div id="overlay" class="overlay" style="display:none"></div>
<div id="box" class="box">
<a class="boxclose" id="boxclose"></a>
<img id="receipt" src="/media/leaf.png"/>
</div>
</body>
</html>