Ashwin Parmar
Ashwin Parmar

Reputation: 3045

How can I add New List to my MailChimp Account By programming in PHP?

I have mailchimp account, I would like to add new list to my mailchimp account using PHP Library for MailChimp.

I have coded the following for add new Group to the given list.

$mailChimp = new MCAPI($api_key);
$mailChimp->listInterestGroupAdd($mylistId, $group_name);

above code is use for Add new Group into the existing List.

Can I add New List, what is the method available to add new List? Can I use like this?

$mailchimp->listAdd($listname);

Here is the documentation of Mailchimp API v1.3 and all the List related functions But I have not get any method which will allow us to add new List.

http://apidocs.mailchimp.com/api/1.3/#listrelated

Upvotes: 5

Views: 3193

Answers (2)

Samir
Samir

Reputation: 892

I think this can not be done using the API.

You can make list as that you wanted in web-app and also check the group to structure the list data.

Upvotes: 2

georgez
georgez

Reputation: 735

It looks like the MailChimp v1.3 API is deprecated. You should use the newer v2.0 version. I checked the API Documentation. I couldn't find the function that you were looking for.

Upvotes: 2

Related Questions