File: Account.md

package info (click to toggle)
owncloud 7.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 104,192 kB
  • sloc: php: 403,584; xml: 5,843; perl: 630; cs: 504; sh: 453; sql: 271; python: 221; makefile: 104
file content (28 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Setup

```php
use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles');
```

## View Account Details

To see how many containers you have in your account (X-Account-Container-Count), how many objects are in your account
(X-Account-Object-Count), and how many total bytes your account uses (X-Account-Bytes-Used):

```php
$account = $service->getAccount();

// Either return the full Metadata object
$details = $account->getDetails();

// or individual values
$account->getContainerCount();
$account->getObjectCount();
$account->getBytesUsed();
```