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 Alex Kiura
    Build a Drop-In Audio Chat Application Using Django, React and Twilio Programmable Voice Build a Drop-In Audio Chat Application Using Django, React and Twilio Programmable Voice

    There has recently been an explosion of audio chat applications lately. Clubhouse, which allows a user to join on-going audio conversations or start a conversation that others can join, launched in April 2020 and has seen explosive growth. Other companies have also shipped audio chat products or announced they are working on them. Twitter launched Twitter spaces and many are following suit. Facebook, LinkedIn, Slack, Spotify are among companies that have confirmed they will be introducing live-audio features in the future.

    In this tutorial we will cover building an audio chat application using Django and React by leveraging the Twilio Programmable Voice API to allow us to make conference calls from the browser.

    Requirements

    • Python 3.6 or higher: If you don’t have it installed, get it here.
    • Node.js and yarn: If you don't have them installed, install them before starting the tutorial.
    • Twilio account: If you are new …
    Read More
  • By Alex Kiura
    Build a GraphQL API with Subscriptions using Python, Asyncio and Ariadne Build a GraphQL API with Subscriptions using Python, Asyncio and Ariadne

    In my previous GraphQL article, we learnt about creating a GraphQL API that implements queries and mutations. GraphQL, however, has a third type of operation called subscriptions.

    Nowadays, most applications have a real-time component. For example, social media applications notify you in real time of new messages, or ride hailing apps stream the driver’s location in real time. GraphQL subscriptions allow a server to send real time updates to subscribed clients each time new data is available, usually via WebSocket.

    In this tutorial, we will build a project in which the server pushes messages sent by other users to subscribed clients.

    Requirements

    The only requirement to follow this tutorial is to have Python 3.6 or higher installed. If you don’t have it installed, get it here.

    Create a Python virtual environment

    We will install a few Python packages for our project. A virtual environment will come …

    Read More
  • By Alex Kiura
    Build a GraphQL API with Python, Flask and Ariadne Build a GraphQL API with Python, Flask and Ariadne

    You have probably come across the term GraphQL but do you know what is it? Rest easy (pun not intended), as you will learn about it shortly.

    GraphQL is a query language for APIs and a server-side runtime that allows clients to request only the data that they need from APIs. GraphQL is meant to be a more efficient and flexible alternative to REST.

    GraphQL was developed and used internally at Facebook and was open-sourced in 2015. It has since gained popularity with more and more developers and companies jumping on the GraphQL bandwagon, building supporting tools and GraphQL APIs. One of the most popular is the Github GraphQL API. GraphQL is language agnostic which means that we can build GraphQL APIs in Python, JavaScript, Java, Scala and many more programming languages.

    GraphQL vs. REST

    With REST, we model our API as resources, provide endpoints to access particular …

    Read More
  • By Alex Kiura
    Build a WhatsApp Weather Bot with Python, OpenWeather and Twilio Build a WhatsApp Weather Bot with Python, OpenWeather and Twilio

    WhatsApp has become the defacto messaging application that most people use to keep in touch. Wouldn’t it be convenient to build a WhatsApp bot that receives your location and responds with an instant weather update?

    Using the Twilio WhatsApp API, OpenWeather One Call API and Django, we will build our very own weather bot, which will provide current weather information and the forecast for the next week.

    See a sample interaction below:

    Weather Bot Demo

    Prerequisites

    • Python 3.6 or higher. If you don’t have it installed, get it here
    • Twilio account: If you are new to Twilio, sign up for an account here.
    • OpenWeather account: If you are new to OpenWeather, sign up for an account here.
    • ngrok: a tool that allows us to expose local servers to the public internet. We will use it to create a public URL that Twilio can use to securely communicate with our …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.