我試圖在新創建的相冊上插入照片。但我無法找到如何獲得最後生成的相冊ID的方法。獲取Picasa(gdata)中最後創建的相冊的ID PHP
$entry = new Zend_Gdata_Photos_AlbumEntry();
$entry->setTitle($gp->newTitle("Test album"));
$entry->setSummary($gp->newSummary("This is an album."));
$createdEntry = $gp->insertAlbumEntry($entry);
從上GDATA的例子:
$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->newAlbumQuery();
$albumQuery->setUser($username);
$albumQuery->setAlbumId($albumId);
$insertedEntry = $gp->insertPhotoEntry($photoEntry, $albumQuery->getQueryUrl());
我怎樣才能知道,而無需手動鍵入它最後插入的專輯?
非常感謝!