laravel-mailchimp
laravel-mailchimp copied to clipboard
How do i make the call for the subscribe function?
I have made in this way MailchimpWrapper::lists()->subscribe('4c7d82aa69','[email protected]'); but i get error: Validation error: {"email":"Please enter a struct/associative array"}
Thanks
Have you tried the below?
MailchimpWrapper::lists()->subscribe('4c7d82aa69', array('email' => '[email protected]'));
Hi!
How do I set extra params (name, surname...)
I've tried this but it only saves the email:
MailchimpWrapper::lists()->subscribe($list_id, array('email' => $item->descripcion, 'Name' => $registro->name, 'Surname' => $registro->surname, 'id' => $registro->id));