PHP code example of pcextreme / rgw-admin-client
1. Go to this page and download the library: Download pcextreme/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/ */
pcextreme / rgw-admin-client example snippets
$client = new Client([
'apiUrl' => '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