GET/users/{userId}/drive/recent
사용자가 접근할 수 있는 내 드라이브, 조직/그룹 폴더, 공용 드라이브(공용 폴더), 초대받은 폴더에서 최근에 사용한 파일 목록을 조회한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | 사용자 ID
required example : me |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| files | array (File) | 파일 정보 |
| responseMetaData | object (responseMetaData) | 응답 메타데이터 |
| Property | Type | Description |
|---|---|---|
| accessedTime | string | 접근 날짜 readOnly : true |
| createdTime | string | 생성 날짜 readOnly : true |
| modifiedTime | string | 수정 날짜 readOnly : true |
| fileId | string | 파일 ID readOnly : true |
| parentFileId | string | 부모 폴더의 fileId readOnly : true |
| fileName | string | 파일 이름 readOnly : true |
| fileSize | integer | 파일 크기 format : int64 readOnly : true |
| filePath | string | 파일 경로 readOnly : true |
| fileType | string | 파일 유형
Allowed values : AUDIO, DOC, ETC, EXE, FOLDER, IMAGE, VIDEO, ZIP |
| hasPermission | boolean | 특정 구성원에게 권한이 부여되었는지 여부. readOnly : true nullable : false |
| permissionRootFileId | string | 폴더 접근 권한이 설정된 폴더의 파일 ID. readOnly : true nullable : true |
| shared | boolean | 해당 폴더 혹은 상위 폴더가 현재 공유 중인지 여부. readOnly : true nullable : false |
| shareRootFileId | string | 해당 폴더 혹은 상위 폴더가 공유 중인 경우, 공유된 루트 폴더의 파일 ID. readOnly : true nullable : true |
| resourceLocation | integer | 리소스 위치 코드 format : int32 readOnly : true |
| statuses | array (FileStatus) | 파일 상태 Allowed values : LOCKED, MALWARE, PROTECTED, IN_PROGRESS |
| driveInfo | object (driveInfo) | File Resource 소유 드라이브 정보. |
| Property | Type | Description |
|---|---|---|
| FileStatus | string | 파일 상태
Allowed values : LOCKED, MALWARE, PROTECTED, IN_PROGRESS |
| Property | Type | Description |
|---|---|---|
| driveType | string | 드라이브 유형
Allowed values : MY_DRIVE, SHARED_FOLDER, SHARE_DRIVE, CHANNEL_FOLDER |
| id | string | driveType에 해당되는 값이 응답으로 반환된다. readOnly : true nullable : true |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 다음 목록 조회 시 사용하는 커서값 readOnly : true |
example
1{2 "files": [3 {4 "fileId": "QDIxMDAwMDAwMDAwMTcwfDExODE1MDg3MzQ0NzJ8RHww",5 "parentFileId": "QDIxMDAwMDAwMDAwMTcwfDExNzgyODY2MjgxMDR8RHww",6 "resourceLocation": 24101,7 "fileSize": 10,8 "fileName": "works.txt",9 "filePath": "/ShareDriveName/works.txt",10 "fileType": "DOC",11 "createdTime": "2020-11-13T18:20:05+09:00",12 "modifiedTime": "2021-04-05T21:14:05+09:00",13 "accessedTime": "2021-04-05T21:14:05+09:00",14 "statuses": [],15 "hasPermission": false,16 "permissionRootFileId": null,17 "driveInfo": {18 "driveType": "SHARE_DRIVE",19 "id": "@248080202002"20 }21 },22 {23 "fileId": "MTU1NzYwMDF8MzQ3MjQ3MTI0MDkxNzYzNTMzN3xEfDA",24 "parentFileId": "MTU1NzYwMDF8MzQ3MjQ3MTI0MDY1MTQxMTcyMHxEfDA",25 "resourceLocation": 24101,26 "fileSize": 0,27 "fileName": "worksFolder",28 "filePath": "/GroupFolderName/worksFolder/",29 "fileType": "FOLDER",30 "createdTime": "2020-11-13T18:20:05+09:00",31 "modifiedTime": "2021-04-05T21:14:05+09:00",32 "accessedTime": "2021-04-05T21:14:05+09:00",33 "statuses": [],34 "hasPermission": false,35 "permissionRootFileId": null,36 "driveInfo": {37 "driveType": "CHANNEL_FOLDER",38 "id": "@93000099002912"39 }40 }41 ],42 "responseMetaData": {43 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="44 }45}