function cc::cc in Constant Contact 6.3
Same name and namespace in other branches
- 6.2 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 * If you want to change the APi key use the * *
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 (deprecated) * * @access public
See also
set_api_key() method
File
- ./
class.cc.php, line 228
Class
- cc
- @file
Code
function cc($api_username, $api_password) {
$this->api_username = $api_username;
$this->api_password = $api_password;
$this->api_url .= '/ws/customers/' . rawurlencode($api_username) . '/';
$this->api_uri .= '/ws/customers/' . urlencode($api_username) . '/';
$this->http_user = $this->api_key . "%" . $api_username;
$this->http_pass = $api_password;
$this
->http_set_content_type($this->http_default_content_type);
}