GET/users/{userId}/drive

내 드라이브 속성을 조회한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

file
file.read

HTTP Request

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

Path Parameters

ParameterTypeDescription
userId string 

사용자 ID

  • 메일
  • 리소스 ID
  • 외부 키 "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}