Hi
I was just wondering. Where can I find the latest version of the klaviyo-php sdk?
Thanks.
Adrian
ECOVIB2D
Hi
I was just wondering. Where can I find the latest version of the klaviyo-php sdk?
Thanks.
Adrian
ECOVIB2D
Hi
Welcome to the Community.
You can find all information regarding the Klaviyo SDK here.
Thanks!
Alex
Hi
I am getting error 503 when trying to add people to my profile section.
The following code is what I use to add people to my list (Single opt in):
<?php
$Email = "second@ecovib2d.com.au";
$phone ="0413242417";
$name = "Adrian Tudini";
$age = "51";
include '/home/ecovibdc/vendor/autoload.php';
include '/home/ecovibdc/vendor/guzzlehttp/guzzle/src/Client.php';
$client = new Client();
$response = $client->request('POST', 'https://a.klaviyo.com/api/v2/list/SXxfVK/subscribe?api_key=********************************', [
'body' => '{"profiles":[{"email": "'.$Email.'"},{"phone_number": "'.$phone.'","sms_consent":true}]}',
'headers' => [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
echo $response->getBody();
?>
The basis of this code is the klaviyo API on how to subscribe a customer to a list in my klaviyo account.
Thanks.
Hi
Can you confirm that you used a Private not Public API key when working with your account and the API?
I don’t believe it is an IP block related issue but it wouldn’t hurt for you to actually work with our support team on this case since they would have better access to your account and can work with private information.
Thanks!
Alex
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.