GET/users/{userId}/drive
マイドライブのドライブプロパティを取得する。
oauth2認証、詳細については文書を参照すること
Authorization URL - https://auth.worksmobile.com/oauth2/v2.0/authorize
Token URL - https://auth.worksmobile.com/oauth2/v2.0/token
Refresh URL - https://auth.worksmobile.com/oauth2/v2.0/token
file
file.read
Parameter | Type | Description |
---|---|---|
userId | string | ユーザーを特定するID (URLエンコードする)
required example : me |
Header | type | Description |
---|---|---|
Authorization | string | Bearer {token} required |
OK
Property | Type | Description |
---|---|---|
quota | object (quota) | ドライブ容量情報 |
trashEmptyCycle | integer | ゴミ箱の自動削除期間 (単位:日数) minimum : 0 maximum : 50 format : int32 readOnly : true |
Property | Type | Description |
---|---|---|
total | integer | 全体の容量 format : int64 readOnly : true |
trash | integer | ゴミ箱の容量 format : int64 readOnly : true |
unused | integer | 未使用容量 format : int64 readOnly : true |
used | integer | 使用容量 format : int64 readOnly : true |
example
1{
2 "quota": {
3 "total": 32212254720,
4 "used": 210793256,
5 "unused": 32001461464,
6 "trash": 49213779
7 },
8 "trashEmptyCycle": 0
9}