The following is what I'm trying but it doesn't work.

<?php
// load classes
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Photos');
Zend_Loader::loadClass('Zend_Gdata_Photos_PhotoEntry');
Zend_Loader::loadClass('Zend_Http_Client');

// connect to service
$svc = Zend_Gdata_Photos::AUTH_SERVICE_NAME;
$user = "....@...";
$pass = "....";
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $svc);
$gphoto = new Zend_Gdata_Photos($client);

try {
  $photo = $gphoto->getPhotoEntry('http://picasaweb.google.co.in/data/
entry/base/user/abhishekpostcrossing/albumid/5370584800776226817/
photoid/5370584852524727474');
  $photo->summary->text = 'Photo caption';
  $updated = $photo->save();
  echo 'Photo successfully modified!';
} catch (Exception $e) {
  echo 'Exception thrown' ;
}
?>

shows "Exception thrown" as a result.

On Sep 10, 11:17 pm, Detlev <[email protected]> wrote:
> There is generic protocol description on how to update photos 
> here:http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_proto...
>
> and PHP specific documentation 
> here:http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_php.h...
>
> Note that in the API, the photo caption is called "summary" and the
> photo filename is called "title".
>
> On Sep 10, 10:41 am, AbhishekC <[email protected]> wrote:
>
>
>
> > Hi Guys,
>
> > I've been trying to build an Picasa Application for my personal
> > webpage and I'm running into an issue.
> > One of the things I do most frequently is to change the caption of the
> > photo. I've checked the API DOC and other places but couldn't find a
> > way to do it. All I got is how to add the caption to a new Photo or
> > retrieve the caption of an existing photo. Any help would be greatly
> > appreciated. I'm working with PHP, so a code snippet would be helpful.
>
> > regards,
> > Abhishek
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to