KlaviyoFacade
class KlaviyoFacade (View source)
The Klaviyo API service container, model, and api wrapper.
Methods
__construct(Container $container, string $api_key)
The service container constructor.
static KlaviyoServiceContainer
create(string $api_key)
Factory method to create a new service continer.
getContainer()
Retrieve the container.
service(string $service_name)
Retrieve a service from the service container.
ModelInterface
model(array $configuration = array(), string $type = '')
The model factory wrapper method.
ModelInterface
modelFromJson(string $json = '', string $type = '')
The create from json model factory wrapper method.
getModelClass($type)
Retrieve the model class of the specified model.
Details
at line line 24
__construct(Container $container, string $api_key)
The service container constructor.
at line line 38
static KlaviyoServiceContainer
create(string $api_key)
Factory method to create a new service continer.
at line line 48
getContainer()
Retrieve the container.
at line line 61
ServiceInterface
service(string $service_name)
Retrieve a service from the service container.
at line line 83
ModelInterface
model(array $configuration = array(), string $type = '')
The model factory wrapper method.
at line line 103
ModelInterface
modelFromJson(string $json = '', string $type = '')
The create from json model factory wrapper method.
at line line 114
getModelClass($type)
Retrieve the model class of the specified model.