Skip to content

Commit

Permalink
adding basic gowalla tables
Browse files Browse the repository at this point in the history
  • Loading branch information
zagraves committed Mar 2, 2010
1 parent 4f7b71d commit 2208b53
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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>
25 changes: 25 additions & 0 deletions 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>
25 changes: 25 additions & 0 deletions 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>
25 changes: 25 additions & 0 deletions 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.