function constant_contact_auth in Constant Contact 6.2
Same name and namespace in other branches
- 6.3 constant_contact.ajax.php \constant_contact_auth()
Authenticates with the API This is used for the admin settins page to check the details they entered
1 call to constant_contact_auth()
File
- ./
constant_contact.ajax.php, line 10
Code
function constant_contact_auth($username, $password, $api_key) {
if ($username && $password && $api_key) {
require_once './class.cc.php';
$cc = new cc($username, $password, $api_key);
if ($cc
->get_service_description()) {
return $cc;
}
}
return false;
}