在 OAuth 2.0 Playground 中,我可以提出这个请求,并且它是有效的:
https://www.googleapis.com/drive/v2/files?fields=items(id,exportLinks)
但是,我想要捕获的只是导出链接之一:“text/plain”。但是,如果我请求该特定字段:
https://www.googleapis.com/drive/v2/files?fields=items(exportLinks/text/plain)
我收到以下错误:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidParameter",
"message": "Invalid field selection plain",
"locationType": "parameter",
"location": "fields"
}
],
"code": 400,
"message": "Invalid field selection plain"
}
}
如何指定部分应包含“exportLinks”/“text/plain”