【发布时间】:2019-03-08 09:12:53
【问题描述】:
我正在尝试获取 YouTube 频道的 auditDetails。
根据官方 API 文档 (https://developers.google.com/youtube/v3/docs/channels/list),我应该提供一个包含 https://www.googleapis.com/auth/youtubepartner-channel-audit 范围的授权令牌。
Authorization
A request that retrieves the auditDetails part for a channel resource must provide an authorization token that contains the https://www.googleapis.com/auth/youtubepartner-channel-audit scope. In addition, any token that uses that scope must be revoked when the MCN decides to accept or reject the channel or within two weeks of the date that the token was issued.
我目前正在尝试通过点击以下 URL 来获取 YouTube 频道的 auditDetails:
https://www.googleapis.com/youtube/v3/channels?key=xxxxxxxxxx&id=UC9eSXrzVl9ZFLwsNSBgvTog&part=auditDetails
但是,它返回 Insufficient Permission 错误,如下所示:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Insufficient Permission"
}
],
"code": 403,
"message": "Insufficient Permission"
}
}
有人可以建议我为各种 YouTube 频道生成 youtubepartner-channel-audit 范围 的方法吗?
【问题讨论】:
标签: youtube-api youtube-data-api