Forum

Thread tagged as: Suggestions, MailChimp

Mailchimp import maximum of 10 lists

Hi,

Ran into a little problem that threw me for a few minutes when importing MailChimp lists. There is a default limit of 10 set for the /lists endpoint from MailChimp which meant that only some of the lists were imported into Perch (this client has a lot of lists!). The same is true for both the Perch 2 and 3 versions of the add-on.

I managed to get around this by temporarily editing line 23 of PerchMailChimp_Lists.class.php to be:

$lists = $MailChimpAPI->get("lists", ['count' => 30]);

A future update could add a setting to control what number of lists to import.

This is by no means high priority - I thought it may be worth reporting in case someone else encounters the same issue.

Thanks

James Wigger

James Wigger 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you find you're able to do that without hitting timeouts?

In this instance I was able to, though it was only once to fetch the lists after installing the app (hitting the 'sync' button). I am not sure what would happen with the other tasks the application runs or over a long term period.