-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I am wondering why there is no example how to use this sdk?
What approach should I use to be successful with this sdk?
For example here is my code
public function sendEvent( $event_name, $customer_email, $customer_properties = array(), $properties = array() ) {
$eventData = [
'data' => [
'type' => 'event',
'attributes' => [
'event' => $event_name,
'profile' => ['$email' => $customer_email] + $customer_properties,
'properties' => $properties,
],
],
];
$event = new KlaviyoAPI\Model\EventCreateQueryV2( $eventData );
$resp = $this->client->Events->createEvent($event);
}
to use createEvent i need to first create an object of event via some weird EventCreateQueryV2 but there is no example of data structure... How can i do it?
Metadata
Metadata
Assignees
Labels
No labels