SevenShores\Hubspot\Resources\EmailEvents::all PHP Method

all() public method

Get email events for a campaign or recipient.
public all ( array $params = [] ) : Response
$params array Optional parameters
return SevenShores\Hubspot\Http\Response
    function all($params = [])
    {
        $endpoint = "https://api.hubapi.com/email/public/v1/events";
        $queryString = build_query_string($params);
        return $this->client->request('get', $endpoint, [], $queryString);
    }