Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7378f865f3bdef9f015563f45414251eb04e3dbd 1 parent c393a76
@tacoe tacoe authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.