Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 914 Bytes

documents-trash-bin.md

File metadata and controls

34 lines (25 loc) · 914 Bytes

Documents Trash Bin

Request Supported
Get Documents
Delete Documents
Restore Documents

Get Documents

You can use the same methods as in the search usage. The only difference is that you have to use the trashBin method after the searchRequestBuilder method.

```php
use CodebarAg\DocuWare\DocuWare;

$paginatorRequest = (new DocuWare())
    ->searchRequestBuilder()
    ->trashBin()

Delete Documents

use CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin\DeleteDocuments;

$delete = $connector->send(new DeleteDocuments([$documentID, $document2ID]))->dto();

Restore Documents

use CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin\RestoreDocuments;

$delete = $connector->send(new RestoreDocuments([$documentID, $document2ID]))->dto();