BaseApiClient constructor change