コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }