| # Visual Studio Version 17 | # Visual Studio Version 17 | ||||
| VisualStudioVersion = 17.2.32526.322 | VisualStudioVersion = 17.2.32526.322 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlackRockReportFunction", "BlackRockReportFunction\BlackRockReportFunction.csproj", "{6CD8D684-3C42-400E-9921-979539C58729}" | |||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlackRockReportFunction", "BlackRockReportFunction\BlackRockReportFunction.csproj", "{6CD8D684-3C42-400E-9921-979539C58729}" | |||||
| EndProject | EndProject | ||||
| Global | Global | ||||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| HttpApiClient.DefaultRequestHeaders.Add("X-Api-Key", "*********"); | HttpApiClient.DefaultRequestHeaders.Add("X-Api-Key", "*********"); | ||||
| //making request | //making request | ||||
| } | } | ||||
| [Function("ClockifyApiIntegrationFunction")] | [Function("ClockifyApiIntegrationFunction")] | ||||
| public void Run([TimerTrigger("*/5 * * * * *")] MyInfo myTimer) | |||||
| public void Run([TimerTrigger("* * * */5 * *")] MyInfo myTimer) | |||||
| { | { | ||||
| _logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}"); | _logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}"); | ||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| namespace BlackRockReportFunction | |||||
| { | |||||
| internal class ClockifyReport | |||||
| { | |||||
| } | |||||
| } |
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| namespace BlackRockReportFunction.Models | |||||
| { | |||||
| internal class ClockifyRecord | |||||
| { | |||||
| string recordDescription { get; set; } | |||||
| TimeOnly recordTime { get; set; } | |||||
| decimal amount { get; set; } | |||||
| } | |||||
| } |
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| namespace BlackRockReportFunction.Models | |||||
| { | |||||
| internal class ClockifyReport | |||||
| { | |||||
| string ReportName { get; set; } | |||||
| string ReportDescription { get; set; } | |||||
| List<Person> reportPeople { get; set; } | |||||
| } | |||||
| } |
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| namespace BlackRockReportFunction.Models | |||||
| { | |||||
| internal class Person | |||||
| { | |||||
| string FullName { get; set; } | |||||
| List<ClockifyRecord> records { get; set; } | |||||
| } | |||||
| } |