Explore Server Side Testing SDK for PHP

HttpClient implements HttpClientInterface

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

Constants

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'

Properties

Methods

__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
Return values
string

hasCacheBypass()

public hasCacheBypass() : bool
Return values
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

        
On this page

Search results