| 1 | <?php |
||
| 5 | class Events extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Trigger a custom event. |
||
| 9 | * |
||
| 10 | * This only works for enterprise accounts. |
||
| 11 | * |
||
| 12 | * @param string $hubId Your HubSpot portal ID ("Hub ID"). You can find your Hub ID in the |
||
| 13 | * footer of the HubSpot UI, or in the URL. For example, in this URL: |
||
| 14 | * "https://app.hubspot.com/reports/56043/events/" your Hub ID is "56043". |
||
| 15 | * @param string $eventId |
||
| 16 | * @param string $contactEmail Contact email triggering the event. |
||
| 17 | * @param float $contactRevenue Optional - the monetary value this event means to you. |
||
| 18 | * @param array $contactProperties Optional - array of new contact properties. |
||
| 19 | * @return \SevenShores\Hubspot\Http\Response |
||
| 20 | */ |
||
| 21 | function trigger( |
||
| 44 | } |
||
| 45 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.