我決定從Google Drive API v2遷移到v3,這并非易事。即使以為Google編寫了此文檔,也有很多空白,并且在網(wǎng)絡(luò)上沒有太多有關(guān)此文檔的信息。我在這里分享我發(fā)現(xiàn)的東西。
2 回答

米脂
TA貢獻(xiàn)1836條經(jīng)驗 獲得超3個贊
我沒有發(fā)表評論的意思(對不起),但是接受的答案中提供的代碼行service.about().get().setFields("user, storageQuota").execute()未運行,而是引發(fā)了屬性錯誤:
about = service.about().get().setFields("user", "storageQuota").execute()
AttributeError: 'HttpRequest' object has no attribute 'setFields'
相反,該行應(yīng)顯示為:
service.about().get(fields = "user, storageQuota").execute()
添加回答
舉報
0/150
提交
取消