jasxchange.blogg.se

B2 backblaze
B2 backblaze









b2 backblaze

Please see License File for more information. If you discover any security related issues, please email instead of using the issue tracker. Please see CONTRIBUTING and CONDUCT for details. Testing $ vendor/bin/phpunit Contributing Please see CHANGELOG for more information what has changed recently. ]) List all files $fileList = $client-> listFiles([ Can also identify the file via bucket and path: // 'BucketName' => 'my-special-bucket', // 'FileName' => 'path/to/file' ]) File Delete $fileDelete = $client-> deleteFile([ Can also supply BucketId instead of BucketName // Optional are DestinationBucketName or DestinationBucketId ]) File Copy $copyOfFile = $client-> copy([ This will cause download() to not return file content. Can also identify the file via bucket and path: // 'BucketName' => 'my-special-bucket', // 'FileName' => 'path/to/file' // Can also save directly to a location on disk. ]) File Download $fileContent = $client-> download([ 'Body' => 'I am the file content' // The file content can also be provided via a resource.

b2 backblaze

]) File Upload $file = $client-> upload([

b2 backblaze

]) List all buckets $buckets = $client-> listBuckets() Delete a bucket $client-> deleteBucket([ ]) Change the bucket Type $updatedBucket = $client-> updateBucket([ 'BucketType' => Bucket:: TYPE_PRIVATE // or TYPE_PUBLIC ApplicationKey is not supported yet, please use MasterKey only Returns a bucket details $bucket = $client-> createBucket([ So that the authorization token does not expire. The timeout allows for a long lived Client object B2 Cloud Storage service offers its users unlimited storage for 0.005/GB per month with 10GB for free. If omitted, the default timeout is 12 hours. MSP360 Backup supports B2 Cloud Storage by Backblaze. $client = new Client( 'accountId', 'applicationKey', $options) Via Composer $ composer require gliterd/backblaze-b2 Usage use BackblazeB2\ Client Backblaze-b2 is the SDK for working with Backblaze's B2 storage service.











B2 backblaze