GET/users/{userId}/drive/sharedfolders/{sharedFolderId}/files/{fileId}/revisions
초대받은 폴더의 파일 버전 목록을 조회한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | 사용자 ID
required example : me |
| sharedFolderId | string | 초대받은 폴더 ID required example : MTIzNDVfRF8xMjM0NQ |
| fileId | string | 파일 ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Parameter | Type | Description |
|---|---|---|
| count | integer | 조회 개수 default : 20 minimum : 1 maximum : 200 example : 20 format : int32 |
| cursor | string | 커서값 example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== allowReserved : false |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| revisions | array (FileRevision) | 버전 정보 |
| responseMetaData | object (responseMetaData) | 응답 메타데이터 |
| Property | Type | Description |
|---|---|---|
| createdTime | string | 생성 날짜 readOnly : true |
| fileSize | integer | 파일 크기 format : int64 readOnly : true |
| fileType | string | 파일 유형
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 |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 다음 목록 조회 시 사용하는 커서값 readOnly : true |
example
1{2 "revisions": [3 {4 "revisionId": "0",5 "resourceLocation": 24101,6 "fileSize": 52255,7 "fileType": "IMAGE",8 "originalPath": "/worksFolder/mobile-18_jpeg.jpeg",9 "createdTime": "2017-06-22T10:50:59.59+09:00",10 "modifiedTime": "2017-05-11T18:31:20.20+09:00",11 "updateUser": "userf7da-f82c-4284-13e7-030f3b4c756x"12 }13 ],14 "responseMetaData": {15 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="16 }17}Invalid parameters received.
Access is denied: no permission.