Google API:YouTube 视频上传错误 = 403 [英] Google API: YouTube video uplaod error = 403

查看:35
本文介绍了Google API:YouTube 视频上传错误 = 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm getting following error for uploading the video to youtube,

YouTube-API-Demo[654:60b] 视频上传失败:错误Domain=com.google.GTLJSONRPCErrorDomain Code=403 "操作无法完成.(未配置访问.未启用 API对于您的项目,或者有每个 IP 或每个引用者的限制在您的 API 密钥上配置并且请求与这些不匹配限制.请使用 Google Developers Console 更新您的配置.)" UserInfo=0x16e922e0 {error=Access Not Configured.没有为您的项目启用 API,或者有一个 per-IP 或在您的 API 密钥和请求上配置的 per-Referer 限制不符合这些限制.请使用谷歌开发者控制台更新您的配置.,GTLStructuredError = GTLErrorObject 0x16daee10:{消息:访问不已配置.没有为您的项目启用 API,或者有在您的 API 密钥上配置的 per-IP 或 per-Referer 限制以及请求不符合这些限制.请使用谷歌Developers Console 来更新您的配置." code:403 data:[1]},NSLocalizedFailureReason=(未配置访问权限.API 不是为您的项目启用,或者有一个 per-IP 或 per-Referer在您的 API 密钥上配置的限制与请求不匹配这些限制.请使用 Google Developers Console 进行更新您的配置.)}

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 Data API?https://console.developers.google.com/project

Have you enabled the Youtube Data API for the App that you are using? https://console.developers.google.com/project

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

You see a list of projects there and you have to active the APIs per project.

否则可能会有 IP 限制.您可以将您的 App Token 限制为仅允许特定 IPS 的访问.默认为允许所有 IP".某处有一个访问"标签.

Otherwise there might be IP restrictions. You can restrict your App Token to only allow access for specific IPS. The default is "allow all IPs". There is a "Access" Tab somewhere.

这篇关于Google API:YouTube 视频上传错误 = 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆