Build the future of communications.
Start Building for Free

Code, Tutorials and Hacks

  • By Diane Phan
    How to Build a Pomodoro Timer With Java Spring Boot and Twilio header - How to Build a Pomodoro Timer With Java Spring Boot and Twilio

    Pomodoro timers are not only used in the kitchen, but they are also used to assist in daily productivity. The purpose of this particular timer is to promote the concept of working on a task for 25 minutes then taking a short break afterwards.

    With the assistance of Twilio, you can be notified with a text message about your next break by clicking on a button on a webpage.

    In this tutorial, you’ll learn how to build your own pomodoro timer using Java Spring Boot and Twilio Programmable Messaging services.

    Tutorial requirements

    Read More
  • By Matthew Setter
    Build Your Own URL Shortener With PHP and PostgreSQL Build Your Own URL Shortener With PHP and PostgreSQL

    Recently, my colleague Niels wrote an excellent post showing how to build URL shortener using .NET, and Redis. On reading it, I was so inspired that I decided to build my own URL shortener with PHP and PostgreSQL instead of .NET and Redis, as I know those technologies far better.

    So what’s so fascinating about building a URL shortener? Especially when there are quite a number of other ones, such as Bit.ly, Short.io, or Twilio Messaging Services Link Shortening service. To be honest, the concept just grabbed my attention and inspired me.

    It doesn’t have all of the features you’d likely expect in a professional service, such as URL customisation, analytics and click tracking, branded links, or the ability to add CTAs (Calls To Action). However, it does contain the essentials.

    Tutorial Prerequisites

    To follow along with this tutorial you will need the following:

    Read More
  • By Gareth Paul Jones
    Introducing Twilio's Go Helper Library twilio-go-helper

    Whether you are building your first product with Twilio or looking to expand your product offering, you need access to tools in the programming languages or environments you use. Today, we are excited to announce that we have released a Go Helper for every Twilio API built using OpenAPI.

    For a long time we’ve supported and maintained helper libraries and tooling in the most popular languages and environments used by developers. We’re now expanding that coverage by providing a Twilio Helper for Go.

    To get started, check out our getting started guide.

    Why use the Twilio Go Helper?

    The Go library offers new functionality and takes advantage of modern language features. We’ve built it from the ground up based on developer feedback we received from you.

    Here are a few reasons why we believe using an official Twilio Helper makes it safer and more efficient to build …

    Read More
  • By Neil Ruaro
    How to Create a CLI App for Sending Text Messages Using Twilio SMS and Python How to Create a CLI App for Sending Text Messages Using Twilio SMS and Python

    Texting is one of the most common forms of communication in our modern age. Twilio provides a simple and easy-to-use interface for sending SMS text messages through their SMS API.

    In this tutorial, you'll be using the Twilio SMS API to create your very own CLI texting application using Python and the Typer framework.

    If you're unfamiliar, Typer is a Python library for creating CLI applications. Typer is easy to use, and intuitive to write. It borrows these features from its sister, the FastAPI framework, written by the same author.

    Prerequisites

    In order to complete this tutorial, you will need the following:

    Install Twilio CLI, and setup …

    Read More
  • By Alvin Lee
    How to Connect Twilio Programmable Voice With Microsoft Teams microsoft teams api integration

    Many organizations rely on Microsoft Teams as an all-in-one tool for team communication. In addition to chat rooms, Microsoft Teams also provides video conferencing and file sharing, helping businesses work better together.

    Twilio has also become an essential part of business communications, but from a different angle. Among the many communication channels we support, Twilio can provide users with an SMS number that external users can text through our Programmable SMS product. This unlocks new interactions between businesses and customers, enabling new sales and support workflows.

    Rather than relying on Microsoft Teams and Twilio separately, it can be beneficial to integrate both platforms into one message stream. This allows teams to log onto one platform and receive communication from multiple sources.

    In this post, we’ll show you how to connect to Microsoft Teams from within Twilio. For our project, we’ll set up a server to wait for a webhook notification …

    Read More
  • By Niels Swimberghe
    How to build a URL Shortener with C# .NET and Redis Build a URL Shortener with .NET and Redis

    URLs are used to locate resources on the internet, but URLs can be long making them hard to use. Especially when you have to type the URL manually, even more so when having to do so on a mobile phone. Long URLs are also problematic when you have a limited amount of characters such as within an SMS segment or a Tweet.

    A solution to this is to use a URL shortener which will create URLs that are short and sweet. When you open the shortened URL, the URL will forward you to the long destination URL. This makes it easier to manually type the URL and also save precious characters.

    Shortened URLs also obfuscate the real URL so users don't know where they will land on the internet when they click the URL. This could be abused by malicious actors, so make sure your URL shortener is secure! If …

    Read More
  • By Peter Aideloje
    Build a Phone Number Verification System with Java Spring Boot and Twilio Verify header - Build a Phone Number Verification System with Java Spring Boot and Twilio Verify

    The benefit of having a phone number verification system in today’s business environment cannot be overemphasized as it helps to fight fake account fraud through the delivery of a time-based one time password code. This TOTP provides a good level of security to a user in a user-friendly approach.

    The Twilio Verify API provides an additional level of account security through sign-up protection and throughout the user’s journey. Therefore, businesses everywhere rely on it as a way of authenticating users and proving that a phone number is valid, accessible and still functional.

    This tutorial will focus on building a phone number verification system using the Spring Boot framework and the Twilio Verify APIto verify a user’s phone number.

    You can also visit the Twilio official documentation to learn more about other available Twilio APIs and systems that are supported.

    Tutorial requirements

    To follow along with this tutorial, you’ll need …

    Read More
  • By Gabriel Bolzi
    Pirâmide de testes: uma busca por qualidade Criando uma aplicação de testes com Mocha e Node.js

    Ultimamente tenho visto muitas perguntas sobre como os testes funcionam na programação, então decidi fazer um post explicando um pouco do meu ponto de vista e das minhas pesquisas sobre o que são testes.

    Vale ressaltar que quando falamos de testes, costumamos falar sobre uma "Pirâmide de testes", conceito introduzido por Mike Cohn no livro Succeeding with Agile (2009).

    Você pode achar muitas imagens referentes a ela, mas em quase todos os casos você encontrará essa representação:

    piramide de testes

    Vamos nos aprofundar nesses tópicos, mas antes gostaria de começar o post com uma pequena introdução sobre o que são testes por definição. Nada melhor como encontrar seu significado no dicionário e estes foram os mais chamaram minha atenção:

    • qualquer meio para verificar ou testar a qualidade ou a veracidade de algo; prova, exame, verificação.
    • exame crítico ou prova das qualidades de uma pessoa ou coisa.

    Agora que sabemos o que é teste, …

    Read More
  • By Diane Phan
    How to Send Scheduled SMS with Twilio header - How to Send Scheduled SMS with Twilio

    Twilio is all about powering communication – and doing it conveniently and fast. Our Programmable Messaging service has been available for a long time, but until now, scheduling a message to be sent at a future time required a developer to use their own scheduling solution.

    Fortunately, this is now a thing of the past! With Message Scheduling, you can send your scheduled SMS and MMS messages with a single API call, without using custom schedulers.

    In this tutorial, you’ll learn how to send scheduled SMS notifications in Java.

    Tutorial requirements

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