![](/img/trans.png)
[英]Google Drive API Python Client: How to retrieve list of created folder IDs when created in batch?
[英]Google Drive Api Client: How to get the list of files in a folder
在基於Python webapp2的Web應用程序中,我試圖以此方式檢索包含在已登錄用戶的google驅動器帳戶的文件夾中的文件列表
if page_token:
param['pageToken'] = page_token
files = service.files().list(**param).setQ("'"+self.requet.get('folder')+"' in parents").execute(http)
我已按照本教程https://developers.google.com/drive/v2/reference/files/list進行操作
問題是我收到此錯誤:
'HttpRequest' object has no attribute 'setQ'
按照以下步驟將'q'參數添加到您的param變量中,而不是使用.setQ:
param['q'] = "'root' in parents"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.