Build the future of communications.
Start Building for Free

Serverless posts

  • By Lizzie Siegle
    Pull Congressional Data via SMS with the Congress API and JavaScript blog header

    Congress recently came out with an official API so the public can "view, retrieve, and re-use machine-readable data from collections available on Congress.gov!" Read on to learn how to read congressional data using the Congress API, Twilio Functions, and the Twilio Serverless Toolkit.

    Text "bill", "amendment", or "summaries" to +12029337044 to receive data about a random bill or amendment!

    bill example

    Prerequisites

    1. A Twilio account - sign up for a free one here
    2. A Twilio phone number with SMS capabilities - configure one here
    3. A Congress.gov API Key – get one here
    4. Postman (you could alternatively make cURL requests from the command line)
    5. Node.js installed - download it here

    Make a congress.gov Requ …

    Read More
  • By Lizzie Siegle
    Write Segment Data to a Notion Database segment data to notion database

    In Data Processing, Getting Data is one task and Saving it is another. Segment makes it easy to collect, prepare, and clean data, but what about storing it for future use or analysis? Read on to learn how to use the Twilio Serverless Toolkit to write Segment data about page visits to a Notion database using Notion's API, which is especially handy if you're a big Notion user.

    notion database page views

    Prerequisites

    To follow along with this post, you need these things:

    Read More
  • By Dainyl Cua
    Get Horror Movie Suggestions with Twilio and the TMDB API horrormovies

    The month of October brings along many festivities—dressing up in costumes, going trick-or-treating, stopping by a pumpkin patch, or visiting a festival! For those who enjoy a good scare, maybe check out a haunted house and settle down at home with a nice, spooky movie. But what if you don’t know what to watch? Searching through the thousands of movies on IMDB can take a lot of time, and sometimes your favorite streaming service isn’t recommending the movies for you.

    With the help of TMDB’s API and both Twilio’s Programmable Messaging API and Functions, you can set up your own horror movie recommendation bot after doing a bit of coding.

    Prerequisites

    For this tutorial, you will need:

    Set up your developer environment

    Before you can write …

    Read More
  • By Ashley Boucher
    Build an Emergency Contact Notification System with Twilio SMS Copy of C04 Blog Text

    September is National Disaster Preparedness Month. To help yourself stay prepared, you’ll learn how to build an app that will send an SMS to all of your emergency contacts with just one text message. If you find yourself in a difficult or emergent situation, having the ability to notify multiple people with one quick message might be able to get you help faster or reunite your family sooner.

    Prerequisites

    To get started with this tutorial, you’ll need the following:

    Build your app with Twilio Functions

    Your app will run on Twilio Functions. Twilio Functions is a serverless environment that lets you deploy backend services without the overhead of setting up a server. With Twilio Functions, you can develop locally and deploy to production through the Twilio …

    Read More
  • By Angela Wieber
    Voice Biometrics Using Twilio Serverless and VoiceIt Voice Biometrics

    Biometrics technology is frequently used for authentication and identification purposes across industries, including financial services, healthcare, and the humanitarian sector. Integrating biometrics into development and humanitarian assistance programs can help to identify the people targeted for assistance, reduce fraud and de-duplication, and simplify registration and identification.

    The World Food Programme uses biometrics to make sure that the right assistance reaches the right people. Vodacom Tanzania uses voice biometrics to enable people with disabilities to access their products and services more easily. Chase Bank uses Voice ID to identify callers accessing personal bank account information. Another interesting fact about voice biometrics is that if compromised, they can be invalidated by enrolling a new phrase. If your face, fingerprint, or iris data is hacked you cannot invalidate the data, and your identity is lost forever. It's complicated, however – we recognize that the use of biometrics has pros and cons, and it's …

    Read More
  • 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 Kelley Robinson
    Twilio VerifyとTwilio Functionsによるサーバーレス電話認証 Serverless Verify

    この記事はTwilioデベロッパーエバンジェリストのKelley Robinsonが執筆したこちらの記事(英語)を日本語化したものです。日本語化作業時点(2022年8月)の状況に合わせて記事内のコードを一部、変更しています。

    セキュリティは誰もが気になる項目でしょう。その中で電話認証はアプリケーションの保護やbotアカウントの防止に役立つ簡単な方法と言えます。そのため、ユーザーの電話番号にワンタイムパスワードを送信して所有番号の検証をするやり方は、製品の登録時や電話番号の初回登録時によく使われる方法です。

    ユーザーの電話番号を確認することで、不正の低減や通知の信頼性を高められます。今回は、TwilioのサーバーレスファンクションとTwilio Verify APIを使用してWebアプリケーションから電話番号を検証する方法を紹介します。

    クイックリンク:

    Twilio Verifyをアプリケーションに追加するための前提条件

    この記事に沿ってコーディングを行う際に必要なもの:

    Twilioコンソールで作成したVerifyサービスのService SID(先頭がVA)を控えておきます。

    Verify Service SID

    Twil …

    Read More
  • By Hayden Powers
    How to Build a Low-Code SMS RSVP System with Airtable, Twilio Functions, and Twilio Studio How to build a low code SMS RSVP system with Airtable Twilio Functions and Twilio Studio

    Airtable is a great tool for prototyping applications that require a database. However, when using multiple API’s in an application, it can get complicated and tricky to juggle all the functions and parameters from different services.

    In this post, we will make a simple, serverless RSVP system with Twilio Functions and Twilio Studio that will scan an Airtable guest list for phone numbers, send a personalized message to each of them, and then update our Airtable records with the responses from each of the invitees as to whether or not they wish to confirm their attendance. Let’s get started!

    Prerequisites

    Before you begin, you will need a few things:

    Airtable setup and layout

    Let’s first start with what we need from …

    Read More
  • By Shawn Stern
    Build a Serverless Call Routing Application with Time Zone Management in JavaScript Build a Serverless Call Routing Application with Time Zone Management in JavaScript

    Time of day routing allows you to manage where incoming calls are directed based on time periods and which day it is. For example, routing calls to a support line during business hours or an after hours voicemail to maximize customer satisfaction. This can get extra tricky when the server that’s running your call routing app is located in a different time zone than your business (and this is extremely likely)!

    In this tutorial, you’ll be building an app that routes incoming calls depending on the day, time of day relative to your business hours, and your business’ time zone. This will all run on Twilio’s Serverless infrastructure, so you won’t need to worry about hosting.

    Prerequisites

    Read More
  • By Miguel Grinberg
    How to Play Video Files in a Twilio Video Call How to Play Video Files in a Twilio Video Call

    A common need in video calling applications is to allow a user to play a media file for the other participants in the call. This can enable, for example, a teacher or doctor to share a recording with the call attendees.

    In this article I will show you how a participant in a Twilio Video call can share video and audio content in formats such as mp4 or webm.

    The MediaStream API

    The JavaScript version of the Twilio Video SDK uses existing APIs in the browser to obtain access to the camera and microphone. More specifically, it uses the MediaDevices.getUserMedia() function to access MediaStream objects for these devices, which expose the raw video and audio tracks that are then published to the video call.

    But the MediaStream APIs cover much more than webcams and microphones and can be used to obtain MediaStream objects from other sources. For example, the …

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