Table of Contents
Interfaces
- HttpClientInterface
Constants
-
DEFAULT_API_BASE_URL
= 'https://app.omniconvert.com/'
-
ROUTE_EXPERIMENTS
= 'experiments'
-
ROUTE_TRACKING
= 'mktzsave'
-
TYPE_APPLICATION_JSON
= 'application/json'
Properties
-
$baseUri
: string
-
$cacheBypass
: bool
-
$guzzleClient
: Client
Methods
-
__construct()
: mixed
-
getBaseUri()
: string
-
hasCacheBypass()
: bool
-
request()
: ResponseInterface
-
requestExperiments()
: ResponseInterface
-
requestTracking()
: ResponseInterface
DEFAULT_API_BASE_URL
public
mixed
DEFAULT_API_BASE_URL
= 'https://app.omniconvert.com/'
ROUTE_EXPERIMENTS
public
mixed
ROUTE_EXPERIMENTS
= 'experiments'
ROUTE_TRACKING
public
mixed
ROUTE_TRACKING
= 'mktzsave'
TYPE_APPLICATION_JSON
public
mixed
TYPE_APPLICATION_JSON
= 'application/json'
$baseUri
private
string
$baseUri
$cacheBypass
private
bool
$cacheBypass
= false
$guzzleClient
private
Client
$guzzleClient
__construct()
public
__construct(string $apiKey[, string $baseUri = null ][, bool $cacheBypass = false ]) : mixed
Parameters
-
$apiKey
: string
-
-
$baseUri
: string
= null
-
-
$cacheBypass
: bool
= false
-
getBaseUri()
public
getBaseUri() : string
hasCacheBypass()
public
hasCacheBypass() : bool
request()
public
request(string $method[, mixed $uri = '' ][, array<string|int, mixed> $options = [] ]) : ResponseInterface
Parameters
-
$method
: string
-
-
$uri
: mixed
= ''
-
-
$options
: array<string|int, mixed>
= []
-
Return values
ResponseInterface
requestExperiments()
public
requestExperiments() : ResponseInterface
Return values
ResponseInterface
requestTracking()
public
requestTracking(string $method[, array<string|int, mixed> $queryParams = [] ]) : ResponseInterface
Parameters
-
$method
: string
-
-
$queryParams
: array<string|int, mixed>
= []
-
Return values
ResponseInterface