Created
September 3, 2019 05:24
-
-
Save lucapiccinelli/cbfbebff6ea31df3d2191671ba55171a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FunctionName("HappyDarioBot")] | |
public static async Task<HttpResponseMessage> Run([HttpTrigger(WebHookType = "genericJson")]HttpRequestMessage req, ILogger log) | |
{ | |
log.LogInformation("DarioBot was triggered!"); | |
string jsonContent = await req.Content.ReadAsStringAsync(); | |
log.LogInformation(jsonContent); | |
return req.CreateResponse(HttpStatusCode.OK); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment