Method: about.get
获取有关当前用户的信息以及 Drive API 设置
HTTP 请求
GET https://www.googleapis.com/drive/v2/about
网址采用 gRPC 转码语法。
查询参数
参数 |
includeSubscribed |
boolean
是否统计“我的云端硬盘”层次结构之外的更改。如果此政策设为 false,maxChangeIdCount 会忽略对“Application Data”文件夹中的文件所做的更改,或对尚未添加到“我的云端硬盘”的共享文件所做的更改。
|
maxChangeIdCount |
string (int64 format)
要统计的剩余更改 ID 数量上限
|
startChangeId |
string (int64 format)
更改 ID,以开始计算剩余更改 ID 的数量
|
响应正文
如果成功,则响应正文包含一个 About
实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.photos.readonly
https://www.googleapis.com/auth/drive.readonly
某些范围受到限制,您的应用必须接受安全评估才能使用这些范围。有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-04。
[null,null,["最后更新时间 (UTC):2024-09-04。"],[[["This API retrieves information about the current user and their Google Drive settings."],["It uses a simple `GET` request to `https://www.googleapis.com/drive/v2/about` with optional query parameters for change ID counts."],["The response provides an `About` object containing user and Drive details."],["Several OAuth scopes are available for authorization, some of which require security assessments for certain app uses."]]],["This document outlines how to retrieve information about the current user and Drive API settings. Use a `GET` request to the specified URL. The request accepts optional query parameters like `includeSubscribed`, `maxChangeIdCount`, and `startChangeId`, and requires an empty request body. A successful response returns an \"About\" instance. The operation needs authorization via specified OAuth scopes, some with restricted access, and details can be found in the authorization guide.\n"]]