Browse files

add rudimentary support for basecamp to show people how

  • Loading branch information...
1 parent b8211fc commit 015e213ddb7d1a3c7900303bfd546ad89e5d86b9 Sam Pullara committed Mar 16, 2010
Showing with 35 additions and 0 deletions.
  1. +17 −0 basecamp/basecamp.account.xml
  2. +18 −0 basecamp/basecamp.me.xml
View
17 basecamp/basecamp.account.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table https="true" xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <bindings>
+ <select produces="XML">
+ <urls>
+ <url>http://{company}.basecamphq.com/account.xml</url>
+ </urls>
+ <inputs>
+ <key id="company" paramType="path" required="true"/>
+ <key id="apikey" paramType="variable" required="true"/>
+ </inputs>
+ <execute><![CDATA[
+response.object = request.header("Authorization", y.crypto.encodeBase64(apikey + ":X")).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
18 basecamp/basecamp.me.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table https="true" xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <bindings>
+ <select produces="XML">
+ <urls>
+ <url>http://{company}.basecamphq.com/me.xml</url>
+ </urls>
+ <inputs>
+ <key id="company" paramType="path" required="true"/>
+ <key id="username" paramType="variable" required="true"/>
+ <key id="password" paramType="variable" required="true"/>
+ </inputs>
+ <execute><![CDATA[
+response.object = request.header("Authorization", y.crypto.encodeBase64(username + ":" + password)).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>

0 comments on commit 015e213

Please sign in to comment.