dominicsayers / mailchimp_api_v3

A simple gem to interact with Mailchimp through their API v3
Other
20 stars 9 forks source link

How to update interests? #20

Open pruzicka opened 6 years ago

pruzicka commented 6 years ago

Hi, I've managed to create new member and add interest group, also update mail/name etc. via API, but I have no clue how to update interest group. I've tried student.interests["b945c0efaa"=>true] also I've tried to create new hash and update like student.interests.update(new_hash) yet no success. Thank you

Petr R.

pruzicka commented 6 years ago

...OK, so I've got it. student.update interests: {"b945c0efaa" => true} That is in full glory Mailchimp.connect.lists('list_id').members('some_email').update interests: {"b945c0efaa" => true} Thanks