PHP 클래스 SevenShores\Hubspot\Resources\Events

상속: extends Resource
파일 보기 프로젝트 열기: fungku/hubspot-php

공개 메소드들

메소드 설명
trigger ( string $hubId, string $eventId, string $contactEmail = null, float $contactRevenue = null, array $contactProperties = [] ) : Response Trigger a custom event.

메소드 상세

trigger() 공개 메소드

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.
리턴 SevenShores\Hubspot\Http\Response