laravel-mailchimp icon indicating copy to clipboard operation
laravel-mailchimp copied to clipboard

How do i make the call for the subscribe function?

Open closca opened this issue 10 years ago • 2 comments

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

closca avatar Jul 15 '14 06:07 closca

Have you tried the below?

MailchimpWrapper::lists()->subscribe('4c7d82aa69', array('email' => '[email protected]'));

HHashi avatar Jul 23 '14 16:07 HHashi

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));

loirotv avatar Nov 08 '17 16:11 loirotv