HI,
I am using the below given code:
try {
$userFeed = $gp->getUserFeed("default");
foreach ($userFeed as $userEntry) {
echo $userEntry->title->text . "<br />\n";
$mediaContent = $userEntry->getMediaGroup()->getContent();
echo $mediaContent[0]->getUrl() . "<br />\n";
$mediaThumbnailArray = $userEntry->getMediaGroup()->getThumbnail();
echo $mediaThumbnailArray[0]->getUrl();
$query = $gp->newUserQuery();
// indicate the user's feed to retrieve
$query->setUser("default");
$query->setUser("sample.".$userEntry->title->text);
// set to only return photos
// the default kind value for a user feed is to include only
albums
$query->setKind("photo");
}
} catch (Zend_Gdata_App_HttpException $e) {
echo "Error: " . $e->getMessage() . "<br />\n";
if ($e->getResponse() != null) {
echo "Body: <br />\n" . $e->getResponse()->getBody() .
"<br />\n";
}
// In new versions of Zend Framework, you also have the option
// to print out the request that was made. As the request
// includes Auth credentials, it's not advised to print out
// this data unless doing debugging
// echo "Request: <br />\n" . $e->getRequest() . "<br />\n";
} catch (Zend_Gdata_App_Exception $e) {
echo "Error: " . $e->getMessage() . "<br />\n";
}
this is the code which is not working. sample. albumname is not
working.
I am going wrong in "sample.albumname" so what is the correct format
for to get list of photos using php.
$query = $gp->newUserQuery();
// indicate the user's feed to retrieve
$query->setUser("default");
$query->setUser("sample.".$userEntry->title->text);
// set to only return photos
// the default kind value for a user feed is to include only
albums
$query->setKind("photo");
}
--
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.