Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我能';是否使用Python配置OAuth 2.0?_Python_Json_Youtube_Google Api_Youtube Api - Fatal编程技术网

为什么我能';是否使用Python配置OAuth 2.0?

为什么我能';是否使用Python配置OAuth 2.0?,python,json,youtube,google-api,youtube-api,Python,Json,Youtube,Google Api,Youtube Api,我试图使用以下指南/代码让上传YouTube视频软件正常工作: 我安装了所有需要的东西。此外,我创建了一个新项目,将YouTube Data API v3的状态更改为ON,获取了我的凭据,并将其输入到client_secrets.json(还尝试通过谷歌提供的按钮下载了一个,顺便说一句。我手动将下载的一个重命名为client_secrets.json,所以这不是问题),但当我尝试上载某个内容时,会出现以下错误: C:\Users\%USERNAME%>c:/Python27/python

我试图使用以下指南/代码让上传YouTube视频软件正常工作:

我安装了所有需要的东西。此外,我创建了一个新项目,将YouTube Data API v3的状态更改为ON,获取了我的凭据,并将其输入到client_secrets.json(还尝试通过谷歌提供的按钮下载了一个,顺便说一句。我手动将下载的一个重命名为client_secrets.json,所以这不是问题),但当我尝试上载某个内容时,会出现以下错误:

C:\Users\%USERNAME%>c:/Python27/python.exe C:\Users\%USERNAME%\Documents\youtube_uploader\up
load.py --file=C:\Users\%USERNAME%\Documents\youtube_uploader\test_klip\test.mp4 --tit
le=Test upload

WARNING: Please configure OAuth 2.0

To make this sample run you will need to populate the client_secrets.json file
found at:

     C:\Users\%USERNAME%\Documents\youtube_uploader\clientinfo.json

with information from the APIs Console
https://code.google.com/apis/console#access

For more information about the client_secrets.json file format, please visit:
https://developers.google.com/api-client-library/python/guide/aaa_client_secrets
我有什么遗漏或做错的吗?如果是这样的话,请帮助我让这个工作

提前感谢!:)


另外,我尝试制作和使用这两种网络/已安装类型的凭据,但都不起作用。

你有没有发现这一点?有同样的问题。