示例#1
0
 /**
  * @param Contact $contact
  * @return mixed
  * @throws APIException
  */
 public function delete(Contact $contact)
 {
     $response = $this->gandi->delete($this->api_key, $contact->getHandle());
     if ($response) {
         return $response;
     } else {
         throw new APIException("Cannot delete contact.");
     }
 }