Функция требует авторизации
Описание - Удаляет все файлы и папки из корзины
Параметры - У метода нет параметров
Возвращает - Результат операции
Пример ответа
application/json
{ "status": 0, "response": [ { "id": "d51299ee-9c37-467c-88a7-c90c62b8856f", "operation": 0, "progress": 100, "error": "", "processed": "1", "finished": false, "url": null, "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": 1301426269, "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.6633260Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.6633260Z", "providerItem": false } ], "folders": [ { "parentId": 1301426269, "filesCount": 1301426269, "foldersCount": 1301426269, "id": 1301426269, "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.6633260Z", "createdBy": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "Mike Zanyatski", "title": "Manager", "avatarSmall": "url to small avatar", "profileUrl": "" }, "updated": "2020-12-08T14:20:01.6633260Z", "providerItem": false } ] } ] }
text/xml
<result> <status>0</status> <response> <id>d51299ee-9c37-467c-88a7-c90c62b8856f</id> <operation>0</operation> <progress>100</progress> <error></error> <processed>1</processed> <finished>false</finished> <url /> <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>1301426269</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.6633260Z</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.6633260Z</updated> <providerItem>false</providerItem> </files> <folders> <parentId>1301426269</parentId> <filesCount>1301426269</filesCount> <foldersCount>1301426269</foldersCount> <id>1301426269</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.6633260Z</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.6633260Z</updated> <providerItem>false</providerItem> </folders> </response> </result>
Комментарии
0 комментариев
Статья закрыта для комментариев.