Skip to main content

Develop PHP applications with Picasa Web Albums

Integrate data from Picasa Web Albums into a custom PHP application


Return to article



Listing 1: An example Picasa Web Albums feed
 
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' 
xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' 
xmlns:exif='http://schemas.google.com/photos/exif/2007' 
xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#' 
xmlns:gml='http://www.opengis.net/gml' 
xmlns:georss='http://www.georss.org/georss' 
xmlns:photo='http://www.pheed.com/pheed/' 
xmlns:media='http://search.yahoo.com/mrss/' 
xmlns:batch='http://schemas.google.com/gdata/batch' 
xmlns:gphoto='http://schemas.google.com/photos/2007'>
  <id>http://picasaweb.google.com/data/feed/api/user/userid</id>
  <updated>2008-08-15T15:08:06.079Z</updated>
  <category scheme='http://schemas.google.com/g/2005#kind' 
  term='http://schemas.google.com/photos/2007#user'/>
  <title type='text'>userid</title>
  <subtitle type='text'></subtitle>
  <icon>http://lh5.ggpht.com/userid/AAAAAAAA/AAAAAAAAAAA
  /XVwim2mUoWA/s64-c/userid.jpg</icon>
  <link rel='http://schemas.google.com/g/2005#feed' 
  type='application/atom+xml' href='http://picasaweb.google.com/
  data/feed/api/user/userid'/>
  <link rel='alternate' type='text/html' 
  href='http://picasaweb.google.com/userid'/>
  <link rel='http://schemas.google.com/photos/2007#slideshow' 
  type='application/x-shockwave-flash' 
  href='http://picasaweb.google.com/s/c/bin/slideshow.s
  wf?host=picasaweb.google.com&RGB=0x000000&
  feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2F
  user%2Fuserid%3Falt%3Drss'/>
  <link rel='self' type='application/atom+xml' 
  href='http://picasaweb.google.com/data/feed/api/user/userid?
  start-index=1&max-results=100&kind=photo'/>
  <author>
    <name>Anonymous</name>
    <uri>http://picasaweb.google.com/userid</uri>
  </author>
  <generator version='1.00' 
  uri='http://picasaweb.google.com/'>Picasaweb</generator>
  <openSearch:totalResults>7</openSearch:totalResults>
  <openSearch:startIndex>1</openSearch:startIndex>
  <openSearch:itemsPerPage>100</openSearch:itemsPerPage>
  <gphoto:user>userid</gphoto:user>
  <gphoto:nickname>Anonymous</gphoto:nickname>
  <gphoto:thumbnail>http://lh5.ggpht.com/userid/
  AAAAAAAAAAAA/AAAAAAAAAAA/XVwim2mUoWA/s64-c/userid.jpg</gphoto:thumbnail>
  <gphoto:quotalimit>1073741824</gphoto:quotalimit>
  <gphoto:quotacurrent>109344</gphoto:quotacurrent>
  <gphoto:maxPhotosPerAlbum>500</gphoto:maxPhotosPerAlbum>
  <entry>
  <id>http://picasaweb.google.com/data/entry/api/user/userid/
  albumid/5233333333333333333/photoid/7777777777777777</id>
    <published>2008-08-14T10:05:41.000Z</published>
    <updated>2008-08-14T12:16:59.000Z</updated>
    <category scheme='http://schemas.google.com/g/2005#kind' 
    term='http://schemas.google.com/photos/2007#photo'/>
    <title type='text'>664825228_79158e4668_o.jpg</title>
    <summary type='text'>Notre Dame, Paris</summary>
    <content type='image/jpeg' 
    src='http://lh3.ggpht.com/userid/SKQDddrNjZI/AAAAAAAAABU/F-3ScdOtGNk/
    664825228_79158e4668_o.jpg'/>
    <link rel='http://schemas.google.com/g/2005#feed' 
    type='application/atom+xml' 
    href='http://picasaweb.google.com/data/feed/api/user/userid/albumid/
    5233333333333333333/photoid/7777777777777777'/>
    <link rel='alternate' type='text/html' 
    href='http://picasaweb.google.com/lh/photo/kkJEscAVg_ls0ae7jY7l3A'/>
    <link rel='self' type='application/atom+xml' 
    href='http://picasaweb.google.com/data/entry/api/user/userid/albumid/
    5233333333333333333/photoid/7777777777777777'/>
    <link rel='edit' type='application/atom+xml' 
    href='http://picasaweb.google.com/data/entry/api/user/userid/albumid/
    5233333333333333333/photoid/5234312471646/12187000?
    tok=tfAnfvKKYDN2oa6zLaOREcDj85o'/>
    <link rel='edit-media' type='image/jpeg' 
    href='http://picasaweb.google.com/data/media/api/user/userid/albumid/
    5233333333333333333/photoid/5234312471628320146/126219159000?
    tok=SV0l_lbX4JvfTzIIK4nYsw1rH6Q'/>
    <link rel='media-edit' type='image/jpeg' 
    href='http://picasaweb.google.com/data/media/api/user/userid/albumid/
    5233333333333333333/photoid/52343124720146/1218719159000?
    tok=SV0l_lbX4JvfTzIIK4nYsw1rH6Q'/>
    <link rel='http://schemas.google.com/photos/2007#report' 
    type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?
    uname=userid&aid=5233333333333333333&iid=523431248320146'/>
    <gphoto:id>5555555555555</gphoto:id>
    <gphoto:version>111111111111</gphoto:version>
    <gphoto:albumid>5233333333333333333</gphoto:albumid>
    <gphoto:width>400</gphoto:width>
    <gphoto:height>300</gphoto:height>
    <gphoto:size>8886</gphoto:size>
    <gphoto:client></gphoto:client>
    <gphoto:checksum></gphoto:checksum>
    <gphoto:timestamp>1218708341000</gphoto:timestamp>
    <exif:tags>
      <exif:imageUniqueID>e8d9ec0e2becaf9c68610</exif:imageUniqueID>
    </exif:tags>
    <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
    <gphoto:commentCount>0</gphoto:commentCount>
    <media:group>
      <media:title type='plain'>664825228_79158e4668_o.jpg</media:title>
      <media:description type='plain'>Notre Dame, Paris</media:description>
      <media:keywords>church, paris</media:keywords>
      <media:content url='http://lh3.ggpht.com/userid/KKKKKKKKKK/AAAAAAAAABU/
      F-3ScdOtGNk/664825228_79158e4668_o.jpg' height='300' 
      width='400' type='image/jpeg' medium='image'/>
      <media:thumbnail url='http://lh3.ggpht.com/userid/KKKKKKKKKK/
      AAAAAAAAABU/F-3ScdOtGNk/s72/664825228_79158e4668_o.jpg' height='54' 
      width='72'/><media:thumbnail 
      url='http://lh3.ggpht.com/userid/KKKKKKKKKK/AAAAAAAAABU/F-3ScdOtGNk/
      s144/664825228_79158e4668_o.jpg' height='108' width='144'/>
      <media:thumbnail 
      url='http://lh3.ggpht.com/userid/KKKKKKKKKK/AAAAAAAAABU/
      F-3ScdOtGNk/s288/664825228_79158e4668_o.jpg' height='216' width='288'/>
      <media:credit>Anonymous</media:credit>
    </media:group>
  </entry>
  <entry>
  </entry>
</feed>
 


Return to article