zend-gdata

Get complete playlist listing for a YouTube User via API

不羁岁月 提交于 2019-12-04 01:28:54
问题 So, here's my code for getting a youtube user's public playlists: function getyoutubeplaylists($userName) { $yt = connectyoutube(); $yt->setMajorProtocolVersion(2); $playlistListFeed = $yt->getPlaylistListFeed($userName); foreach ($playlistListFeed as $playlistListEntry) { $playlist['title'] = $playlistListEntry->title->text; $playlist['id'] = $playlistListEntry->getPlaylistID(); $playlists[] = $playlist; $playlistVideoFeed = $yt->getPlaylistVideoFeed($playlistListEntry-

Youtube API - How to limit results for pagination?

≡放荡痞女 提交于 2019-12-03 15:01:04
I want to grab a user's uploads (ie: BBC) and limit the output to 10 per page. Whilst I can use the following URL: http://gdata.youtube.com/feeds/api/users/bbc/uploads/?start-index=1&max-results=10 The above works okay. I want to use the query method instead: The Zend Framework docs: http://framework.zend.com/manual/en/zend.gdata.youtube.html State that I can retrieve videos uploaded by a user, but ideally I want to use the query method to limit the results for a pagination. The query method is on the Zend framework docs (same page as before under the title 'Searching for videos by metadata')

Retrieving progress of Direct Upload using youtube gdata API

爷,独闯天下 提交于 2019-12-01 21:59:16
问题 I'm following along with the documentation about using the gData Youtube API for doing direct uploads with PHP. I can successfully upload videos, so thats all well and good. The part I'm having trouble figuring out, if its even possible is getting some upload progress status as in percent complete or number of bytes uploaded. Here is the snippet of code where the upload happens. <?php try { $newEntry = $yt->insertEntry($myVideoEntry, $uploadUrl, 'Zend_Gdata_YouTube_VideoEntry'); } catch (Zend

Retrieving progress of Direct Upload using youtube gdata API

◇◆丶佛笑我妖孽 提交于 2019-12-01 20:29:33
I'm following along with the documentation about using the gData Youtube API for doing direct uploads with PHP. I can successfully upload videos, so thats all well and good. The part I'm having trouble figuring out, if its even possible is getting some upload progress status as in percent complete or number of bytes uploaded. Here is the snippet of code where the upload happens. <?php try { $newEntry = $yt->insertEntry($myVideoEntry, $uploadUrl, 'Zend_Gdata_YouTube_VideoEntry'); } catch (Zend_Gdata_App_HttpException $httpException) { echo $httpException->getRawResponseBody(); } catch (Zend

Get complete playlist listing for a YouTube User via API

醉酒当歌 提交于 2019-12-01 05:51:11
So, here's my code for getting a youtube user's public playlists: function getyoutubeplaylists($userName) { $yt = connectyoutube(); $yt->setMajorProtocolVersion(2); $playlistListFeed = $yt->getPlaylistListFeed($userName); foreach ($playlistListFeed as $playlistListEntry) { $playlist['title'] = $playlistListEntry->title->text; $playlist['id'] = $playlistListEntry->getPlaylistID(); $playlists[] = $playlist; $playlistVideoFeed = $yt->getPlaylistVideoFeed($playlistListEntry->getPlaylistVideoFeedUrl()); foreach ($playlistVideoFeed as $videoEntry) { $playlist_assignment['youtube_id'] = substr(

zend gdata and google spreadsheet not connecting

青春壹個敷衍的年華 提交于 2019-11-28 08:42:32
ive been using Zend Gdata for a while now, and today im getting an error of Notice: Undefined offset: ClientLogin.php on line 150 via php, this has been working for a while now, and today without changing anything it stopped working, im guessing some deprecated service on behalf of google with the zend gdata maybe the Zend_Gdata_ClientLogin::getHttpClient( ) method or something, can any one confirm or help me with this issue. the code im using to connect is as follows: require_once('Zend/Loader.php'); Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend