【发布时间】:2014-01-28 06:51:48
【问题描述】:
目前我有一个脚本,可以为我提供一系列视频。
下面的代码只是返回视频的 sn-ps,但我还想要频道 sn-ps。
有没有简单的方法来获取频道图片?
我只是在寻找类似 facebook 的类似方法
[items] => Array
(
[0] => Array
(
[kind] => youtube#searchResult
[etag] => "qQvmwbutd8GSt4eS4lhnzoWBZs0/YQk19vPZKxfDJRuiHi4tP3MnMtk"
[id] => Array
(
[kind] => youtube#video
[videoId] => xd0gcrVoocY
)
[snippet] => Array
(
[publishedAt] => 2012-12-02T16:06:30.000Z
[channelId] => UC9qTKspeA1zG7o5lrl0gwKA
[title] => Youtube API: HTML Player mit Youtube Musik (Javascript anfänger) [Tutorial] [Teil 1] [1080p] [HD]
[description] => Lese die Beschreibung -------------------------------------- Musik - Movement Proposition © 2010 Kevin MacLeod Mozilla...
[thumbnails] => Array
(
[default] => Array
(
[url] => https://i.ytimg.com/vi/xd0gcrVoocY/default.jpg
)
[medium] => Array
(
[url] => https://i.ytimg.com/vi/xd0gcrVoocY/mqdefault.jpg
)
[high] => Array
(
[url] => https://i.ytimg.com/vi/xd0gcrVoocY/hqdefault.jpg
)
)
[channelTitle] => TitanNano21
[liveBroadcastContent] => none
)
)
【问题讨论】:
标签: php json youtube youtube-api