Skip to content

A Mailchimp API v2 wrapper for Codeigniter based on great work by Drew McLellan

Notifications You must be signed in to change notification settings

benbowler/codeigniter-mailchimp-api-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter MailChimp API v2 Wrapper

Build off the great wrapper by Drew McLellan drew.mclellan@gmail.com - Super-simple, minimum abstraction MailChimp API v2 wrapper, in PHP.

Requires curl.

Examples

List lists (lists/list method)

<?php
$this->load->library('Mailchimp_library');
$lists = $this->Mailchimp_library->call('lists/list');
var_dump($lists):

Subscribe someone to a list

<?php
$this->load->library('Mailchimp_library');
$result = $this->Mailchimp_library->call('lists/subscribe', array(
				'id'                => 'b1234346',
				'email'             => array('email'=>'davy@example.com'),
				'merge_vars'        => array('FNAME'=>'Davy', 'LNAME'=>'Jones'),
				'double_optin'      => false,
				'update_existing'   => true,
				'replace_interests' => false,
				'send_welcome'      => false,
			));
print_r($result);

About

A Mailchimp API v2 wrapper for Codeigniter based on great work by Drew McLellan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages