我正在尝试使用YouTube的v3 API创建一个广播。我的请求看起来像这样:
curl -H "Authorization: Bearer ******************" -H "Content-type: application/json" -d " {\"snippet\":{\"title\":\"Hello\", \"scheduledStartTime\":\"2014-01-30T00:00:00.000Z\", \"scheduledEndTime\":\"2014-01-31T00:00:00.000Z\"},\"status\":{\"privacyStatus\":\"public\"}}" https://www.googleapis.com/youtube/v3/liveBroadcasts?part=snippet,status但我从谷歌得到的回应是:
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "liveBroadcastForbidden",
"message": "Request is not authorized"
}
],
"code": 403,
"message": "Request is not authorized"
}
}我可以确认我传递的访问令牌是正确的。我是不是做错了什么?
发布于 2013-03-11 21:53:12
直播接口目前仅对合作伙伴开放。它将在以后得到更广泛的应用。如果您已获得授予的访问权限,则应从API Console启用YouTube API。看起来您还没有启用它们。
https://stackoverflow.com/questions/15336604
复制相似问题