public async Task <ModelSummaryList> List(ModelSummaryQuery query = null) { var parameters = query.ToParameters(); var response = await Client .Get <ModelSummaryList>($"{ApiKeys.Endpoint}models", ApiKeys.ApiToken, parameters) .ConfigureAwait(false); return(response); }
public async Task <ModelSummaryList> List(ModelSummaryQuery query = null, CancellationToken cancellationToken = default(CancellationToken)) { var parameters = query.ToParameters(); var response = await apiConnection .Get <ModelSummaryList>("models", parameters, HttpMessageTransformer, cancellationToken) .ConfigureAwait(false); return(response); }