So I’ve this code but it dont add the sms consent to the site, only email consent is working, Does anyone know how to do it?
public function chnages()
{
$client = new Klaviyo('Klaviyo_Private_key', 'Klaviyo_Public_key');
$profile = new KlaviyoProfile(
array(
'$email' => 'thomas2.jefferson@mailinator.com',
'$first_name' => 'Thomas12',
'$last_name' => 'Jefferson',
'$consent' => ["sms","email"],
'sms_consent' => True,
'$phone_number' => "12345678900",
'Plan' => 'Premium'
)
);
$client->lists->addSubscribersToList('LIST_ID', array($profile));
}