【发布时间】:2021-07-11 02:14:56
【问题描述】:
我正在使用 youtube API 更新直播隐私设置,如下所示:
gapi.client.youtube.liveBroadcasts.update({
"part": [
"id,status"
],
"resource": {
"id": "ID_OF_STREAM",
"status": {
"privacyStatus": "public"
}
}
})
它返回一个错误:
{
"error": {
"code": 403,
"message": "The madeForKids field is read-only",
"errors": [
{
"message": "The madeForKids field is read-only",
"domain": "youtube.liveBroadcast",
"reason": "madeForKidsModificationNotAllowed",
"extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts#status.madeForKids"
}
]
}
}
为什么 youtube 认为我正在更新 madeForKids 属性?我只想将流的隐私设置从“公共”更改为“私人”,反之亦然。
【问题讨论】:
标签: javascript google-api youtube-api youtube-livestreaming-api