本文整理汇总了PHP中Zend_Gdata_YouTube::getRecentlyFeaturedVideoFeed方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_YouTube::getRecentlyFeaturedVideoFeed方法的具体用法?PHP Zend_Gdata_YouTube::getRecentlyFeaturedVideoFeed怎么用?PHP Zend_Gdata_YouTube::getRecentlyFeaturedVideoFeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata_YouTube
的用法示例。
在下文中一共展示了Zend_Gdata_YouTube::getRecentlyFeaturedVideoFeed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSendAMessageV1
public function testSendAMessageV1()
{
$developerKey = constant('TESTS_ZEND_GDATA_YOUTUBE_DEVELOPER_KEY');
$clientId = constant('TESTS_ZEND_GDATA_YOUTUBE_CLIENT_ID');
$client = Zend_Gdata_ClientLogin::getHttpClient($this->user, $this->pass, 'youtube', null, 'ZF_UnitTest', null, null, 'https://www.google.com/youtube/accounts/ClientLogin');
$youtube = new Zend_Gdata_YouTube($client, 'ZF_UnitTest', $clientId, $developerKey);
$youtube->setMajorProtocolVersion(1);
// get a video from the recently featured video feed
$videoFeed = $youtube->getRecentlyFeaturedVideoFeed();
$videoEntry = $videoFeed->entry[0];
$this->assertTrue($videoEntry instanceof Zend_Gdata_YouTube_VideoEntry);
// sending message to gdpython (python client library unit test user)
$sentMessage = $youtube->sendVideoMessage('Sending a v1 test message from Zend_Gdata_YouTubeOnlineTest.', $videoEntry, null, 'gdpython');
$this->assertTrue($sentMessage instanceof Zend_Gdata_YouTube_InboxEntry);
}