【发布时间】:2014-11-06 14:00:20
【问题描述】:
我可以知道如何使用 GoogleAPIS 库在 Google Drive 中使用查询列出所有文件
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!
});
【问题讨论】:
-
@DaImTo 当然我已经阅读了它们,但是提供的 Javascript 示例没有使用 GoogleAPIs 节点库...
标签: node.js google-api google-drive-api