<?php use TechKat\BackBlazeB2\Client; $keyID = '...'; $applicationKey = '...'; $client = new Client($keyID, $applicationKey); $response = $client->createKey([ 'keyName' => 'A-Leash-A-Keys', 'capabilities' => [ 'listKeys', 'listAllBucketNames', 'listBuckets', 'readBuckets', 'writeBuckets', // ... ], 'validDurationInSeconds' => 86400, 'bucketId' => 'BUCKET_ID', // ... ]); return $response;
{ "keyName": "A-Leash-A-Keys", "applicationKeyId": "NEW_KEY_ID", "capabilities": [ "listKeys", "listAllBucketNames", "listBuckets", "readBuckets", "writeBuckets", // ... ], // ... }
https://www.backblaze.com/apidocs/b2-create-key
There was an error while loading. Please reload this page.
Below is a list of all the available native API endpoints that this library currently supports:
{ "keyName": "A-Leash-A-Keys", "applicationKeyId": "NEW_KEY_ID", "capabilities": [ "listKeys", "listAllBucketNames", "listBuckets", "readBuckets", "writeBuckets", // ... ], // ... }