Skip to content

Commit

Permalink
added new method _UpdateInterest to WebApi.php (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbloching authored May 4, 2020
1 parent d40cf89 commit fc3fc89
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Visionline/Crm/WebApi/WebApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,31 @@ public function _GetInterests($kontaktIds, $filterByStatus = null)
return $result;
}

/**
* Calls the webservice method UpdateInterest with the specified arguments
* @param Interest interest The interest to update.
* @throws \Exception if a remote error occurs
*/
public function _UpdateInterest($interest)
{
try
{
$result = $this->client->UpdateInterest($this->connection, $interest);

$this->debug('UpdateInterest - Result is', $result);
$this->debug('UpdateInterest - Request was', $this->client->__getLastRequest());
$this->debug('UpdateInterest - Response was', $this->client->__getLastResponse());
}
catch (\Exception $e)
{
$this->debug('UpdateInterest - Request was', $this->client->__getLastRequest());
$this->debug('UpdateInterest - Response was', $this->client->__getLastResponse());

throw $e;
}
return $result;
}

/**
* Calls the webservice method GetInterests with the specified arguments.
*
Expand Down

0 comments on commit fc3fc89

Please sign in to comment.