프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$baseUrl | configuration | ||
$clientId | |||
$cookiePrefix | |||
$timeout |
메소드 | 설명 | |
---|---|---|
__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 ( ) |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | SeatGeek\Sixpack\Response\Participation |