Method: about.get
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
現在のユーザーに関する情報と Drive API の設定を取得します。
HTTP リクエスト
GET https://www.googleapis.com/drive/v2/about
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
includeSubscribed |
boolean
マイドライブの階層外の変更をカウントするかどうか。false に設定すると、Application Data フォルダ内のファイルや、マイドライブに追加されていない共有ファイルなどのファイルに対する変更は maxChangeIdCount から除外されます。
|
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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# Method: about.get\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- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets the information about the current user along with Drive API settings\n\n### HTTP request\n\n`GET https://www.googleapis.com/drive/v2/about`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `includeSubscribed` | `boolean` Whether to count changes outside the My Drive hierarchy. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the `maxChangeIdCount`. |\n| `maxChangeIdCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Maximum number of remaining change IDs to count |\n| `startChangeId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Change ID to start counting from when calculating number of remaining change IDs |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [About](/workspace/drive/api/reference/rest/v2/about#About).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/docs`\n- `\n https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.appdata`\n- `\n https://www.googleapis.com/auth/drive.file`\n- `\n https://www.googleapis.com/auth/drive.metadata`\n- `\n https://www.googleapis.com/auth/drive.metadata.readonly`\n- `\n https://www.googleapis.com/auth/drive.photos.readonly`\n- `\n https://www.googleapis.com/auth/drive.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)."]]