This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/
index.erb
53 lines (53 loc) · 1.68 KB
/
index.erb
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>Watercoolr - Gossip for web applications</title>
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div class="generic twoforty">
<img src="/images/cooler.jpg"/>
</div>
<div class="generic seventsixty">
<h1>Watercoolr</h1>
<strong class="tagline">pubsub via webhooks, or "twitter" for your applications</strong>
<br/>
<br/>
<div class="example">
<h4>Example:</h4>
<strong>Create a channel:</strong>
<pre>
→ POST /channels
← { 'id':'2d0128d' }
</pre>
<br/>
<strong>Add subscribers:</strong>
<pre>
→ POST /subscribers data={ 'channel':'2d0128d', 'url':'http://api.otherservice.com/your-message-handler' }
← { 'status': 'OK' }
</pre>
<br/>
<strong>Post messages:</strong>
<pre>
you → POST /messages data={ 'channel':'2d0128d', 'message':'hey guys!' }
us → POST http://api.otherservice.com/your-message-handler data='hey guys!'
...for every subscriber...
← { 'status': 'OK' }
</pre>
<br/>
<h4>Run it <a href="http://www.github.com/jcapote/watercoolr">locally</a> on your own server, or using http://watercoolr.nuklei.com</h4>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-297284-19");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>