Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Pooja Srinath
    Connect to Your Local Database Using Twilio Functions Functions MySQL Local

    In this post, you’ll learn how to connect to a local or remote database such as MySQL and make queries using Twilio Functions.

    Prerequisites and Items accomplished

    Working with Twilio Functions

    Twilio Functions (Beta) provides a complete runtime environment for executing your Node.js scripts. Functions integrates the popular package manager npm and provides a low latency Twilio-hosted environment for your application.

    Building apps with Functions

    Here's an example of what a Functions script looks like:

    exports.handler = function(context, event, callback) {
    
      // code
    
      // invoke callback function
    
    }
    

    The handler method is the starting point of your function, and accepts the following arguments:

    • The context object includes information about your runtime, such as configuration variables, environment variables.
    • The event object includes information about a specific invocation, including HTTP parameters from …
    Read More
  • By Pooja Srinath
    Envoyer des SMS dans votre application Spring Boot Envoyer des SMS dans votre application Spring Boot

    Dans cet article, vous apprendrez à utiliser l'API WebSocket avec Spring Boot et, à la fin, à construire une application simple de fourniture d'état.

    WebSocket est un protocole de communication qui permet d'établir un canal de communication bidirectionnel entre un serveur et son client. Les protocoles WebSockets sont pris en charge par la plupart des navigateurs couramment utilisés aujourd'hui.

    Créer une application

    Tout d'abord, vous devez configurer votre compte Twilio et un numéro de téléphone approprié.

    Voici les étapes pour générer un projet à l'aide de Spring Initializr :

    1. Rendez-vous sur http://start.spring.io/.
    2. Entrez websocket-callback comme valeur d'Artifact.
    3. Ajoutez Websocket dans la section des dépendances.
    4. Cliquez sur Generate Project pour télécharger le projet. …
    Read More
  • By Pooja Srinath
    Send SMS in Your Spring Boot App spring-boot-java-websockets.png

    In this article, you’ll learn how to use WebSocket API with Spring Boot and build a simple status delivery application at the end.

    A WebSocket is a communication protocol that makes it possible to establish a two-way communication channel between a server and its client. Websockets are supported by most of the browsers that are commonly used today.

    Prerequisites

    First, you need to set up your Twilio account and a suitable phone number.

    Here are the steps to generate a project using Spring Initializr:

    1. Go to http://start.spring.io/.
    2. Enter Artifact’s value as websocket-callback.
    3. Add Websocket in the dependencies section.
    4. Click Generate Project to download the project.
    5. Extract the downloaded zip file.
    6. Note: You will need Java 8 or later …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.