列出了所有的文件,我可以知道我可以列出使用GoogleAPIS庫節點:谷歌雲端硬盤API使用查詢
https://github.com/google/google-api-nodejs-client/
我不知道,如何在谷歌驅動器使用的查詢中的所有文件使用這個庫!
我不知道我應該在哪裏把我的詢問,我曾嘗試下面的代碼,但我沒有得到任何迴應..
測試1:
drive.files.list("mimeType='image/jpg'", function(data){
//I am getting all the data, the query is not working..
));
測試2:
drive.files.list({
media: {
mimeType: 'application/vnd.google-apps.folder'
}
}, function(err, data){
//I am getting all the data, the query is not working..
});
測試3:
drive.files.list({
resource: {
mimeType: 'application/vnd.google-apps.folder'
}
}, function(err, data){
//This returns error not working at all!
});
您是否嘗試過在看什麼? https://developers.google.com/drive/v2/reference/files/list – DaImTo 2014-11-06 14:03:37
@DaImTo當然,我已經閱讀過它們,但是提供的Javascript樣本沒有使用GoogleAPIs節點庫... – Tim 2014-11-06 14:06:54