VultrConfig
Table of Contents
Constants
-
API_URI
= 'https://api.vultr.com/'
-
API_VERSION
= 'v2'
-
MANDATORY_HEADERS
= ['Content-Type' => 'application/json', 'Accept' => 'application/json', 'User-Agent' => self::USERAGENT, \Vultr\VultrPhp\VultrAuth::AUTHORIZATION_HEADER => '']
-
USERAGENT
= 'VultrPhp/' . self::VERSION . '(API_VERSION: ' . self::API_VERSION . ')'
-
VERSION
= '1.0.2'
Methods
-
generateHeaders()
: array<string|int, mixed>
-
getBaseURI()
: string
API_URI
public
mixed
API_URI
= 'https://api.vultr.com/'
API_VERSION
public
mixed
API_VERSION
= 'v2'
MANDATORY_HEADERS
public
mixed
MANDATORY_HEADERS
= ['Content-Type' => 'application/json', 'Accept' => 'application/json', 'User-Agent' => self::USERAGENT, \Vultr\VultrPhp\VultrAuth::AUTHORIZATION_HEADER => '']
USERAGENT
public
mixed
USERAGENT
= 'VultrPhp/' . self::VERSION . '(API_VERSION: ' . self::API_VERSION . ')'
VERSION
public
mixed
VERSION
= '1.0.2'
public
static generateHeaders(VultrAuth $auth) : array<string|int, mixed>
Parameters
-
$auth
: VultrAuth
-
Return values
array<string|int, mixed>
getBaseURI()
public
static getBaseURI() : string