GET/users/{userId}/drive

マイドライブのドライブプロパティを取得する。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive

Path Parameters

ParameterTypeDescription
userId string 

ユーザーを特定する ID (URL エンコードする)

  • ユーザー ID (userId)
  • ログイン ID (email)
  • ユーザーの ExternalKey (externalKey:{externalKey})
  • 自身 ("me")

required
example : me 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
quota object (quota) 

ドライブ容量情報

 
trashEmptyCycle integer 

ゴミ箱の自動削除期間 (単位:日数)


minimum : 0
maximum : 50
format : int32
readOnly : true 

quota

PropertyTypeDescription
total integer 

全体の容量


format : int64
readOnly : true 
trash integer 

ゴミ箱の容量


format : int64
readOnly : true 
unused integer 

未使用容量


format : int64
readOnly : true 
used integer 

使用容量


format : int64
readOnly : true 

Response Example

example

1{2  "quota": {3    "total": 32212254720,4    "used": 210793256,5    "unused": 32001461464,6    "trash": 492137797  },8  "trashEmptyCycle": 09}