Skip to content

Instantly share code, notes, and snippets.

@lucapiccinelli
Created September 3, 2019 05:24
Show Gist options
  • Save lucapiccinelli/cbfbebff6ea31df3d2191671ba55171a to your computer and use it in GitHub Desktop.
Save lucapiccinelli/cbfbebff6ea31df3d2191671ba55171a to your computer and use it in GitHub Desktop.
[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