src/PlatformClient.php
public function getAccountInfo($reset = false)
    {
        if (!isset($this->accountInfo) || $reset) {
            $url = $this->accountsEndpoint . 'me';
            try {
                $this->accountInfo = $this->simpleGet($url);
            }
            catch (BadResponseException $e) {
                throw ApiResponseException::create($e->getRequest(), $e->getResponse(), $e->getPrevious());
            }
        }

        return $this->accountInfo;
    }
public function getAccountInfo($reset = false)
    {
        if (!isset($this->accountInfo) || $reset) {
            $url = $this->accountsEndpoint . 'me';
            try {
                $this->accountInfo = $this->simpleGet($url);
            }
            catch (BadResponseException $e) {
                throw ApiResponseException::create($e->getRequest(), $e->getResponse(), $e->getPrevious());
            }
        }

        return $this->accountInfo;
    }
public function getAccountInfo ( $ reset = false ) { if ( ! isset ( $ this -> accountInfo ) || $ reset ) { $ url = $ this -> accountsEndpoint . 'me' ; try { $ this -> accountInfo = $ this -> simpleGet ( $ url ) ; } catch ( BadResponseException $ e ) { throw ApiResponseException :: create ( $ e -> getRequest ( ) , $ e -> getResponse ( ) , $ e -> getPrevious ( ) ) ; } } return $ this -> accountInfo ; }
Get account information for the logged-in user.

@param bool $reset

@return array
Get account information for the logged - in user .