Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions class.properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class HubSpot_Properties extends HubSpot_Baseclient{

protected $API_PATH = 'contacts';
protected $API_VERSION = 'v1';
protected $API_VERSION = 'v2';

/**
* Get all Properties
Expand Down Expand Up @@ -117,10 +117,10 @@ public function update_property($name,$params){
* @throws HubSpot_Exception
**/
public function delete_property($name){
$endpoint = 'properties/'.$name;
$endpoint = 'properties/named/'.$name;

try{
return $this->new_execute_delete_request($this->get_request_url($endpoint,null));
return $this->execute_delete_request($this->get_request_url($endpoint,null));
}
catch(HubSpot_Exception $e){
print_r('Unable to delete property: '.$e);
Expand Down Expand Up @@ -241,4 +241,5 @@ public function delete_property_group($name){

}

?>
?>