GET/users/{userId}/drive/files/{fileId}/revisions/{revisionId}

내 드라이브의 파일 버전 속성을 조회한다.

Authorization

oauth2

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

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive/files/{fileId}/revisions/{revisionId}

Path Parameters

ParameterTypeDescription
userId string 

사용자 ID

  • 메일
  • 리소스 ID
  • 외부 키 "externalKey:{externalKey}" 형태
  • me

required
example : me 
fileId string 

파일 ID


required
example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA 
revisionId string 

버전 ID


required
example : 0 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
createdTime string 

생성 날짜


readOnly : true 
fileSize integer 

파일 크기


format : int64
readOnly : true 
fileType string 

파일 유형

  • AUDIO: 오디오 파일
  • DOC: 문서 파일
  • ETC: 기타 파일
  • EXE: 실행 파일
  • FOLDER: 폴더
  • IMAGE: 사진 파일
  • VIDEO: 영상 파일
  • ZIP: 압축 파일

Allowed values : AUDIO, DOC, ETC, EXE, FOLDER, IMAGE, VIDEO, ZIP 
originalPath string 

최초 경로


readOnly : true 
resourceLocation integer 

리소스 위치 코드


format : int32
readOnly : true 
revisionId string 

버전 ID


readOnly : true 
modifiedTime string 

수정 날짜


readOnly : true 
updateUser string 

수정한 사용자의 ID


readOnly : true 

Response Example

example

1{2  "revisionId": "0",3  "resourceLocation": 24101,4  "fileSize": 52255,5  "fileType": "IMAGE",6  "originalPath": "N:/worksFolder/mobile-18_jpeg.jpeg",7  "createdTime": "2017-06-22T10:50:59.59+09:00",8  "modifiedTime": "2017-05-11T18:31:20.20+09:00",9  "updateUser": "userf7da-f82c-4284-13e7-030f3b4c756x"10}