Build the future of communications.
Start Building for Free

Code, Tutorials and Hacks

  • By Miguel Grinberg
    Record Page Visits to your Flask Website with Twilio Segment Record Page Visits to your Flask Website with Twilio Segment

    If you own or manage a website, you likely want to know what pages your users visit the most. A popular way to obtain this information is to use a web analytics service such as Google Analytics, which uses cookies to keep track of your activity on the site. This approach can be problematic because it isn’t mindful of the online privacy of your site’s visitors. In many jurisdictions, most importantly in the European Union countries, users must provide explicit consent before tracking cookies can be installed on their browsers.

    In this article you are going to learn how to record visits to a Python web application written with the Flask web framework. Page views will be captured in a completely anonymous and private manner and without tracking cookies, which is made possible by the flexibility of the Twilio Segment platform. As an additional benefit, this solution is implemented …

    Read More
  • By Kelley Robinson
    Migrate from Lookup V1 to Lookup V2 Migrate from Lookup V1 to Lookup V2

    Twilio's Lookup API has helped customers build customer onboarding experiences that seamlessly improve deliverability, mitigate risk, and produce a better user experience. We're excited to expand the Lookup API capabilities with new features and expanded geographic coverage with Version 2 of the API, now in Public Beta.

    For new development, we encourage you to use Lookup V2 instead of Lookup V1. V2 is an evolution of V1 with improved support for formatting, validation, line type, carrier, and caller name lookup plus new features like SIM swap and call forwarding.

    With continued support for formatting and validation, line type and carrier detection, and caller name information, V2 includes the following enhancements:

    🌏 Global support for line type detection, including VoIP 🎉

    ☎️ 12 line type response options (expanded from 3) including: fixedVoip, nonFixedVoip, landline, mobile, personal, tollFree, premium, sharedCost, uan, voicemail, …

    Read More
  • By Joseph Udonsak
    Develop a Symfony App Using Svelte and Webpack Encore to Manage Your Twilio Message History Develop a Symfony App Using Svelte and Webpack Encore to Manage Your Twilio Message History

    Globalization has changed more things than one can imagine – and software development is not immune. Combined with the recent trend for separating client side and server side operations, poly-repositories have become a de facto standard for application structure.

    However, for all its benefits it may not be sustainable for small teams or businesses eager to break out of the conceptualization phase and deliver an MVP (Minimum Viable Product). In such scenarios, the visibility and singular source of truth offered by a mono-repository can translate to faster and smoother deployment of new features.

    This article will show you how to combine the new kid on the block, Svelte with the tried-and-trusted Symfony to develop an application, all the while using Webpack Encore to bundle the Svelte app. At the end of this article, you will have built an application to interact with your Twilio message history.

    Prerequisites

    To follow this …

    Read More
  • By Joseph Udonsak
    Integrate Twilio WhatsApp Business API with a Symfony Application Integrate Twilio WhatsApp Business API with a Symfony Application

    With a monthly active user base of over 2 billion people, WhatsApp has risen to one of the most popular messaging platforms in the world today. This has established it as a viable means of sending notifications to clients.

    What's more, by using the WhatsApp Business API by Twilio, you can establish a two-way communication channel with your customer and improve your service offering, such as order processing and management for instance.

    In this article, you will learn how to do this by integrating a PHP implementation of the Eliza program with the WhatsApp Business API, making it possible to chat with Eliza via WhatsApp.

    Prerequisites

    To follow this tutorial, you need the following things:

    Set up the WhatsApp Testing Sandbox

    The first thing …

    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 Bryan Hogan
    Dockerize your SQL Server and use it in ASP.NET Core with Entity Framework Core How to containerize your SQL Server with Docker and use it in ASP.NET Core with EF Core.

    I love learning and writing blogs about .NET and related technologies. One of my favorites over the past 10 years or so has been Entity Framework (EF) and Entity Framework Core (EF Core). I have used it professionally with MS SQL Server, Postgres, and MySQL. But the thing I don’t like is installing these databases on my computer, they are large, they add services that run on startup, and consume lots of resources.

    Instead, when I want to write an application using EF and one of those databases, I download a docker image for the database, start up the container, and connect to that instance from my .NET application. When I’m done for the day, I shut down the container, and when I’m done with the application, I delete the container, and image, and my system is clean of the database.

    The other great thing about using a database in …

    Read More
  • By Néstor Campos
    How to test web applications with Playwright and C# .NET Test web apps with Playwright and C# .NET

    Testing your applications is a fundamental part of any project, whether it is to find errors during development, or to verify the expected behavior of your application in each action that a user may or may not execute.

    In this post, you are going to use a simple form and test it using Playwright and C# to verify its operation with both correct and incorrect information, simulating the actions of users.

    Prerequisites

    You will need the following for your development environment:

    Test types

    You can create different types of tests to verify your software:

    • Unit tests test individual methods and functions of the classes, components, or modules your software uses.
    • Integration tests verify that …
    Read More
  • By Alan Klein
    Wie registriere ich einen SIP-Client direkt bei Twilio Wie registriere ich einen SIP-Client direkt bei Twilio

    Hallo und danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von Registering a SIP Phone Directly to Twilio (and so much more...).

    Mit Twilio Programmable Voice SIP Domains, manchmal auch SIP Interfaces genannt, können Sie Sprachanrufe über einen SIP-Endpunkt tätigen und empfangen, indem Sie sich direkt bei Twilio registrieren.

    Neben der Möglichkeit, sich direkt bei Twilio zu registrieren, haben Sie die Flexibilität, den Verbindungstyp zu wählen. Dies kann das herkömmliche öffentliche Telefonnetz (engl. Public switched telephone network PSTN), ein anderes registriertes SIP-Gerät (oft als SIP-Benutzeragent oder SIP-Client bezeichnet) oder sogar ein Endpunkt des Twilio Programmable Voice SDK sein.

    Darum geht es in diesem Blogbeitrag:

    • Registrierung eines SIP-Telefons direkt bei Twilio
    • Anrufe von einem registrierten SIP-Telefon tätigen und empfangen
    • Empfohlene Designansätze
    • Zwei verschiedene Methoden für die Bereitstellung von SIP-Domain-Telefonanrufen
    • Erläuterung der Vorteile von Twilio SIP-Domains

    Um diesem Artikel zu folgen, benötigen Sie:

    Read More
  • By Bruno Kilian
    Flex Mobile: Ermöglicht Contact-Center-Teams das Arbeiten von überall Flex Mobile: Ermöglicht Contact-Center-Teams das Arbeiten von überall

    Hallo und danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von Flex Mobile: Untether Call Center Agents from the Desktop.

    Das Schöne an Twilio Flex, dem Cloud Contact Center von Twilio, ist seine vollständige Programmierbarkeit. Sie müssen nicht darauf warten, dass der Anbieter die Funktion bereitstellt, sondern können sie selbst entwickeln!

    Flex bietet standardmäßig keine sofort einsetzbaren Funktionen für die Ausführung auf Mobilgeräten. Da Flex jedoch viele Produkte von Twilio vereint, z. B.TaskRouter, Conversations, und Studio, können Sie alle APIs und SDKs einsetzen, um Flex mit eigenen Weiterentwicklungen ganz an Ihre geschäftlichen Anforderungen anzupassen.

    Dieser Blogbeitrag zeigt ein Proof of Concept, das den Innovationsgedanken aufgreift, indem es Teammitgliedern die Möglichkeit gibt, sich vom Computer zu entfernen und weiterhin Chats und Anrufe über ihr Mobiltelefon abzuwickeln. Ich stelle Ihnen Flex Mobile vor, eine React Native-Anwendung, die sich nahtlos in Flex und seine untergeordneten Systeme einfügt, …

    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
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.