diff --git a/class.properties.php b/class.properties.php index bb9c7b9..3a52f62 100644 --- a/class.properties.php +++ b/class.properties.php @@ -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 @@ -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); @@ -241,4 +241,5 @@ public function delete_property_group($name){ } -?> \ No newline at end of file +?> +