如何让YouTube“稍后观看”Feed?

时间:2011-05-27 22:13:47

标签: youtube-api

最后,出现了api

watch later api

如何让YouTube观看以后的Feed?我在http://code.google.com/apis/youtube/2.0/developers_guide_protocol_video_feeds.html

中找不到Feed类型

还有其他方法可以获得吗?

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

正如here所述,个人资料请求中有<link>个元素:

<gd:feedLink rel='http://gdata.youtube.com/schemas/2007#user.watchlater' href='https://gdata.youtube.com/feeds/api/users/GoogleDevelopers/watch_later?v=2' countHint='15'/>

因此,如果您使用的是PHP,那么以下是获取特定<link>元素的方法:

$link = $feed->getLink('http://gdata.youtube.com/schemas/2007#user.watchlater');
if($link!==null) {
    var_dump($link);
}