本文整理汇总了PHP中Zend_Gdata_YouTube::getInboxFeedForCurrentUser方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_YouTube::getInboxFeedForCurrentUser方法的具体用法?PHP Zend_Gdata_YouTube::getInboxFeedForCurrentUser怎么用?PHP Zend_Gdata_YouTube::getInboxFeedForCurrentUser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata_YouTube
的用法示例。
在下文中一共展示了Zend_Gdata_YouTube::getInboxFeedForCurrentUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetInboxFeedForCurrentUserV2
public function testGetInboxFeedForCurrentUserV2()
{
$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(2);
$inboxFeed = $youtube->getInboxFeedForCurrentUser();
$this->assertTrue($inboxFeed instanceof Zend_Gdata_YouTube_InboxFeed);
$this->assertTrue(count($inboxFeed->entries) > 0, 'Test account ' . $this->ytAccount . ' had no messages in their inbox.');
// get the first entry
$inboxFeed->rewind();
$inboxEntry = $inboxFeed->current();
$this->assertTrue($inboxEntry instanceof Zend_Gdata_YouTube_InboxEntry);
$this->assertTrue($inboxEntry->getTitle()->text != '');
}