Skip to content

Commit

Permalink
Merge pull request #172 from DmitryBerdnikov/master
Browse files Browse the repository at this point in the history
unlink to link in for contacts examples
  • Loading branch information
bessudnov authored Nov 8, 2020
2 parents 1e8ea98 + 5d7238a commit e02f0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/contacts_actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e02f0aa

Please sign in to comment.