Why am I getting “Access Not Configured” error from YouTube Api v3

元气小坏坏 提交于 2019-12-11 19:22:09

问题


I'm running some reports using the YouTube API v3 using the .net client library. On one certain YouTube account I'm getting this error

"Google.Apis.Requests.RequestError\r\nAccess Not Configured [403]\r\nErrors [\r\n\tMessage[Access Not Configured] Location[ - ] Reason[accessNotConfigured] Domain[usageLimits]\r\n]\r\n"

On other YouTube accounts I can run reports without getting this error. Any ideas why? Thanks!

A few things I've tried - I've read threads online suggesting to check under the API \ Notification endpoints has the correct IP server address but it's empty and shows "Allowed Domains:No domains allowed". This also wouldn't explain why it works for some accounts and not others.


回答1:


Make sure you enabled Data API v3 and all other APIs you use from devconsole, then use your client and and secret in the library while initiating the client.

There are some examples in this sample.




回答2:


The only thing that worked for me was to revert to the old version of the developer console at https://code.google.com/apis/console/b/0/?noredirect and create a new project from there.



来源:https://stackoverflow.com/questions/18244218/why-am-i-getting-access-not-configured-error-from-youtube-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!