function getById($id, $created) { $endpoint = "https://api.hubapi.com/email/public/v1/events/{$created}/{$id}"; return $this->client->request('get', $endpoint); }