Property | Type | Description | |
---|---|---|---|
$options | |||
$secret | |||
$type |
Method | Description | |
---|---|---|
__construct ( string $secret, array $options = [] ) | Store our secret and options as part of this consumer | |
alias ( array $message ) : boolean | Aliases from one user id to another | |
group ( array $message ) : boolean | Tags traits about the group. | |
identify ( array $message ) : boolean | Tags traits about the user. | |
page ( array $message ) : boolean | Tracks a page view. | |
screen ( array $message ) : boolean | Tracks a screen view. | |
track ( array $message ) : boolean | Tracks a user action |
Method | Description | |
---|---|---|
debug ( ) : boolean | Check whether debug mode is enabled | |
handleError ( string $code, string $msg ) | On an error, try and call the error handler, if debugging output to error_log as well. | |
ssl ( ) : boolean | Check whether we should connect to the API using SSL. This is enabled by default with connections which make batching requests. For connections which can save on round-trip times, you may disable it. |
public __construct ( string $secret, array $options = [] ) | ||
$secret | string | |
$options | array |
protected handleError ( string $code, string $msg ) | ||
$code | string | |
$msg | string |