public async Task <IActionResult> Get( [HttpTrigger(AuthorizationLevel.Function, "get", Route = "players")] HttpRequest req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); var players = await _googleSheetProvider.GetPlayers(); return((ActionResult) new OkObjectResult(JsonConvert.SerializeObject(players))); }
public async Task PlayerImport([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, ILogger log) { log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}"); var data = await _provider.GetPlayers(); }