【问题标题】:Youtube Data API v3 always give me errorYoutube Data API v3 总是给我错误
【发布时间】:2015-11-10 09:18:09
【问题描述】:

我正在尝试制作一项允许用户将视频上传到 youtube 的任务

我正在努力使这个应用程序工作:https://github.com/youtube/yt-direct-lite-android

但它总是给我以下错误

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
  "code": 403,
  "errors": [
    {
      "domain": "usageLimits",
      "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
      "reason": "accessNotConfigured",
      "extendedHelp": "https://console.developers.google.com"
    }
  ],
  "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
}

虽然我已经添加了带有 Auth2.0 的 android API 密钥,但没有它,但没有任何效果。

任何人都可以帮忙,或者至少给我一个简单的例子来上传 youtube 视频。

【问题讨论】:

    标签: android youtube-data-api


    【解决方案1】:

    在我的 google 帐户启用 youtube 服务后,该示例终于与我一起工作了

    使用以下链接:https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list

    我在以下网站上找到了上一个链接:http://www.codeproject.com/Articles/888694/Youtube-Data-API-v-on-Android-Introduction

    【讨论】:

      猜你喜欢
      • 2022-07-30
      • 1970-01-01
      • 2021-03-03
      • 2021-12-16
      • 2015-04-28
      • 1970-01-01
      • 2016-11-28
      • 2015-12-12
      • 2016-05-23
      相关资源
      最近更新 更多