SevenShores\Hubspot\Resources\Workflows::pastEventsForContact PHP Method

pastEventsForContact() public method

Get past events for contact from a workflow.
public pastEventsForContact ( integer $workflow_id, integer $contact_id, array $params = [] ) : Response
$workflow_id integer
$contact_id integer
$params array Optional parameters.
return SevenShores\Hubspot\Http\Response
    function pastEventsForContact($workflow_id, $contact_id, $params = [])
    {
        $endpoint = " /automation/v2/workflows/{$workflow_id}/logevents/contacts/{$contact_id}/past";
        $queryString = build_query_string($params);
        return $this->client->request('get', $endpoint, [], $queryString);
    }