Used the playground to GET a photo for update , moving the respose of the GET to the request body of a PUT ( did not try to change any of the xml in the response from the GET. I wanted to see if i could follow the GET with a PUT ...
1. request the photofeed and use the edit link value to make a request preceeding update 2. GET the 'edit' link from above http response 3. copy the response value as it is to the PUT request body using the playground option for PUT 4. add http header for Content type application/atom+xml 5. submit the PUT request get RC=409 ( why am i getting the 409? ) --stdout part of playground on the http PUT action PUT /data/entry/api/user/default/albumid/5648359241742119377/photoid/ 5648359338818857554/1 HTTP/1.1 Host: picasaweb.google.com Content-Length: 3934 Content-Type: application/atom+xml Authorization: OAuth ya29.AHES6ZSzi8EPLJonC2ggdmnbrxW6N7OboWUspsVTT6BTanyfFG9Stw <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/ 2005/Atom' xmlns:exif='http://schemas.google.com/photos/exif/2007' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/mrss/'><id>https:// picasaweb.google.com/data/entry/api/user/rowntreerob/albumid/ 5648359241742119377/photoid/5648359338818857554</ id><published>2011-09-04T04:39:00.000Z</ published><updated>2011-12-15T00:39:17.916Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http:// schemas.google.com/photos/2007#photo'/><title type='text'>15.jpg</ title><summary type='text'/><content type='image/jpeg' src='https:// lh6.googleusercontent.com/--WdhQDd2XQg/TmMA5HIO6lI/AAAAAAAACl4/ HSx9fZg4r2o/15.jpg'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/ feed/api/user/rowntreerob/albumid/5648359241742119377/photoid/ 5648359338818857554?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='alternate' type='text/html' href='https://picasaweb.google.com/ 113172267863552078400/Alcan_trips_76_77?authkey=Gv1sRgCLTPnJ- OmpCPeg#5648359338818857554'/><link rel='http://schemas.google.com/ photos/2007#canonical' type='text/html' href='https:// picasaweb.google.com/lh/photo/ HBkeleItbkJ1EfKhD4p0CMkoderF_EbNPgy6reFrVz0'/><link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/ entry/api/user/rowntreerob/albumid/5648359241742119377/photoid/ 5648359338818857554?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='edit' type='application/atom+xml' href='https://picasaweb.google.com/data/ entry/api/user/rowntreerob/albumid/5648359241742119377/photoid/ 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='edit- media' type='image/jpeg' href='https://picasaweb.google.com/data/media/ api/user/rowntreerob/albumid/5648359241742119377/photoid/ 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='media- edit' type='image/jpeg' href='https://picasaweb.google.com/data/media/ api/user/rowntreerob/albumid/5648359241742119377/photoid/ 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='http:// schemas.google.com/photos/2007#report' type='text/html' href='https:// picasaweb.google.com/lh/reportAbuse? uname=rowntreerob&aid=5648359241742119377&iid=5648359338818857554'/ ><gphoto:id>5648359338818857554</gphoto:id><gphoto:version>3</ gphoto:version><gphoto:albumid>5648359241742119377</ gphoto:albumid><gphoto:access>private</ gphoto:access><gphoto:width>1338</gphoto:width><gphoto:height>903</ gphoto:height><gphoto:size>213425</gphoto:size><gphoto:client>picasa</ gphoto:client><gphoto:checksum>3d8ac08e</ gphoto:checksum><gphoto:timestamp>189345600000</ gphoto:timestamp><gphoto:imageVersion>2654</ gphoto:imageVersion><gphoto:commentingEnabled>true</ gphoto:commentingEnabled><gphoto:commentCount>0</ gphoto:commentCount><gphoto:license id='0' name='All Rights Reserved' url=''>ALL_RIGHTS_RESERVED</gphoto:license><gphoto:viewCount>4</ gphoto:viewCount><exif:tags><exif:make>Nikon</ exif:make><exif:model>LS-4000</exif:model><exif:time>189345600000</ exif:time><exif:imageUniqueID>ac000b1a548d161cf12e1bf81865b304</ exif:imageUniqueID></exif:tags><media:group><media:content url='https://lh6.googleusercontent.com/--WdhQDd2XQg/TmMA5HIO6lI/ AAAAAAAACl4/HSx9fZg4r2o/15.jpg' height='903' width='1338' type='image/ jpeg' medium='image'/><media:credit>Robert Rowntree</ media:credit><media:description type='plain'/><media:keywords/ ><media:thumbnail url='https://lh6.googleusercontent.com/--WdhQDd2XQg/ TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s72/15.jpg' height='49' width='72'/ ><media:thumbnail url='https://lh6.googleusercontent.com/--WdhQDd2XQg/ TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s144/15.jpg' height='98' width='144'/><media:thumbnail url='https://lh6.googleusercontent.com/-- WdhQDd2XQg/TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s288/15.jpg' height='195' width='288'/><media:title type='plain'>15.jpg</ media:title></media:group></entry> HTTP/1.1 409 Conflict status: 409 gdata-version: 1.0 content-length: 3933 x-xss-protection: 1; mode=block x-content-type-options: nosniff set-cookie: _rtok=87Nnl1AAqyKd; Path=/; Secure; HttpOnly, S=photos_html=h0RsTa9ibHNGh7L7hhKElg; Domain=.google.com; Path=/; Secure; HttpOnly expires: Thu, 15 Dec 2011 01:38:30 GMT x-google-cache-control: remote-fetch server: GSE via: HTTP/1.1 GWA cache-control: private, max-age=0, must-revalidate date: Thu, 15 Dec 2011 01:38:30 GMT x-frame-options: SAMEORIGIN content-type: application/atom+xml; charset=UTF-8 -content-encoding: gzip -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
