static async Task Main(string[] args) { var authHandler = new APIAuthHandler(tokenUrl, scope, clientId, clientSecret); using (var authorizedHttpClient = new HttpClient(authHandler)) { var apiClient = new DataAPIClient(nodeUrl, authorizedHttpClient); // Get data points within the last 7 days ICollection <ReadValueDoubleModel> data = await apiClient.GetValuesAsDoubleAsync(dataStreamId, DateTime.Now.AddDays(-7), DateTime.Now, "asc", pageNumber : null, pageSize : null); foreach (var item in data) { Console.WriteLine($"{item.Timestamp}: Value {item.Values.FirstOrDefault()}"); } } }