为了账号安全,请及时绑定邮箱和手机立即绑定

Google Drive API v3迁移

Google Drive API v3迁移

扬帆大鱼 2019-11-18 10:40:38
我决定从Google Drive API v2迁移到v3,这并非易事。即使以为Google编写了此文档,也有很多空白,并且在网络上没有太多有关此文档的信息。我在这里分享我发现的东西。
查看完整描述

2 回答

?
米脂

TA贡献1836条经验 获得超3个赞

我没有发表评论的意思(对不起),但是接受的答案中提供的代码行service.about().get().setFields("user, storageQuota").execute()未运行,而是引发了属性错误:


    about = service.about().get().setFields("user", "storageQuota").execute()

AttributeError: 'HttpRequest' object has no attribute 'setFields'

相反,该行应显示为:


service.about().get(fields = "user, storageQuota").execute()


查看完整回答
反对 回复 2019-11-18
  • 2 回答
  • 1 关注
  • 579 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信