-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
36 lines (22 loc) · 904 Bytes
/
README
File metadata and controls
36 lines (22 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 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/