Mailchimp integration with php

Please Download MCAPI class from git url given below


How to use mailchimp php class and manipulate user data.


  require_once 'MCAPI.php';

  // grab an API Key from
  $api = new MCAPI($apiKey);

  // grab your List's Unique Id by going to
  // Click the "settings" link for the list - the Unique Id is at the bottom of that page. 
  $list_id = "58d58d54d5s";
  $merge_vars = Array(                       
	'FNAME' => 'First Name'

  if ($api->listSubscribe($list_id, $useremail, $merge_vars) === true) {
	// It worked!
  } else {
	// An error ocurred, return error message