GET/users/{userId}/drive/sharedfolders
共有されたフォルダのリストを取得する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザーを特定する ID (URL エンコードする)
required example : me |
| Parameter | Type | Description |
|---|---|---|
| count | integer | 取得数 default : 20 minimum : 1 maximum : 200 example : 20 format : int32 |
| cursor | string | リストのカーソル値 (URL エンコードする) example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== allowReserved : false |
| orderBy | string | ソート対象や順番は空白 (%20) で区分
example : createdTime%20desc |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| responseMetaData | object (responseMetaData) | 応答のメタデータ |
| result | array (object) |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 次のリスト取得時に使用するカーソル値 readOnly : true |
| Property | Type | Description |
|---|---|---|
| sharedFolderId | string | 共有されたフォルダ ID readOnly : true |
| sharedFolderName | string | 共有されたフォルダ名 readOnly : true |
| ownerId | string | 所有者 ID readOnly : true |
| ownerName | string | 所有者の名前 readOnly : true |
| rootFileId | string | ルートフォルダのファイル ID readOnly : true |
| createdTime | string | 作成日時 format : date-time readOnly : true |
| modifiedTime | string | 更新日時 format : date-time readOnly : true |
| resourceLocation | integer | リソースロケーションコード format : int32 readOnly : true |
| permissionType | string | 編集権限
Allowed values : READ, WRITE |
| useRevision | boolean | バージョン履歴の使用フラグ readOnly : true |
| protected | boolean | 重要マーク readOnly : true |
example
1{2 "responseMetaData": {3 "nextCursor": "TlRnd09UQXdORjlFWHprek9Ea3lPRFUyTWpRek5nfGRlIHdhbnRzIHRvIHNoYXJl"4 },5 "sharedFolders": [6 {7 "sharedFolderId": "NTgwOTAwNF9EXzkzODkyODU2MjQzNg",8 "sharedFolderName": "share",9 "ownerId": "userf7da-f82c-4284-13e7-030f3b4c756x",10 "ownerName": "ownerName",11 "rootFileId": "NTgwOTAwNHw5Mzg5Mjg1NjI0MzZ8RHwxNzQ",12 "createdTime": "2023-07-06T16:27:28+09:00",13 "modifiedTime": "2023-07-06T16:27:28+09:00",14 "resourceLocation": 11551,15 "permissionType": "WRITE",16 "useRevision": true,17 "protected": false18 }19 ]20}