Sunday, October 13, 2013

MailChimp Api for CodeIgniter

 



Note:This requires that you have an account with MailChimp, and are able to obtain your API Key:


http://kb.mailchimp.com/article/where-can-i-find-my-api-key/




Installation:

- Download and extract

- Place MCAPI.php in the /application/libraries/ folder of your CodeIgniter project

To use:


- First, to load the library:


$config = array(
'apikey' => '' // Insert your api key
'secure' => FALSE // Optional (defaults to FALSE)
);
$this->load->library('MCAPI', $config, 'mail_chimp');

 


Then, to use:


if($this->mail_chimp->listSubscribe($list_id, $email)) {
// $email is now subscribed to list with id: $list_id
}

 

Call all other methods in this manner. For full documentation on the MailChimp API, visit:


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


Download CodeIgniter-Library-for-MailChimp



MailChimp Api for CodeIgniter

2 comments:

  1. Hello there,you may agree with me that, of the email marketing software systems tested, MailChimp was one of the most successful in delivering emails to inboxes. We used a house-designed newsletter and created an HTML-coded email using a MailChimp template. Each one arrived in every email client we sent it to – MailChimp is one of only three services we tested to have such a high success rate.You can try Email marketing platform in this regard.

    ReplyDelete