class GuzzleRequestRepository implements RequestRepository (View source)

Traits

Properties

protected ConfigRepository $config from  ConfigTrait

Methods

__construct($config, Client $client)

No description

string
getSiteId()

Retrieve Site ID from configuration.

string
getPiwikUrl()

Retrieve Piwik URL from configuration.

string
validateFormat(string $format)

Check format against allowed values.

mixed
send(RequestOptions $requestOptions)

Send a request to the Piwik API.

Details

__construct($config, Client $client)

No description

Parameters

$config
Client $client

string getSiteId()

Retrieve Site ID from configuration.

Return Value

string

site id retrieved from configuration

string getPiwikUrl()

Retrieve Piwik URL from configuration.

Return Value

string

piwik url retrieved from configuration

string validateFormat(string $format)

Check format against allowed values.

Parameters

string $format

format to validate

Return Value

string

the format if it has passed validation

Exceptions

PiwikException

mixed send(RequestOptions $requestOptions)

Send a request to the Piwik API.

Parameters

RequestOptions $requestOptions

Return Value

mixed