WebTolk Joomla Extensions
113 Extensions
12 Categories
577 Versions released
853975 Downloads
Documentation for the WT AmoCRM WebhookEvent used to handle incoming AmoCRM webhooks in Joomla.
Webtolk\Amocrm\Event\WebhookEvent extends Joomla\CMS\Event\AbstractEvent.
The event expects arguments['subject'] to contain an object with a toArray() method, for example a Registry instance.
getData(): array - the original webhook payload.getAccount(): array - account data: id, subdomain, link.getContacts(): array - contacts, if present in the webhook payload.getLeads(): array - leads, if present in the webhook payload.getTasks(): array - tasks, if present in the webhook payload.getUnsorted(): array - unsorted items, if present in the webhook payload.getMessages(): array - messages, if present in the webhook payload.use Webtolk\Amocrm\Event\WebhookEvent;
public function onSomeWebhookEvent(WebhookEvent $event): void
{
$leads = $event->getLeads();
$contacts = $event->getContacts();
// Continue with your business logic.
}