Hi ,

Below is the prat of code I am trying a demo for Picasa API in php.


.......
$query = $gp->newUserQuery();

$query->setUser("default");
$query->setTag("album.name");

$query->setKind("photo");
$query->setMaxResults("10");

$userFeed = $gp->getUserFeed(null, $query);
foreach ($userFeed as $photoEntry) {

    $mediaContent = $photoEntry->getMediaGroup()->getContent();
    echo "<img src='".$mediaContent[0]->getUrl()."'>";
    echo "<br />\n";
    echo "title: ".$photoEntry->title->text."<br />\n";
    echo "<br />\n";
    echo "id= ".$photoEntry->getGphotoId()->text;
    echo "<br />\n";
    echo "Timestamp: ".$photoEntry->getGphotoTimestamp()->text;
    echo "<br />\n";
    echo "size: ".$photoEntry->getGphotoSize()->text;
    echo "<br />\n";
    echo "Camera: ".$photoEntry->getExifTags()->getMake()->text." ".
$photoEntry->getExifTags()->getModel()->text;
    echo "<br />\n";

}


I can get the messages for "title","id","image url", but get nothing
for Timestamp,size and Camera.

Can you tell why not here ?


Thanks,
-Michael

--~--~---------~--~----~------------~-------~--~----~
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