ios - 谷歌 API : YouTube video uplaod error = 403

标签 ios youtube youtube-api youtube-data-api

我在将视频上传到 youtube 时遇到以下错误,

YouTube-API-Demo[654:60b] Video Upload failed : Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.)" UserInfo=0x16e922e0 {error=Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration., GTLStructuredError=GTLErrorObject 0x16daee10: {message:"Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration." code:403 data:[1]}, NSLocalizedFailureReason=(Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.)}

请帮我解决这个问题。

最佳答案

您是否为您正在使用的应用程序启用了 Youtube 数据 API? https://console.developers.google.com/project

您会在那里看到一个项目列表,您必须激活每个项目的 API。

enter image description here

否则可能会有IP限制。您可以将您的 App Token 限制为仅允许特定 IPS 的访问。默认为“允许所有 IP”。某处有一个“访问”选项卡。

关于ios - 谷歌 API : YouTube video uplaod error = 403,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28041299/

相关文章:

ios - 基于解析的应用程序不区分匿名用户和普通用户

ios - 根据使用的文本字段更改一个选择器 View 的数量

ios - 如何比较 "file://localhost/var/mobile/..."与 "file:///var/mobile/..."的 URL

没有 api key 的 Youtube 视频标题和持续时间

youtube api v3 - 从播放列表中获取视频,其中的观看次数数据按观看次数排序

asp.net - 如何显示带有广告和跳过按钮功能的youtube视频?

iphone - 如何从ios应用程序和Windows应用程序(通过USB)访问iphone硬盘?

html - jQuery-管状插件问题

java - 如何使用Java中的YouTube API v3获得用户的(视频) Activity

javascript - 如何使用搜索功能更新 Youtube 视频?