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