You are here

function cc::delete_contact in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 class.cc.php \cc::delete_contact()
  2. 6.2 class.cc.php \cc::delete_contact()

Deletes a contact.

@access public

1 call to cc::delete_contact()
cc::query_contacts in ./class.cc.php
Queries the API for contacts with a similar email address to the input.

File

./class.cc.php, line 949
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

Code

function delete_contact($id) {
  $this
    ->http_set_content_type('text/html');
  $this
    ->load_url("contacts/{$id}", 'delete', array(), 204);
  if (intval($this->http_response_code) === 204) {
    return TRUE;
  }
  return FALSE;
}