function getById($id) { $endpoint = "https://api.hubapi.com/contacts/v1/contact/vid/{$id}/profile"; return $this->client->request('get', $endpoint); }