for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Vultr PHP library.
*
* (c) Albert Leitato <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Vultr\Api;
use Vultr\Entity\Auth as AuthEntity;
/**
* @author Albert Leitato <[email protected]>
class Auth extends AbstractApi
{
* Retrieve information about the current API key.
* @return AuthEntity
public function getKeyInformation()
$response = $this->adapter->get(\sprintf('%s/auth/info', $this->endpoint));
return $this->handleResponse($response, AuthEntity::class);
$this->handleResponse($r...tr\Entity\Auth::class);
array|object
array
Vultr\Api\Auth::getKeyInformation
Vultr\Entity\Auth
}