将文件上传到Google云端硬盘上公开可写的文件夹 - 使用Python并且无需通过身份验证? [英] Upload file to a publicly writeable folder on Google Drive - using Python and without going thru the authentication?
问题描述
python示例源代码贯穿认证/等的细节。我正在寻找简单的上传到具有公共可写权限的Google云端硬盘文件夹。 (计划稍后实施授权)。
我想替换下面的代码,将文件上传到Google云端硬盘文件夹。
f = open('output.txt')
for allLines中的行:
f.write(line)
f.close()
(如果有任何区别,我打算运行这个Google App Engine)。
谢谢。
你不行。所有对Drive API的请求都需要身份验证(来源: http://developers.google.com/drive/about_auth )
The python sample source code goes thru the details of authentication/etc. I am looking for a simple upload to the Google Drive folder that has public writable permissions. (Plan to implement authorization at a later point).
I want to replace the below code to upload file to Google Drive folder instead.
f = open('output.txt')
for line in allLines:
f.write (line)
f.close()
(If it makes any difference, I plan to run this thru Google App Engine).
Thanks.
You can't. All requests to the Drive API need authentication (source: http://developers.google.com/drive/about_auth)
这篇关于将文件上传到Google云端硬盘上公开可写的文件夹 - 使用Python并且无需通过身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!