Skip to content

jamesgiang/CodeIgniter-Library-for-MailChimp-API-v1.3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

CodeIgniter Library for MailChimp API v1.3
MailChimp API v1.3
The CodeIgniter Way

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 libraries/MCAPI.php in the /application/libraries/ folder of your CodeIgniter project
- Place config/MCAPI.php in the /application/config/ folder of your CodeIgniter project


To use:

- 1. Setup your config/MCAPI.php:

	$config['mcapi_api'] = ''; // Insert your api key
	$config['mcapi_secure'] = FALSE; // Optional (defaults to FALSE)

- 2. Load MCAPI library:

	$this->load->library('MCAPI');
        
- 3. Use:
   
        if($this->mcapi->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/

About

MailChimp API v1.3 - The CodeIgniter Way!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages