Build the future of communications.
Start Building for Free

azure functions posts

  • By Rahul Rai
    Implementing Stateful Work-In-Progress Pattern with Durable Azure Functions Implement Stateful Work-In-Progress Pattern with Durable Azure Functions

    In some cases, you need to gather chunks of data from multiple sources and submit the final information package to the server for processing. The work-in-progress (WIP) pattern enables you to gather lots of data over a long period of time before reviewing it and submitting the data collected for processing.

    The key component of the WIP pattern is a persistent “work document” that you keep enriching with input over time and finally submit to the server after a review. The work document is not a single entity, and the pattern allows you to manage several work documents simultaneously. For example, you might want to create individual work documents for every customer requesting approval for credit purchases.

    A work-in-progress application should support the following operations:

    1. Create document: Create a new work document.
    2. Read document: Get a single work document.
    3. List documents: Get the list of work documents. …
    Read More
  • By Similoluwa Adegoke
    Respond to Twilio Webhooks using Azure Functions Respond to  Twilio Webhooks  using Azure Functions

    Azure Functions is built on the concept of Triggers and Bindings, and while there's a Twilio binding for sending SMS, there is no trigger for receiving messages or calls. However, Azure Functions does have an HTTP trigger which you can use to receive webhook requests from Twilio.

    In this tutorial, you will learn how to respond to Twilio webhooks using Azure Functions. You will learn what webhooks are, how to set up an Azure Function, and then use your Azure Function app to respond to a Twilio SMS webhook.

    Prerequisites

    You will need the following things to follow along:

    Read More
  • By Niels Swimberghe
    How to Send Emails using C# .NET with Azure Functions and SendGrid Bindings How to send email with C# .NET & Azure Functions using SendGrid Bindings

    Azure Functions has its own opinionated way of developing applications based on triggers, input bindings, and output bindings. Azure supports two Twilio products using output bindings: Twilio Programmable Messaging for sending SMS and Twilio SendGrid for sending emails.

    In this tutorial, you'll learn how to send emails with C# .NET using Azure Functions and SendGrid bindings.

    If you also want to send SMS, follow this guide on how to send SMS using Azure Functions!

    Prerequisites

    You will need these items to follow along:

    You can find the source code for this tutorial on GitHub. Use the source code if you run into any issues, or submit an issue on …

    Read More
  • By Niels Swimberghe
    How to send SMS with C# .NET and Azure Functions using the Twilio Output Binding How to send SMS with C# .NET & Azure Functions using Twilio Output Binding

    Azure Functions has its own opinionated way of developing applications based on triggers, input bindings and output bindings. Azure supports two Twilio products using output bindings: Twilio Programmable Messaging for sending SMS and Twilio SendGrid for sending emails.
    In this tutorial, you'll learn how to send text messages with C# .NET using Azure Functions and Twilio binding.

    Prerequisites

    You will need these items to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK
    • Azure Functions Core Tools
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, or JetBrains Rider)
    • A free Twilio account (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)

    Get started with Twilio

    You will need to set up a couple of things with Twilio before developing the Azure function:

    • If you don't already have a Twilio phone number, go and buy a …
    Read More
  • By April Speight
    Create a NASA Astronomy Picture of the Day Scheduled SMS with Python, Twilio and Azure Functions Create a NASA Astronomy Picture of the Day Scheduled SMS with Python and Azure Functions

    Recently, my friends and I were invited to NASA to take part in a behind-the-scenes tour and briefing on five new research campaigns that will take to the field in 2020 to explore questions critical to understanding our home planet!

    With so much to look forward to, I decided to create a countdown for the days leading up to our road trip! Rather than execute the group chat countdown manually, I decided to get a little help from my friends at Twilio, Azure Functions and NASA's astronomy picture of the day API. My goal was to accomplish the following:

    • Countdown the number of days remaining until the trip to NASA
    • Include NASA's astronomy picture of the day
    • Schedule a message to be sent every morning at 9AM

    Here's an example of a message:

    scheduled sms demo

    In this tutorial I’m going to show you how to create a countdown SMS that sends a …

    Read More
  • By Dotun Jolaoso
    How to Validate Phone Numbers using Python, Azure Functions and Twilio How to Validate Phone Numbers using Python, Azure Functions and Twilio

    Phone number validation is the process of verifying a phone number is valid and in the right format. It’s an important aspect and a popular measure for applications and services that deal with collecting phone numbers from users. In this tutorial we’ll use Python and Azure Functions to develop a simple serverless HTTP function that integrates with Twilio’s Lookup API to validate phone numbers.

    Technical Requirements

    To follow along, you’ll need the following:

    Set up an Azure Function App

    To get started, we need to create an …

    Read More
  • By Matthew Gilliard
    Wake up to Useful Daily Messages with Java and Azure Functions Wake up to Useful Daily Messages with Java and Azure Functions

    I wake up slowly. I often need a few minutes to remember where I am and what day it is. I usually have my phone handy - it’s my alarm clock, too. But then I decide to check the weather, and before I know it I’ve got carried away on Twitter, Reddit, email and so on. It takes me ages to start getting ready for the day. I decided to build a small app which would send me an SMS every morning. I can see what the day has in store without getting involved in anything online.

    I decided to use Azure Functions with a TimerTrigger to run some Java code every morning. The code pulls data from wttr.in and affirmations.dev, formats it into a dense (read: emoji-laden) message and sends it to me:

    An SMS in my messaging app: Good morning (weather: rain showers, temp +10 Celsius), Today is Monday, October 7. Remember you are a capable human being. Have a great day (rainbows and sparkles)

    In this post I’ll walk you through how to create this and customise it …

    Read More
  • By Nathaniel Okenwa
    How I avoid getting trapped on the sweltering London Underground with Twilio and Azure Functions Sending SMS Reminders with Azure Functions, Twilio and Node - Blog Header

    There’s nothing worse than being stuck on the trains in London during rush hour when there are delays. Summer is wrapping up in London, but if you want to get a really cheap sauna experience, just head onto the Central Line during peak rush hours on a day when there are train delays. I know this because my miserable self has been trapped, sweltering on a tube with an armpit in my face, more times than I care to remember.

    Crowded Japanese Train

    If only there was a way that I could get a daily warning about the status of the tube lines I use to get to work every day. Well, thanks to Azure functions, Twilio SMS Output Bindings and the handy Transport for London (TFL) API I can make that a reality.

    Before We Begin

    Before we get started, this is what you need:

    • A Free Azure Account
    • An Azure …
    Read More
  • By Layla Porter
    Daily Dog with C#, WhatsApp and Azure functions 822m66DdV5S5TrfkutIagXi-tELxwMf92-KOdnf64XbhS8GoCdTYklLhMJiNKi4QTNCZ_nb50f7I9582qI1iZcOiiJ1yuOBIejZ5T5nNjn0QyoKQWY0v843XjJvxYPum-kQsq0Q7

    I love Bing Image of the day, it always makes me smile! I also love dogs, so I thought why not combine the two and create an app that sends a daily dog picture via WhatsApp.

    This post will take you through all the steps to create an azure scheduled function in C#, make a call to the Dog API to retrieve a photo and then send the returned image to a number via the Twilio API for WhatsApp.

    This post assumes some base knowledge of C# and RESTful APIs.

    To get started, we will need:

    Create an Azure Function

    From the Azure portal, click the Create a resource button, …

    Read More
  • By Devin Rader
    Use Azure Functions and Twilio SMS to know: Will it Rain Today? 8yf3DI9q3T04ILu-x88AeMjsNpbgbaETyS_SgFbM6wimXN9RXOdA5P2_1UHPoe62gZni1rOhbmib9eWzWbYRAkaIQ4wSOuMMnhX_owhwG6kkfpwFJI1fNdP5iTIuq_6BB_CimEEF

    Will you need an umbrella today? Don't know? That's easy to fix by looking out the window or by using Azure Functions and its Twilio SMS output binding. In this post, I'll show you how with just a few lines of code you can have a text message arrive each morning which lets you know if it might rain that day.

    You can build along with me by signing up for free Azure and free Twilio accounts.

    Create an Azure Function

    We'll start by creating a new Azure Function App in the Azure Portal.

    Once created continue configuring the Function App by adding environment variables to hold our Twilio credentials. Open the Applications Settings for the Function App.

    Add two new keys named TwilioAccountSid and TwilioAuthToken, setting their values to your Twilio AccountSid and AuthToken respectively. You can find your Twilio credentials in the Twilio Console. …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.