public async Task <SessionResponseList> List(SessionQuery query = null) { var parameters = query.ToParameters(); return(await Client.Get <SessionResponseList>($"{ApiKeys.Endpoint}sessions", ApiKeys.ApiToken, parameters)); }
public Task <SessionResponseList> List(SessionQuery query = null, CancellationToken cancellationToken = default(CancellationToken)) { var parameters = query.ToParameters(); return(apiConnection.Get <SessionResponseList>("/sessions", parameters, HttpMessageTransformer, cancellationToken)); }