This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add #[\ReturnTypeWillChange] to methods declarations in order to supp…
…ress deprecation warnings
- Loading branch information
dano-klaviyo
committed
Apr 18, 2022
1 parent
7e0516f
commit 222dae4
Showing
11 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
use Klaviyo\Klaviyo as Klaviyo; | ||
|
||
// $client = new Klaviyo( 'PRIVATE_API_KEY', 'PUBLIC_API_KEY' ); | ||
$client = new Klaviyo( 'pk_e2c87144dc81bfd6f6418a1861e509e374', 'TzzGh5' ); | ||
|
||
use Klaviyo\Model\EventModel as KlaviyoEvent; | ||
|
||
$event = new KlaviyoEvent( | ||
array( | ||
'event' => 'Filled out Profile', | ||
'customer_properties' => array( | ||
'$email' => 'someone@mailinator.com', | ||
'$first_name' => 'Thomas', | ||
'$last_name' => 'Jefferson' | ||
), | ||
'properties' => array( | ||
'Added Social Accounts' => False | ||
) | ||
) | ||
); | ||
|
||
$client->publicAPI->track( $event, true ); | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.