我尝试编写一个在用户的谷歌驱动器中写入文件的 cron,但我不知道如何授权我的应用程序在这个谷歌驱动器中写入。我尝试:
SCOPE = [ 'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive']
credentials = AppAssertionCredentials(scope = SCOPE)
http = httplib2.Http()
http = credentials.authorize(httplib2.Http(memcache))
service = build("storage", "v1beta1", http=http, developerKey = 'XXXXXXXXXXXX')
总是响应是“未授权”。