Property | Type | Description | |
---|---|---|---|
$baseUrl | configuration | ||
$clientId | |||
$cookiePrefix | |||
$timeout |
Method | Description | |
---|---|---|
__construct ( $options = [] ) | ||
convert ( string $experiment, mixed $kpi = null ) : SeatGeek\Sixpack\Response\Conversion | convert | |
getClientid ( ) | ||
getTimeout ( ) | ||
isForced ( $experiment ) | ||
participate ( string $experiment, array $alternatives, $traffic_fraction = 1 ) : SeatGeek\Sixpack\Response\Participation | Participate in an experiment | |
setTimeout ( $milliseconds ) | ||
status ( ) |
Method | Description | |
---|---|---|
forceAlternative ( string $experiment, array $alternatives ) : array | Force the alternative | |
generateClientId ( ) | ||
getIpAddress ( ) | ||
getUserAgent ( ) | ||
retrieveClientId ( ) | ||
sendRequest ( string $endpoint, array $params = [] ) : array | Send the request to sixpack | |
setClientId ( $clientId = null ) | ||
storeClientId ( $clientId ) |
public participate ( string $experiment, array $alternatives, $traffic_fraction = 1 ) : SeatGeek\Sixpack\Response\Participation | ||
$experiment | string | name of the experiment |
$alternatives | array | the alternatives to pick from |
return | SeatGeek\Sixpack\Response\Participation |