![](/img/trans.png)
[英]How do I get the direct link for a Google Drive video (Google Drive API v3)
[英]Get size of files with Google Drive API v3
我正在從驅動器API中提取一些數據:
response = service.files().list(q=q_parameter, spaces='drive', fields='nextPageToken, files(id, name,mimeType, webViewLink, owners, capabilities, createdTime, modifiedTime, size)', pageToken=page_token).execute()
我將響應保存在JSON文件中,但是沒有保存大小...
在此處驅動API文檔。
有任何想法嗎? 謝謝。
使用字段*,它將下載所有元數據。 如果您正確設置了限制字段,則數據將返回null
response = service.files().list(q=q_parameter, spaces='drive', fields='*', pageToken=page_token).execute()
我發現了問題! 一切正常。 本機驅動器文件不占用空間。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.