为什么 Youtube 是“频道"?API 不返回“contentOwnerDetails";数据? [英] Why Youtube "channels" API don't return "contentOwnerDetails" data?
本文介绍了为什么 Youtube 是“频道"?API 不返回“contentOwnerDetails";数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试调用 Youtube channels API,但响应没有 contentOwnerDetails.有什么问题?
I'm trying to make this call to Youtube channels API but the response is without contentOwnerDetails. What is the problem?
GET https://www.googleapis.com/youtube/v3/channels?part=id%2CcontentDetails%2CcontentOwnerDetails&mine=true&key={YOUR_API_KEY}
推荐答案
看起来它需要 onBehalfOfContentOwner
参数.我的要求是
It looks like it needs onBehalfOfContentOwner
parameter. My request was
GET https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentOwnerDetails&id=CHANNEL_ID&onBehalfOfContentOwner=NETWORK_ID
我能够得到
<代码>内容所有者详细信息":{内容所有者":NETWORK_ID,"timeLinked": "2015-07-23T15:21:25.000Z"}
这篇关于为什么 Youtube 是“频道"?API 不返回“contentOwnerDetails";数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文