Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i make the call for the subscribe function? #24

Open
closca opened this issue Jul 15, 2014 · 2 comments
Open

How do i make the call for the subscribe function? #24

closca opened this issue Jul 15, 2014 · 2 comments

Comments

@closca
Copy link

closca commented Jul 15, 2014

I have made in this way
MailchimpWrapper::lists()->subscribe('4c7d82aa69','mail@mail.com');
but i get error:
Validation error: {"email":"Please enter a struct/associative array"}

Thanks

@HHashi
Copy link

HHashi commented Jul 23, 2014

Have you tried the below?

MailchimpWrapper::lists()->subscribe('4c7d82aa69', array('email' => 'mail@mail.com'));

@loirotv
Copy link

loirotv commented Nov 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants