function MCAPI::MCAPI in Mailchimp 6.2
Same name and namespace in other branches
- 5.2 MCAPI.class.php \MCAPI::MCAPI()
- 5 MCAPI.class.php \MCAPI::MCAPI()
- 6 MCAPI.class.php \MCAPI::MCAPI()
- 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
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;
}