public async Task <VocabulariesSummary> List(VocabulariesQuery query) { var parameters = query.ToParameters(); return(await Client.Get <VocabulariesSummary>($"{ApiKeys.Endpoint}vocabulary", ApiKeys.ApiToken, parameters).ConfigureAwait(false)); }
public async Task <VocabulariesSummary> List(VocabulariesQuery query, CancellationToken cancellationToken = default(CancellationToken)) { var parameters = query.ToParameters(); return(await apiConnection.Get <VocabulariesSummary>($"/vocabulary", parameters, HttpMessageTransformer, cancellationToken).ConfigureAwait(false)); }