-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 loc) · 1.9 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>JSON Stackoverflow</title>
</head>
<body>
<h1>JSON Stackoverflow</h1>
<p>Your <a href="http://stackoverflow.com">Stackoverflow</a> reputation as JSON.</p>
<p>To get the rendered HTML</p>
<ul>
<li><a href="/reputation.json?id=8024">/reputation.json?id=8024</a></li>
<li><a href="/reputation.json?id=8024&callback=foo">/reputation.json?id=8024&callback=foo</a></li>
<li><a href="/reputation.json?id=8024&callback=foo.bar">/reputation.json?id=8024&callback=foo.bar</a></li>
</ul>
<p>To get the raw JSON</p>
<ul>
<li><a href="/reputation.json?id=8024&raw=1">/reputation.json?id=8024&raw=1</a></li>
<li><a href="/reputation.json?id=8024&callback=foo&raw=1">/reputation.json?id=8024&callback=foo&raw=1</a></li>
<li><a href="/reputation.json?id=8024&callback=foo.bar&raw=1">/reputation.json?id=8024&callback=foo.bar&raw=1</a></li>
</ul>
<p>Using the bundled widget</p>
<ol>
<li>Create a DIV on your webpage with the following content <pre><div id="so-widget"></div></pre></li>
<li>Stick the following script tag at the bottom of your webpage, just before you close the body tag<pre><script type="text/javascript" src="http://json-stackoverflow.appspot.com/widget.js?id=<strong>your_stackoveflow_id</strong>></script></pre></li>
<li>There is no step #3!</li>
</ol>
<p>Demo:
</p>
<div id="so-widget"></div>
<br />
<hr />
<p>Brought to you by your fellow Stackoverflow user <a href="http://stackoverflow.com/users/8024/baishampayan-ghose">Baishampayan Ghose</a></p>
<script type="text/javascript" src="/widget.js?id=8024"></script>
</body>
</html>