PHP code example of bk203 / rgw-admin-client

1. Go to this page and download the library: Download bk203/rgw-admin-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bk203 / rgw-admin-client example snippets


use bk203\RgwAdminClient\Client;

$client = new Client('https://','apiKey','secretKey');

$request = $client->createRequest('user', 'get', ['uid' => 'user-id']);

$response = $client->sendRequest($request);

var_dump($response);

$response = $client->get('user', ['uid' => 'user-id']);

var_dump($response);
bash
$ composer