check out how it's done in BlueprintsApi without passing the server_url directly:
"self.apiClient.apiServer"