Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.26 KB

account.md

File metadata and controls

56 lines (35 loc) · 1.26 KB

The account Client

The Account client wraps the account section of 46elks.se docs

Available services

Unlike Sms and Phone calls no sub services exist for the account client.

Access the client

The account client may be accessed like this

// Initialize client
use Tarre\Php46Elks\Client as Php46ElkClient;
$Php46ElksClient = new Php46ElkClient('username', 'password');

$account = $Php46ElksClient->account();

Get account info

Get account information

// Initialize client
use Tarre\Php46Elks\Client as Php46ElkClient;
$Php46ElksClient = new Php46ElkClient('username', 'password');

$account = $Php46ElksClient->account();

$result = $account->get(); // ->me(); also works

print_r($result);

Update account info

Update account information

// Initialize client
use Tarre\Php46Elks\Client as Php46ElkClient;
$Php46ElksClient = new Php46ElkClient('username', 'password');

$account = $Php46ElksClient->account();

$result = $account->update(5000);

print_r($result);