GET/users/{userId}/drive
Gets my drive properties.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | User ID
required example : me |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| quota | object (quota) | Drive capacity information |
| trashEmptyCycle | integer | Frequency to automatically empty trash (in days) minimum : 0 maximum : 50 format : int32 readOnly : true |
| Property | Type | Description |
|---|---|---|
| total | integer | Total size format : int64 readOnly : true |
| trash | integer | Trash size format : int64 readOnly : true |
| unused | integer | Unused size format : int64 readOnly : true |
| used | integer | Used size format : int64 readOnly : true |
example
1{2 "quota": {3 "total": 32212254720,4 "used": 210793256,5 "unused": 32001461464,6 "trash": 492137797 },8 "trashEmptyCycle": 09}