From 68c054af3c857f08506e9ee9f3c017972cb6bee8 Mon Sep 17 00:00:00 2001 From: Miyuru Sankalpa Date: Wed, 24 Aug 2016 19:01:19 +0530 Subject: [PATCH] Added delete and filelist examples (#11) Added delete and list file methods to the example section of the readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f1ef3b1..9d7a9f2 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,20 @@ $fileContent = $client->download([ // Can also save directly to a location on disk. This will cause download() to not return file content. // 'SaveAs' => '/path/to/save/location' ]); + +// Delete a file from a bucket. Returns true or false. +$fileDelete = $client->deleteFile([ + 'FileId' => $file->getId() + + // Can also identify the file via bucket and path: + // 'BucketName' => 'my-special-bucket', + // 'FileName' => 'path/to/file' +]); + +// Retrieve an array of file objects from a bucket. +$fileList = $client->listFiles([ + 'BucketId' => '4d2dbbe08e1e983c5e6f0d12' +]); ``` ## Installation