class TrackService extends BaseService (View source)

The track manager class used to handle lists.

Methods

__construct(KlaviyoApi $api)

The constructor for the list manager class.

static 
create(KlaviyoApi $api)

Instantiates a new instance of this class.

string
getResourcePath($resource)

Retrieve the full resource path.

bool
identify(PersonModel $person)

Identify a person to the Klaviyo API.

Details

in BaseService at line line 28
__construct(KlaviyoApi $api)

The constructor for the list manager class.

Parameters

KlaviyoApi $api The Klaviyo API object to use for communicating with the Klaviyo API.

in BaseService at line line 35
static create(KlaviyoApi $api)

Instantiates a new instance of this class.

Parameters

KlaviyoApi $api

in BaseService at line line 46
string getResourcePath($resource)

Retrieve the full resource path.

Parameters

$resource

Return Value

string The full resource path incuding the resource prefix and resource path. Example: /api/v1/lists

at line line 23
bool identify(PersonModel $person)

Identify a person to the Klaviyo API.

Parameters

PersonModel $person An instance of the person model that should be written.

Return Value

bool Returns TRUE if the record was successfully written and FALSE otherwise.