我決定從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()
- 2 回答
- 1 關注
- 665 瀏覽
添加回答
舉報
0/150
提交
取消