Функция требует авторизации
Описание - Возвращает подробный список файлов и папок в разделе "Доступные для меня" текущего пользователя
Параметры - У метода нет параметров
Возвращает - Содержимое папки общего доступа
Пример ответа
application/json
{ "status": 0, "response": { "files": [ { "folderId": 12334, "version": 3, "versionGroup": 1, "contentLength": "12345", "fileStatus": 2, "viewUrl": "http:\/\/www.onlyoffice.com\/viewfile?fileid=2221", "fileType": 7, "fileExst": ".txt", "comment": null, "id": 762782624, "title": "Some titile.txt", "access": 1, "shared": false, "rootFolderType": 2, "updatedBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "created": "2020-12-08T14:20:01.5851369Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.5851369Z", "providerItem": false }, { "folderId": 12334, "version": 3, "versionGroup": 1, "contentLength": "12345", "fileStatus": 2, "viewUrl": "http:\/\/www.onlyoffice.com\/viewfile?fileid=2221", "fileType": 7, "fileExst": ".txt", "comment": null, "id": 762782624, "title": "Some titile.txt", "access": 1, "shared": false, "rootFolderType": 2, "updatedBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "created": "2020-12-08T14:20:01.5851369Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.5851369Z", "providerItem": false } ], "folders": [ { "parentId": 762782624, "filesCount": 762782624, "foldersCount": 762782624, "id": 762782624, "title": "Some titile", "access": 1, "shared": false, "rootFolderType": 2, "updatedBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "created": "2020-12-08T14:20:01.5851369Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.5851369Z", "providerItem": false }, { "parentId": 762782624, "filesCount": 762782624, "foldersCount": 762782624, "id": 762782624, "title": "Some titile", "access": 1, "shared": false, "rootFolderType": 2, "updatedBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "created": "2020-12-08T14:20:01.5851369Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.5851369Z", "providerItem": false } ], "current": { "parentId": 762782624, "filesCount": 762782624, "foldersCount": 762782624, "id": 762782624, "title": "Some titile", "access": 1, "shared": false, "rootFolderType": 2, "updatedBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "created": "2020-12-08T14:20:01.5851369Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.5851369Z", "providerItem": false }, "pathParts": { "key": "Key", "path": "\/\/path\/\/to\/\/folder" }, "startIndex": 0, "count": 4, "total": 4 } }
text/xml
<result> <status>0</status> <response> <files> <folderId>12334</folderId> <version>3</version> <versionGroup>1</versionGroup> <contentLength>12345</contentLength> <fileStatus>2</fileStatus> <viewUrl>http://www.onlyoffice.com/viewfile?fileid=2221</viewUrl> <fileType>7</fileType> <fileExst>.txt</fileExst> <comment /> <id>762782624</id> <title>Some titile.txt</title> <access>1</access> <shared>false</shared> <rootFolderType>2</rootFolderType> <updatedBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </updatedBy> <created>2020-12-08T14:20:01.5851369Z</created> <createdBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </createdBy> <updated>2020-12-08T14:20:01.5851369Z</updated> <providerItem>false</providerItem> </files> <files> <folderId>12334</folderId> <version>3</version> <versionGroup>1</versionGroup> <contentLength>12345</contentLength> <fileStatus>2</fileStatus> <viewUrl>http://www.onlyoffice.com/viewfile?fileid=2221</viewUrl> <fileType>7</fileType> <fileExst>.txt</fileExst> <comment /> <id>762782624</id> <title>Some titile.txt</title> <access>1</access> <shared>false</shared> <rootFolderType>2</rootFolderType> <updatedBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </updatedBy> <created>2020-12-08T14:20:01.5851369Z</created> <createdBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </createdBy> <updated>2020-12-08T14:20:01.5851369Z</updated> <providerItem>false</providerItem> </files> <folders> <parentId>762782624</parentId> <filesCount>762782624</filesCount> <foldersCount>762782624</foldersCount> <id>762782624</id> <title>Some titile</title> <access>1</access> <shared>false</shared> <rootFolderType>2</rootFolderType> <updatedBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </updatedBy> <created>2020-12-08T14:20:01.5851369Z</created> <createdBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </createdBy> <updated>2020-12-08T14:20:01.5851369Z</updated> <providerItem>false</providerItem> </folders> <folders> <parentId>762782624</parentId> <filesCount>762782624</filesCount> <foldersCount>762782624</foldersCount> <id>762782624</id> <title>Some titile</title> <access>1</access> <shared>false</shared> <rootFolderType>2</rootFolderType> <updatedBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </updatedBy> <created>2020-12-08T14:20:01.5851369Z</created> <createdBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </createdBy> <updated>2020-12-08T14:20:01.5851369Z</updated> <providerItem>false</providerItem> </folders> <current> <parentId>762782624</parentId> <filesCount>762782624</filesCount> <foldersCount>762782624</foldersCount> <id>762782624</id> <title>Some titile</title> <access>1</access> <shared>false</shared> <rootFolderType>2</rootFolderType> <updatedBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </updatedBy> <created>2020-12-08T14:20:01.5851369Z</created> <createdBy> <id>00000000-0000-0000-0000-000000000000</id> <displayName>Mike Zanyatski</displayName> <title>Manager</title> <avatarSmall>url to small avatar</avatarSmall> <profileUrl></profileUrl> </createdBy> <updated>2020-12-08T14:20:01.5851369Z</updated> <providerItem>false</providerItem> </current> <pathParts> <key>Key</key> <path>//path//to//folder</path> </pathParts> <startIndex>0</startIndex> <count>4</count> <total>4</total> </response> </result>
Комментарии
0 комментариев
Статья закрыта для комментариев.