Skip to content

Instantly share code, notes, and snippets.

@burin
Created April 30, 2010 16:29
Show Gist options
  • Save burin/385438 to your computer and use it in GitHub Desktop.
Save burin/385438 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Burin Asavesna</author>
<documentationURL>http://gowalla.com/api/explorer</documentationURL>
<sampleQuery>select * from {table} where lat='32.983128' and lng='-97.160746' and radius='50' and api_key='9c1ab2d4c1f949fa9e254f20e990e0bc';</sampleQuery>
</meta>
<bindings>
<select itemPath="json" produces="JSON">
<urls>
<url>http://api.gowalla.com/spots</url>
</urls>
<inputs>
<key id="lat" type="xs:string" paramType="query" required="true" />
<key id="lng" type="xs:string" paramType="query" required="true" />
<key id="api_key" type="xs:string" paramType="variable" required="true"/>
<key id="radius" type="xs:string" paramType="query" 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment