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

ngrok posts

  • By Diane Phan
    How to Integrate Ngrok in a Twilio Java Application header - How to Integrate Ngrok in a Twilio Java Application

    When you are developing an application that uses Twilio services you need to expose your webhooks on public URLs that can be reached by Twilio. If you have followed some of the tutorials that we published on this blog you know that we recommend using the excellent ngrok tool to generate temporary public URLs for your development web server. Ngrok is an incredibly useful tool that creates a tunnel from a URL on the ngrok.io domain to your application running on your computer. You can then configure your webhook using the ngrok URL and when Twilio sends a request to it, ngrok redirects it to your application.

    If you use ngrok frequently enough, it pays off to become a paid customer, which allows you to secure a permanent URL.

    In this article I’m going to show you how to fully automate ngrok by incorporating it into your Java application. …

    Read More
  • By Diane Phan
    How to Run Ngrok Using Java header - How to Use Java Servlets with Ngrok

    Java programmers can benefit from using servlets because they provide an opportunity to understand low-level concepts in Java. Servlets are also great for building interactive web applications and dynamic web pages because they extend apps hosted by web servers. They handle HTTP requests between a browser and any client, database, or application on the HTTP server.

    However, building a local servlet is just the first step. Taking the servlet a step further to communicate with a temporary public domain can allow developers to use webhooks, share a working demo of the project, and more.

    In this article, you will learn how to build and run a servlet to host your Java application and expose it publicly to the web.

    Prerequisites

    Install ngrok

    Ngrok is a great tool because it allows you to create a temporary public domain that redirects HTTP requests …

    Read More
  • By August Allard
    Expose a local Django server to the Internet using ngrok django_and_ngrok.jpg

    Django comes with a lightweight server that allows you to serve your project on your local machine at http://localhost:8000. This is a great way to test and troubleshoot your application code.

    Your local server isn't exposed to the real Internet, though, so your Django project can't receive requests from an external source, such as a Twilio webhook.

    For development purposes, you may need to test that your app code properly handles requests from external sources. To do that, you must expose your app to the Internet.

    What is ngrok?

    The ngrok utility generates public URLs that map to your local server, enabling you to test how your development code handles requests from external sources. Read more about ngrok and how it works in the official documentation.

    Prerequisites

    All you need for this tutorial is an existing Django project running on Python 3.

    Install the pyngrok package

    The …

    Read More
  • By Luís Leão
    Como criar um servidor WebSocket no PHP com Ratchet para aplicativos em tempo real Como criar um servidor WebSocket no PHP com Ratchet para aplicativos em tempo real

    Quando o assunto é WebSocket, o PHP raramente é mencionado devido à sua falta de suporte nativo. Além disso, o Apache, o servidor HTTP em que o PHP normalmente é executado, não foi criado com conexões persistentes em mente, o que força a responsabilidade da implementação em bibliotecas de terceiros.

    Embora muitos já tenham tentado falar sobre o PHP no desenvolvimento "em tempo real", a maioria dos argumentos perdeu força em comparação com o projeto Ratchet, que é uma biblioteca WebSocket PHP que exclusivamente envia mensagens bidirecionais em tempo real entre clientes e servidores.

    Neste tutorial, usaremos Ratchet com PHP para aprender a criar um servidor WebSocket simples que processa mensagens enviadas de um formulário HTML em tempo real. Nosso formulário exibirá um único <input> e <button> para o envio de mensagens a todos os navegadores do cliente. Sempre que o usuário enviar uma mensagem, ela será exibida em …

    Read More
  • By Matthew Setter
    Build a WhatsApp Chatbot with PHP, Mezzio, and Twilio Build a WhatsApp Chatbot with PHP, Mezzio, and Twilio

    A chatbot is a software application that a person can have a conversation with, either in written or spoken form. That said, their capacity to have a conversation often varies greatly. For example, some chatbots can only answer quite a limited set of specific questions (sometimes in a fixed order). Others, however, use a combination of artificial intelligence (AI) and machine learning (ML) to interact almost as a human could.

    In this tutorial, I'm going to show you how to build a small, simplistic chatbot using the Twilio API for WhatsApp, the Mezzio framework for PHP, and the Weather API to retrieve the current weather forecast for any city around the world.

    How will the chatbot work?

    Before we dive in and write code, let’s get a quick overview of how the chatbot will work. In essence, here’s the logic of the project:

    1. A user will send a …
    Read More
  • By Luís Leão
    Seis motivos incríveis para usar o ngrok ao testar webhooks Seis motivos incríveis para usar o ngrok ao testar webhooks

    Os webhooks são ótimos! Eles são perfeitos para serviços de API, como a plataforma Twilio, notificarem os aplicativos sobre eventos, como mensagens de texto ou chamadas recebidas. O único problema é que, quando você está desenvolvendo um aplicativo que consome webhooks, precisa de um URL publicamente acessível com o qual configurar o serviço de webhook. Normalmente, você desenvolveria em localhost e ninguém mais teria acesso ao aplicativo; mas como testar os webhooks?

    Bem, é aí que entra o ngrok. O ngrok é uma ferramenta gratuita que permite criar um túnel entre um URL público e o aplicativo executado localmente. Esta é a minha lista das seis coisas que eu mais gosto no ngrok:

    1. É muito fácil de instalar e usar

    O ngrok vem integrado ao Go, por isso está empacotado como binários para cada plataforma principal. Faça o seguinte para instalar o ngrok:

    1. Baixe o pacote para seu …
    Read More
  • By Miguel Grinberg
    Manage the Recordings of Your Video Calls with the Twilio Compositions API, Python and Flask Manage the Recordings of Your Video Calls with the Twilio Compositions API, Python and Flask

    Do you use Twilio Programmable Video for your video meetings? One of the many optional features is to enable recording of your video rooms. When recording is enabled, each participant's audio and video are recorded in separate tracks. You can then use the Compositions API to combine these tracks into a single playable video that will be compatible with most common media players.

    In this tutorial, you will learn how to build a quick application for creating, viewing, and downloading your video compositions using the Compositions API, Python, and the Flask web framework. Let's get started!

    Prerequisites

    • Python 3.6 or newer. If your operating system does not provide a Python interpreter, you can go to python.org to download an installer.
    • A Twilio account. If you are new to Twilio click here to create a free account now and receive $10 credit when you upgrade to a paid account. You can …
    Read More
  • By Mia Adjei
    Manage the Recordings of Your Video Calls with the Twilio Compositions API Using Node.js, Express, and TypeScript Manage the Recordings of Your Video Calls with the Twilio Compositions API Using Node.js, Express, and TypeScript

    Have you ever been in a video meeting that was being recorded? It's great to be able to catch up on a meeting you may have missed or to refer back to a great conversation you had via video chat. Recording a video call can also be a great way to make your content and conversations more accessible in general by providing participants with a way to play back the conversation at their own pace.

    With Twilio Programmable Video, you can enable recording for your video rooms. When recording is enabled, each participant's audio and video are recorded in separate tracks. You can use the Compositions API to combine these tracks into a single playable video that will be compatible with most common media players.

    In this tutorial, you will learn how to build a quick application for creating, viewing, and downloading your video compositions using the Compositions API, …

    Read More
  • By Diane Phan
    Your One-Stop Shop to Using Twilio with Python and JavaScript at a Hackathon header - Your One-Stop Shop to Using Twilio with Python and JavaScript at a Hackathon

    If you have played TwilioQuest before, then Twilio APIs might not be completely new for you. There's so much that Twilio has to offer to developers that the only problem you might have is - "What project should I start on at a hackathon?".

    Perhaps you're completely new to the hackathon scene, and that's okay as well!

    That's why I put together an article that's essentially your one-stop shop to hit the ground running within an hour at your hackathon! Plus, other awesome tricks that students might not know that you can easily impress your team with.

    All you need to get started is a free or paid Twilio account. If you are new to Twilio get your free account now! (If you sign up through this link, Twilio will give you $10 credit when you upgrade.)

    Nifty tools

    First off, let's talk about your developer environment. Every coder …

    Read More
  • By Luís Leão
    Como criar um bot no WhatsApp em 5 minutos em Node.js Como criar um bot no WhatsApp em 5 minutos em Node.js

    Introdução

    "Missão dada é missão cumprida!", mas se você, assim como alguns desenvolvedores, já recebeu alguma demanda para integrar um serviço no WhatsApp, provavelmente teve dificuldades em encontrar uma documentação consistente sobre o processo de usar a API do WhatsApp e como ativar seu serviço na plataforma.

    Neste artigo eu quero desmistificar essa dificuldade e apontar alguns caminhos para construir um chatbot no WhatsApp. Se você ainda não sabe, a Twilio possui uma espécie de API de testes, que chamamos de "Sandbox" para que você consiga testar seu serviço no WhatsApp, sem precisar passar por todo o processo de aprovação.

    Durante os próximos 5 minutos, construirei com você um chatbot para realizar uma atividade simples: jogar com o usuário o jogo "Pedra, Papel e Tesoura". Ao fazer isso, você vai entender alguns conceitos que são necessários para desenvolver bots de mensagem e como integrar a Twilio com esses …

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