如何获得频道的标题和描述?

时间:2015-07-09 21:21:19

标签: youtube-api youtube-channels

我想获得频道列表说明及其标题,如

  

https://www.youtube.com/playlist?list=PLzvCFYRLS3sJcpeaY2FECjhYOKGqW2ZDW

将显示此信息:

  

频道标题: 2014年前50首英文歌曲

     

频道描述:流行慢浪漫最佳(Y)前50首歌曲   随意安排:)希望你喜欢我的第一个播放列表

这是我正在使用的链接,但它不包含频道说明和频道列表标题:

  

https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&maxResults=50&pageToken=&playlistId=PLzvCFYRLS3sJcpeaY2FECjhYOKGqW2ZDW&key=[youtube-api]

1 个答案:

答案 0 :(得分:0)

  

https://www.googleapis.com/youtube/v3/playlists?part=snippet&id=PLzvCFYRLS3sJcpeaY2FECjhYOKGqW2ZDW&key= {YOUR-API-KEY}

将为您提供特定播放列表的信息。您可以从JMSTranslationBundle抓取返回的var fnString = "(((this.amount / new_rate) - this.stock_payment).toFixed(2) / (this.amount / new_rate) * 100).toFixed(2)", obj = { amount:3.9, stock_payment:42, calc : Function("var new_rate=6.9; return "+fnString) } alert(obj.calc())title

description
相关问题