Permalink
Browse files

Basic campfire table. Returns topic for a room; useful in Geckoboard.

  • Loading branch information...
1 parent c393a76 commit 7378f865f3bdef9f015563f45414251eb04e3dbd @tacoe tacoe committed Jan 26, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 campfire/campfire.roomtopic.xml
View
21 campfire/campfire.roomtopic.xml
@@ -0,0 +1,21 @@
+<table xmlns='http://query.yahooapis.com/v1/schema/table.xsd'>
+ <bindings>
+ <select produces='XML'>
+ <urls>
+ <url>https://{company}.campfirenow.com/room/{roomid}.xml</url>
+ </urls>
+ <inputs>
+ <key id='company' paramType='path' required='true'/>
+ <key id='roomid' paramType='path' required='true'/>
+ <key id='token' paramType='variable' required='true'/>
+ </inputs>
+ <execute><![CDATA[
+ var out = request.header("Authorization", y.crypto.encodeBase64(token + ":x")).get().response;
+ var newout = <root/>;
+ newout.item.text.text = out.topic.text();
+ newout.item.type = 2;
+ response.object = newout;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>

0 comments on commit 7378f86

Please sign in to comment.