Integrating Logic Apps with Azure Functions
In the previous recipe, you learned how to integrate different connectors using Logic Apps. In this recipe, we will implement the same solution that we implemented in the previous recipe by just moving the conditional logic that checks the follower count to Azure Functions.
Getting ready
Before moving further we will perform the following steps:
- Create a SendGrid account (if not created already), grab the SendGrid API key, and create a new key in the
Application settings
of the function app. - Install Postman to test the
GenericWebHook-C#
trigger. You can download the tool from https://www.getpostman.com/.
How to do it...
- Create a new function by choosing the
GenericWebHook-C#
trigger and name itValidateTwitterFollowerCount
. - Replace the default code with the following:
#r "Newtonsoft.Json" #r "SendGrid" using System; using System.Net; using Newtonsoft.Json; using SendGrid.Helpers.Mail; public static...