gpt4 book ai didi

youtube - YouTube LiveStream API accessNotConfigured错误

转载 作者:行者123 更新时间:2023-12-03 05:34:53 25 4
gpt4 key购买 nike

我正在构建用于将视频流传输到YouTube的Swift应用,但是我无法超越liveBroadcast -insertion步骤。该应用程序会打印出每个请求的cURL表示形式;这是插入内容:

curl "https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id%252CcontentDetails%252Csnippet%252Cstatus&key=<app-key>" \
--request POST \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'\
--data '{"kind":"youtube#liveBroadcast","snippet":{"title":"Simulator","scheduledStartTime":"2019-09-04T18:18:50Z"},"status":{"privacyStatus":"public"}}'

这给了我以下错误响应:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Project <redacted> is not found and cannot be used for API calls. If it is recently created, enable YouTube Data API by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=40586258927 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<redacted>"
}
],
"code": 403,
"message": "Project <redacted> is not found and cannot be used for API calls. If it is recently created, enable YouTube Data API by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<Foo> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}

我不确定在哪里获得名称 Project <redacted>,因为它与我登录的项目不匹配。

我检查了以下SO问题,但无济于事:
  • youtube analytics api error 403, accessNotConfigured这个已经6岁了,并且不再有YouTube Analytics(分析)API。我的项目确实启用了YouTube数据API。
  • Youtube API key - accessNotConfigured error我也尝试创建一个全新的YouTube项目,但这没有用。
  • 等。
  • 最佳答案

    我也大约在同一时间开始遇到相同的错误,相同的问题,没有任何解释。

    关于youtube - YouTube LiveStream API accessNotConfigured错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57795144/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com