/**
  * Public function that gets event details of a single event object passed to it.
  *
  * @param object $registrant - a valid registrant object with a valid registrant link
  * @return object $registrant - returns registrant object with full details
  */
 public function listRegistrantDetails($registrant)
 {
     $utility = new CTCTUtility();
     $call = $utility->getApiPath() . $registrant->getLink();
     $return = $utility->httpGet($call);
     $registrant = $this->createRegistrantStruct($return['xml']);
     if (!$return) {
         return false;
     } else {
         return $registrant;
     }
 }
 protected static function validateApi()
 {
     $utility = new CTCTUtility();
     $return = $utility->httpGet($utility->getApiPath() . '/ws/customers/' . $utility->getLogin() . '/contacts?email=' . urlencode('*****@*****.**'));
     return $return['info']['http_code'] === 200 && empty($return['error']);
 }