Permalink
Browse files

adding basic gowalla tables

  • Loading branch information...
1 parent 4f7b71d commit 2208b533ec5da27a8a49ec0e61af92b1f9dfdc89 @zagraves zagraves committed Mar 2, 2010
Showing with 100 additions and 0 deletions.
  1. +25 −0 gowalla/gowalla.items.xml
  2. +25 −0 gowalla/gowalla.spots.xml
  3. +25 −0 gowalla/gowalla.trips.xml
  4. +25 −0 gowalla/gowalla.users.xml
View
25 gowalla/gowalla.items.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Zach Graves (zachg@yahoo-inc.com)</author>
+ <description>Gowalla API</description>
+ <documentationURL>http://gowalla.com/api/explorer#/users/sco</documentationURL>
+ <sampleQuery>select * from {table} where id=607583 and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>http://api.gowalla.com/items/{id}</url>
+ </urls>
+ <inputs>
+ <key id="id" type="xs:integer" paramType="path" required="true"/>
+ <key id="api_key" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+response.object = request.header('X-Gowalla-API-Key', api_key).header('Accept', 'application/json').get().response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
25 gowalla/gowalla.spots.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Zach Graves (zachg@yahoo-inc.com)</author>
+ <description>Gowalla API</description>
+ <documentationURL>http://gowalla.com/api/explorer#/spots/18568</documentationURL>
+ <sampleQuery>select * from {table} where id=18568 and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>http://api.gowalla.com/spots/{id}</url>
+ </urls>
+ <inputs>
+ <key id="id" type="xs:string" paramType="path" required="true"/>
+ <key id="api_key" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+response.object = request.header('X-Gowalla-API-Key', api_key).header('Accept', 'application/json').get().response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
25 gowalla/gowalla.trips.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Zach Graves (zachg@yahoo-inc.com)</author>
+ <description>Gowalla API</description>
+ <documentationURL>http://gowalla.com/api/explorer#/trips/1</documentationURL>
+ <sampleQuery>select * from {table} where id=1 and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>http://api.gowalla.com/trips/{id}</url>
+ </urls>
+ <inputs>
+ <key id="id" type="xs:integer" paramType="path" required="true"/>
+ <key id="api_key" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+response.object = request.header('X-Gowalla-API-Key', api_key).header('Accept', 'application/json').get().response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
25 gowalla/gowalla.users.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Zach Graves (zachg@yahoo-inc.com)</author>
+ <description>Gowalla API</description>
+ <documentationURL>http://gowalla.com/api/explorer#/users/sco</documentationURL>
+ <sampleQuery>select * from {table} where id='sco' and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>http://api.gowalla.com/users/{id}</url>
+ </urls>
+ <inputs>
+ <key id="id" type="xs:string" paramType="path" required="true"/>
+ <key id="api_key" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+response.object = request.header('X-Gowalla-API-Key', api_key).header('Accept', 'application/json').get().response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>

0 comments on commit 2208b53

Please sign in to comment.