Method: apps.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://www.googleapis.com/drive/v3/apps
网址采用 gRPC 转码语法。
查询参数
参数 |
appFilterExtensions |
string
以英文逗号分隔的文件扩展名列表,用于限制返回的结果。响应中包含给定应用查询范围内的所有结果,这些结果可以打开任何给定的文件扩展名。如果还提供了 appFilterMimeTypes ,则结果是两个生成的应用列表的并集。
|
appFilterMimeTypes |
string
以英文逗号分隔的文件扩展名列表,用于限制返回的结果。给定应用查询范围内的所有结果(可以打开任何给定的 MIME 类型)都将包含在响应中。如果还提供了 appFilterExtensions ,则结果是两个生成的应用列表的并集。
|
languageCode |
string
一种语言或语言区域代码,由 BCP 47 定义,并包含 Unicode 的 LDML 格式 (http://www.unicode.org/reports/tr35/) 中的一些扩展。
|
响应正文
用户已安装或已授予 Google 云端硬盘访问权限的第三方应用的列表。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"defaultAppIds": [
string
],
"items": [
{
object (App )
}
],
"kind": string,
"selfLink": string
} |
字段 |
defaultAppIds[] |
string
用户指定要默认使用的应用 ID 列表。该列表按优先级从低到高的顺序排列。
|
items[] |
object (App )
应用列表。
|
kind |
string
仅限输出。表明这是哪类资源。值:固定字符串“drive#appList”。
|
selfLink |
string
返回此列表的链接。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/drive.apps.readonly
某些范围受到限制,您的应用需要通过安全评估才能使用这些范围。如需了解详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method: apps.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AppList.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).\n\n### HTTP request\n\n`GET https://www.googleapis.com/drive/v3/apps`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appFilterExtensions` | `string` A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given file extensions are included in the response. If `appFilterMimeTypes` are provided as well, the result is a union of the two resulting app lists. |\n| `appFilterMimeTypes` | `string` A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given MIME types will be included in the response. If `appFilterExtensions` are provided as well, the result is a union of the two resulting app lists. |\n| `languageCode` | `string` A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (\u003chttp://www.unicode.org/reports/tr35/)\u003e. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of third-party applications which the user has installed or given access to Google Drive.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"defaultAppIds\": [ string ], \"items\": [ { object (/workspace/drive/api/reference/rest/v3/apps#App) } ], \"kind\": string, \"selfLink\": string } ``` |\n\n| Fields ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `defaultAppIds[]` | `string` The list of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). |\n| `items[]` | `object (`[App](/workspace/drive/api/reference/rest/v3/apps#App)`)` The list of apps. |\n| `kind` | `string` Output only. Identifies what kind of resource this is. Value: the fixed string \"drive#appList\". |\n| `selfLink` | `string` A link back to this list. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/drive.apps.readonly`\n\nSome scopes are restricted and require a security assessment for your app to use them. For more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]