Skip to content

Instantly share code, notes, and snippets.

@voidfiles
Created January 25, 2011 00:08
Show Gist options
  • Select an option

  • Save voidfiles/794258 to your computer and use it in GitHub Desktop.

Select an option

Save voidfiles/794258 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" securityLevel="any">
<meta>
<author>Picplz</author>
<documentationURL>http://picplz.com</documentationURL>
<sampleQuery>select * from {table} WHERE entity='feed' AND type='interesting'</sampleQuery>
<sampleQuery>select * from {table} WHERE entity='city' AND id=2 AND include_pics=1</sampleQuery>
<sampleQuery>select * from {table} WHERE entity='user' AND username='zubillaga' AND include_pics=1;</sampleQuery>
</meta>
<bindings>
<select itemPath="json.value" produces="JSON">
<urls>
<url env="all">http://api.picplz.com/api/v2/{entity}.json</url>
</urls>
<inputs>
<key id="entity" type="xs:string" paramType="path" />
<key id="type" type="xs:string" paramType="query" />
<key id="include_detail" type="xs:string" paramType="query" />
<key id="include_pics" type="xs:string" paramType="query" />
<key id="id" type="xs:string" paramType="query" />
<key id="ids" type="xs:string" paramType="query" />
<key id="username" type="xs:string" paramType="query" />
<key id="usernames" type="xs:string" paramType="query" />
<key id="slug" type="xs:string" paramType="query" />
<key id="slugs" type="xs:string" paramType="query" />
<key id="pic_formats" type="xs:string" paramType="query" />
<key id="last_pic_id" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment