hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

ErrorException' with message 'Missing argument 3 for Mailchimp_Lists::updateMember() #15

Closed n3rotech closed 10 years ago

n3rotech commented 10 years ago

this is my code mailchimp: MailchimpWrapper::lists()->updateMember('22ea573b49', array('email' => $CheckQuery['emailAddress'], array('EMAIL' => $userdata['signupemail'], 'GROUPINGS' => array(array('id' => '13517', 'groups' => array('grup1', 'grup2'))))));

any idea what is missing?because im look in List.php but still get that error.

thank you

hugofirth commented 10 years ago

@n3rotech I see you close these fairly quickly (which I assume means you find a solution). Thats great! Is there any chance, however, that you could comment in the issue you open to detail your solution? That way when someone else runs into the same problem they can refer to your issue. Or, if its something I could better work around, I can do that.

Its hard to do either if I don't know anything about the problem beyond the initial issue.

n3rotech commented 10 years ago

ohh thank you for remind me, i have typo for this ")", this is the solution : MailchimpWrapper::lists()->updateMember('22ea573b49', array('email' => $CheckQuery['emailAddress']), array('EMAIL' => $userdata['signupemail'], 'GROUPINGS' => array(array('id' => '13517', 'groups' => array('grup1', 'grup2')))));

you can look the different after ['emailAddress'] now with code before.