列出了所有的文件,我可以知道我可以列出使用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