for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the DigitalOceanV2 library.
*
* (c) Antoine Corcy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DigitalOceanV2\Api;
use DigitalOceanV2\Entity\Account as AccountEntity;
/**
* @author Antoine Corcy <[email protected]>
* @author Graham Campbell <[email protected]>
class Account extends AbstractApi
{
* @return AccountEntity
public function getUserInformation()
$account = $this->adapter->get(sprintf('%s/account', $this->endpoint));
$account = json_decode($account);
return new AccountEntity($account->account);
}