Skip to content

Commit

Permalink
Added delete and filelist examples (#11)
Browse files Browse the repository at this point in the history
Added delete and list file methods to the example section of the readme
  • Loading branch information
miyurusankalpa authored and Chris White committed Aug 24, 2016
1 parent 19816a8 commit 68c054a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68c054a

Please # to comment.