veda-consulting-company / uk.co.vedaconsulting.mailchimp

Other
22 stars 43 forks source link

#241 Make sync from Mailchimp -> Civi work with multiple mailchimp groups (api v3?) #296

Closed samuelsov closed 4 years ago

samuelsov commented 6 years ago

This patch allows to take advantage of the new structure sent by mailchimp regarding the groups in Mailchimp list. It is stored in ['merge']['GROUPINGS'] instead of ['merge']['INTERESTS']. Groupings contains all the groups contrary to Interests that contains only the first group of a Mailchimp list.

I don't see the need to keep backward compatibility (the ability to read Interests if Groupings is missing) because I think Groupings is the new way of doing in api v3 and couldn't be missing. I'm no expert of Mailchimp though so if someone can confirm that, it could be great.