Documentation

VultrConfig
in package

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

Constants

API_URI

public mixed API_URI = 'https://api.vultr.com/'

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 . ')'

Methods

generateHeaders()

public static generateHeaders(VultrAuth $auth) : array<string|int, mixed>
Parameters
$auth : VultrAuth
Return values
array<string|int, mixed>

getBaseURI()

public static getBaseURI() : string
Return values
string

        
On this page

Search results