<?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 album data (use google.picasa.album.photos to page through photos)</description>
    <sampleQuery>SELECT * FROM {table} WHERE user='popmonkey' AND album_key_type='album' AND album_key='Cars'</sampleQuery>
  </meta>
  <bindings>
    <select itemPath='feed' produces='XML'>
      <urls>
        <url>http://{host}/data/feed/api/user/{user}/{album_key_type}/{album_key}</url>
      </urls>
      <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'/>
        <key id='start-index'    type='xs:string' paramType='query' default='1'/>
        <key id='max-results'    type='xs:string' paramType='query' default='0'/>
      </inputs>
    </select>
  </bindings>
</table>

