【问题标题】:Get list of channels subscribed by user using userid, without authorization获取用户使用userid订阅的频道列表,未经授权
【发布时间】:2015-06-11 21:00:26
【问题描述】:
【问题讨论】:
标签:
youtube
youtube-api
youtube-javascript-api
youtube-channels
【解决方案1】:
在 V3 Api 中,您可以使用该用户的频道 ID 获取订阅列表。
GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&channelId=*channelid*&maxResults=20&key={YOUR_API_KEY}
【解决方案2】:
在 V3 API 中,如果您有访问令牌和频道 ID。发出 GET 请求,例如
https://www.googleapis.com/youtube/v3/subscriptions?part=sn-p&channelId=**channel_id**&access_token=**access_token**&maxResults=**max_results_between_0_to_50_default_5**
我不是专家或任何东西,但我现在正在正确地得到我正在研究的结果。
编辑:
@prasad 的回答是正确的,但该请求不适用于 api_key。只是用 access_token 替换了他的 api_key。