Do you want to 1) update just the photo 2) update just the photo's metadata or 3) update both?
1 requires PUTing the new image to the edit-media link from the photo entry. This can be done with the "UpdatePhotoBlob" method in the Python client library. 2 requires updating the photo entry as described in the Python guide: http://code.google.com/apis/picasaweb/developers_guide_python.html#UpdatePhotos 3 requires doing the same as #1 but using the MIME request of uploading a photo. (Not sure if there is an easy way of doing this in the client lib right now. Maybe you could hack it using InsertPhoto.) Cheers, -Jeff On Thu, Dec 18, 2008 at 10:33 AM, Bussiere <[email protected]> wrote: > > i would like to know if it's possible to replace a particular photo in > a particular album with the python api > and if yes how ? > i've tried this : > album_url = '/data/feed/api/user/bussiere/albumid/5281188619489384513/ > photoid/5281193525236305250/' > photo = gd_client.InsertPhotoSimple(album_url, 'bannierehumeur.jpg', > 'Mood_Parano', 'bannierehumeur.jpg', content_type='image/jpeg') > but without success > > > Regards > Bussiere > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
