python - 我如何使用带有 python 的 cron 来使用谷歌驱动器?

标签 python google-app-engine cron google-drive-api

我尝试编写一个 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')

总是响应“未授权”。

最佳答案

http://www.maketecheasier.com/access-sync-google-drive-in-ubuntu/2012/06/06你可以试试这篇文章,以防它是你正在寻找的东西。希望对你有帮助

关于python - 我如何使用带有 python 的 cron 来使用谷歌驱动器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18999406/

相关文章:

java - 我可以从网页执行 shell 脚本吗?

python - Python Shell(Google App)有问题吗?

linux - 如何在tomcat服务器中重启应用程序

linux - Python 不接受 crontab

python - 启动 Django 项目无效语法

google-app-engine - 具有相同谷歌应用程序引擎实例的不同网址有不同的主题?

ajax - 为跨域配置google app engine应用

Python:PyEnchant 和 64 位 Python

python - 外部加入数据框python

python - Spyder 5.1.5 在运行自定义函数后创建新内核