Zend_Gdata_Photos listing all albums and photos
问题 I'm using the Zend_Gdata_Photos PHP client to access the Google Picasa API, trying to just do something very simple, list all the albums, and then list all the photos within each album. This is my code: $client = Zend_Gdata_ClientLogin::getHttpClient('*****', '*****', Zend_Gdata_Photos::AUTH_SERVICE_NAME); $gp = new Zend_Gdata_Photos($client); $userFeed = $gp->getUserFeed('default'); foreach ($userFeed as $albumEntry) { echo "<h2>{$albumEntry->title->text} ({$albumEntry->id->text})</h2>";