diff --git a/examples/contacts_actions.php b/examples/contacts_actions.php index f3d83cf3..e2189037 100644 --- a/examples/contacts_actions.php +++ b/examples/contacts_actions.php @@ -68,7 +68,7 @@ function (AccessTokenInterface $accessToken, string $baseDomain) { $links = new LinksCollection(); $links->add($lead); try { - $apiClient->contacts()->unlink($contactModel, $links); + $apiClient->contacts()->link($contactModel, $links); } catch (AmoCRMApiException $e) { printError($e); die;