GET/users/{userId}/drive/sharedfolders/{sharedFolderId}/files/{fileId}/revisions
共有されたフォルダのファイルバージョンリストを取得する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザーを特定する ID (URL エンコードする)
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 | リストのカーソル値 (URL エンコードする) 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 (userId) 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.