title: Get id of last created album in Picasa (gdata) PHP
body: <p>Im trying to insert a photo on a newly created album. But i couldnt find a way on how to get the last generated Album ID.</p>
  
  <pre><code>$entry = new Zend_Gdata_Photos_AlbumEntry();
  $entry-&gt;setTitle($gp-&gt;newTitle("Test album"));
  $entry-&gt;setSummary($gp-&gt;newSummary("This is an album."));
  
  $createdEntry = $gp-&gt;insertAlbumEntry($entry);
  </code></pre>
  
  <p>From the example on gdata:</p>
  
  <pre><code>$username = "default";
  $filename = "C:/xampp/htdocs/test.jpg";
  $photoName = "My Test Photo";
  $albumId = "5626728515640093041";
  :
  :
  
  // We use the AlbumQuery class to generate the URL for the album
  $albumQuery = $gp-&gt;newAlbumQuery();
  
  $albumQuery-&gt;setUser($username);
  $albumQuery-&gt;setAlbumId($albumId);
  
  $insertedEntry = $gp-&gt;insertPhotoEntry($photoEntry, $albumQuery-&gt;getQueryUrl()); 
  </code></pre>
  
  <p>How can I know the last inserted album without typing it manually?</p>
  
  <p>Thanks so much!</p>