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)));
        }
예제 #2
0
        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();
        }