Closed LZL0 closed 4 years ago
I am getting 404 when I am attempting to add a new user.
Any help is appreciated.
$email = 'testemail@example.com'; $data = array('$email' => $email); try { $klaviyo = new KlaviyoAPI(KLAVIYO_API_KEY); $response = $klaviyo->profile->edit('', $data); var_dump($response); } catch(Exception $e) { var_dump($e->getMessage()); }
Solved! It should be instead: $klaviyo->event->identify($data);
$klaviyo->event->identify($data);
I am getting 404 when I am attempting to add a new user.
Any help is appreciated.