You are here

function MCAPI::MCAPI in Mailchimp 6.2

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::MCAPI()
  2. 5 MCAPI.class.php \MCAPI::MCAPI()
  3. 6 MCAPI.class.php \MCAPI::MCAPI()
  4. 7 MCAPI.class.php \MCAPI::MCAPI()

Connect to the MailChimp API for a given list.

Parameters

string $apikey Your MailChimp apikey:

string $secure Whether or not this should use a secure connection:

File

./MCAPI.class.php, line 38

Class

MCAPI

Code

function MCAPI($apikey, $secure = false) {
  $this->secure = $secure;
  $this->apiUrl = parse_url("http://api.mailchimp.com/" . $this->version . "/?output=php");
  $this->api_key = $apikey;
}