You are here

function cc::delete_campaign in Constant Contact 6.3

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

* Deletes a campaign * * @access public

File

./class.cc.php, line 1303

Class

cc
@file

Code

function delete_campaign($id) {
  $this
    ->http_set_content_type('text/html');
  $this
    ->load_url("campaigns/{$id}", 'delete', array(), 204);
  if (intval($this->http_response_code) === 204) {
    return true;
  }
  return false;
}