【问题标题】:"accessNotConfigured" error occurred using Youtube API v3使用 Youtube API v3 时出现“accessNotConfigured”错误
【发布时间】:2015-01-01 04:52:50
【问题描述】:

我一直在努力使用 Youtube API,现在我陷入了困境。

我所做的是:

  1. 在谷歌开发者控制台创建一个项目(https://console.developers.google.com)
  2. 启用“YouTube 数据 API v3”
  3. 生成iOS的api密钥。
  4. 通过网络浏览器访问https://www.googleapis.com/youtube/v3/search?key={API KEY}&part=id&q=soccer 并收到错误消息

我错过了什么吗? 我已经阅读了很多问题,但我还没有解决。

【问题讨论】:

    标签: ios youtube google-api youtube-api youtube-data-api


    【解决方案1】:

    在第 3 步“为 IOS 生成 API 密钥”中,谷歌开发者控制台网页上的评论说

    Use of this key does not require any user action or consent, does not grant access 
    to any account information, and is not used for authorization.
    

    点击“*了解更多”按钮,它会显示:

     Use an API key when your application is running on a server and accessing one of the following kinds of data:
    •Data that the data owner has identified as public, such as a public calendar or blog.
    •Data that is owned by a Google service such as Google Maps or Google Translate. (Access limitations may apply.)
    

    我认为您需要使用 OAuth 流程而不是 API 密钥。点击开发者控制台网页的 OAuth 部分中的了解更多,了解如何在 Apple iOS 中使用 OAuth。

    为 iOS 创建 oAuth 凭据:

    Create new Client ID / Installed Application / iOS
    

    【讨论】:

    • 感谢您的回复。我一直在尝试这样做,但我现在遇到了另一个问题。请稍等。
    • 任何解决方案,tmrex7?现在是 2019 年,仍然有问题。不使用 API 密钥,不使用 Oauth。耻辱...
    【解决方案2】:

    我知道这听起来有点初级,但我通过返回 Google 开发人员解决了同样的问题,创建了一个全新的项目、新的 API 密钥,然后它就可以工作了。谷歌怪癖??

    【讨论】:

    猜你喜欢
    • 2014-04-30
    • 2020-01-07
    • 2021-12-16
    • 2013-06-28
    • 2013-08-14
    • 2019-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多