function cc::cc in Constant Contact 6.2
Same name and namespace in other branches
- 6.3 class.cc.php \cc::cc()
- 7.3 class.cc.php \cc::cc()
* Constructor method * Sets default params * Constructs the correct API URL * Sets variables for the http_ methods * *
Parameters
string The username for your Constant Contact account: * @param string The password for your Constant Contact account * @param string The API key for your Constant Contact developer account * * @access public
File
- ./
class.cc.php, line 163
Class
- cc
- @file
Code
function cc($api_username, $api_password, $api_key) {
$this->api_username = $api_username;
$this->api_password = $api_password;
$this->api_key = $api_key;
$this->api_url .= '/ws/customers/' . rawurlencode($api_username) . '/';
$this->api_uri .= '/ws/customers/' . urlencode($api_username) . '/';
$this->http_user = $api_key . "%" . $api_username;
$this->http_pass = $api_password;
$this
->http_set_content_type($this->http_default_content_type);
}