<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
  <meta>
    <author>Jules Cisek</author>
    <documentationURL>http://code.google.com/apis/picasaweb/overview.html</documentationURL>
    <description>Uses the picasa API to fetch photos from an album (as an array of entries)</description>
    <sampleQuery>SELECT * FROM {table}(2,5) WHERE user='popmonkey' AND album_key_type='album' AND album_key='Cars'</sampleQuery>
  </meta>
  <bindings>
    <select itemPath='feed.entry' produces='XML'>
      <urls>
        <url>http://{host}/data/feed/api/user/{user}/{album_key_type}/{album_key}</url>
      </urls>
      <paging model='offset'>
        <start    default='1' id='start-index'/>
        <pagesize max='100'   id='max-results'/>
        <total    default='500'/>
      </paging>
      <inputs>
        <key id='user'           type='xs:string' paramType='path' required='true'/>
        <key id='album_key_type' type='xs:string' paramType='path' required='true'/> <!-- either 'album' or 'albumid' -->
        <key id='album_key'      type='xs:string' paramType='path' required='true'/>
        <key id='host'           type='xs:string' paramType='path' default='picasaweb.google.com'/>
        <key id='kind'           type='xs:string' paramType='query' default='photo'/>
        <key id='alt'            type='xs:string' paramType='query' default='atom'/>
        <key id='access'         type='xs:string' paramType='query' default='visible'/>
        <key id='bbox'           type='xs:string' paramType='query'/>
        <key id='imgmax'         type='xs:string' paramType='query'/>
        <key id='l'              type='xs:string' paramType='query'/>
        <key id='q'              type='xs:string' paramType='query'/>
        <key id='tag'            type='xs:string' paramType='query'/>
        <key id='thumbsize'      type='xs:string' paramType='query'/>
        <key id='authkey'        type='xs:string' paramType='query'/>
      </inputs>
    </select>
  </bindings>
</table>

