【发布时间】:2014-01-04 16:10:46
【问题描述】:
正如开发人员一样,我想获取特定文件夹中所有文件的列表。 我有以下基本树结构
root
swimmer
trainings
test1.doc
test2.doc
logs
resultsA.csv
resultsB.csv
试图列出 root/swimmer/trainings 中的文件,我尝试使用:
GET https://www.googleapis.com/drive/v2/files/trainings/children
并在https://developers.google.com/drive/v2/reference/children/list内对其进行了测试
但我收到 404 响应:
404 Not Found
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "File not found: trainings"
}
],
"code": 404,
"message": "File not found: trainings"
}
}
我也试过:GET https://www.googleapis.com/drive/v2/files?maxResults=10&projection=BASIC&q='trainings'+in+parents&key={YOUR_API_KEY}
找不到相同的结果..
我哪里错了?
【问题讨论】:
标签: google-drive-api