PHP Class SevenShores\Hubspot\Resources\Events

Inheritance: extends Resource
Show file Open project: fungku/hubspot-php

Public Methods

Method Description
trigger ( string $hubId, string $eventId, string $contactEmail = null, float $contactRevenue = null, array $contactProperties = [] ) : Response Trigger a custom event.

Method Details

trigger() public method

This only works for enterprise accounts.
public trigger ( string $hubId, string $eventId, string $contactEmail = null, float $contactRevenue = null, array $contactProperties = [] ) : Response
$hubId string Your HubSpot portal ID ("Hub ID"). You can find your Hub ID in the footer of the HubSpot UI, or in the URL. For example, in this URL: "https://app.hubspot.com/reports/56043/events/" your Hub ID is "56043".
$eventId string
$contactEmail string Optional - contact email.
$contactRevenue float Optional - the monetary value this event means to you.
$contactProperties array Optional - array of new contact properties.
return SevenShores\Hubspot\Http\Response