resumeger.blogg.se

Backblaze b2 login
Backblaze b2 login










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. ]) File Upload $file = $client-> upload([ ]) 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.

backblaze b2 login

The timeout allows for a long lived Client object If omitted, the default timeout is 12 hours. $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.












Backblaze b2 login