Build the future of communications.
Start Building for Free

API posts

  • By Anthony Dellavecchia
    Summarize Text from Images Using AI, Python, and Twilio Summarize Text from Images using AI, Python, and Twilio

    Content, content, content! Are you overwhelmed by the amount of content you’re asked to read on a daily basis? Don’t you wish you could quickly summarize large chunks of text? It’d be a huge timesaver, especially for college students who read a lot of content!

    In this blog post, I will teach you how to build an app in Python that performs text recognition on photos, summarizes that text, and then sends you a summary via SMS.

    The app in action, text your phone and get a summary

    Here’s a typical use case: you see a large wall of text that you don’t want to read, so you pull out your phone to take a picture of that text, then you receive a SMS with a nice summarization. Boom, time saved!

    Gif of me using the app with a typical use case

    Prerequisites

    Before getting started, it’s important to have the following before moving on:

    Read More
  • By Johnny Nguyen
    How to Build a Linear Regression Model Using Twilio SMS and Python How to Build a Linear Regression Model Using Twilio SMS and Python

    Linear regression is a common and useful approach for modeling the relationship between a dependent variable and one or more independent variables. Its use spans many applications, such as economics, medicine, and science. Whether you're an expert in a lab or a beginner on a laptop, linear regression is a way to achieve valuable results built on relatively simple formulas.

    In this tutorial, you will implement a linear regression model using Python and scikit-learn. To add more functionality, you will use Flask and Twilio's Programmable Messaging API to help you build your data and make predictions from the convenience of your phone.

    Prerequisites

    To continue with this tutorial, you will need:

    • Python 3.10 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • A Twilio phone number. After having an account, you will need to obtain a Twilio phone …
    Read More
  • By Neil Ruaro
    How to Create an API Texting Service using Twilio SMS and Python How to Create an API Texting Service using Twilio SMS and Python

    Texting is one of the most common forms of communication in the 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 API texting service using Python and the FastAPI framework.

    Additionally, you’ll also learn about testing backend servers created with FastAPI, as well as how to deploy the API to Heroku using Docker.

    If you're unfamiliar, FastAPI is a Python web framework for creating fast API applications. FastAPI also has default integration with Swagger documentation and makes it easy to configure and update.

    Docker, on the other hand, is an industry staple in software engineering, as it is one of the most popular containerization softwares out there. Docker is used for developing, deploying, and managing applications in virtualized environments called containers.

    The main selling point …

    Read More
  • By Ashley Boucher
    Build a Svelte App that Uses the National Parks Service API to Plan Your Perfect Trip Copy of C03 Blog Text (4)

    The United States National Park Service, created in 1916, operates 423 unique sites that cover 85 million acres of land. Our national parks are some of the United States’ greatest treasures, and most people agree: in 2021, the National Park Service welcomed 297,115,406 visitors across its multitude of locations.

    This summer, if you’re feeling bored, listless, or over the heat, plan a trip to a national park. There are parks to suit absolutely everyone’s needs, and in this article you’ll learn how to build a Svelte app that lets you leverage the National Parks API to search for your perfect national park by filtering through all possible activities and park amenities.

    This article is going to be showing you how to build an app that you can run locally on your machine. The API requests shown in this article are inherently insecure, because if you were to deploy …

    Read More
  • By Jordan Hanley
    Dynamic Contact Center Opening Hours Powered by Twilio Studio and Google Places Dynamic Contact Center Opening Hours with Google Places

    The Problem

    One of the most frequent asks when building out an IVR for a contact center is for the IVR to change when the contact center is closed. To deliver a great customer experience, you may want to direct the customer online, give them different options to self-serve, send them to voicemail or simply ask them to call back at a different time.

    This kind of functionality can be built out relatively easily using Twilio Functions with Twilio Studio to lookup a spreadsheet or database and some kind of logic to decide if your business is currently open. However, this can become complex when managing public holidays, business downtime or other exceptions.

    How Can This Be Easier?

    In the online-first world that we live in, most businesses have a presence on Google, and some are even striving to be the most visible in their sector or region. As such, …

    Read More
  • By Ashley Boucher
    How to Use Postman to Make Requests and Test APIs Copy of TwilioQuest  Blog Headers  1200X628.png

    This post is a part of a series that supports an expanded adventure, as of May 2022, in TwilioQuest, but it will be relevant to anyone curious about Postman. Happy reading!

    Ahoy, operator. Congratulations on gaining acceptance into the Arcane Academy of API Arts. I’m Professor Rose Barrington, head of House Hopper. In House Hopper we believe that code is everywhere. We use tools to magnify our magic and bring code to smart devices all over the world. One tool, in particular, that supports our work is Postman.

    Postman is “an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration.”

    You can see why students in House Hopper would make great use of this tool! If you’re exploring your connection to House Hopper, feel free to read this lesson, where I’ll be explaining more about what Postman …

    Read More
  • By Twilio
    5 Best Chat APIs & Messaging SDKs of 2022 messaging api.png

    Real-time chat is a powerful channel for your business to reach customers. In a customer service context, it allows you to handle inquiries immediately. For outbound sales, you can interact with potential customers as soon as they land on your website. As your business connects directly with customers through real-time chat, those connections can translate to sales, growth, and value.

    Fortunately, it has never been easier to integrate such a solution into your business. Instead of building a messaging solution from scratch, companies can leverage prebuilt solutions to easily integrate chat into existing apps and websites.

    Below, we’ll look at 5 of the best chat application programming interfaces (APIs) and messaging software development kits (SDKs) of 2022—but first, let’s lay a foundation by reviewing core concepts.

    What are chat and messaging APIs and SDKs?

    Chat platform APIs and SDKs allow a company to integrate existing real-time chat solutions into its …

    Read More
  • By Seif Hateb
    Basic API Security Guide Basic API Security Guide

    APIs are existing blocks of codes that facilitate the communication between software without the need to rewrite code. That’s making API usage exponentially increase every year.

    (Learn more about APIs in Twilio’s Glossary.)

    Developers use APIs to integrate information from outside sources into their applications and gain access to a large repository of resources and data, simplifying the coding process. However, users also benefit as it makes building interactive applications easier.

    In this post, I will walk you through the whats, hows, and whys of APIs, and discuss basic API security.

    Common API Security Risks

    According to Gartner, by 2022, APIs will become the largest attack vector due to their broad usage. APIs are highly targeted and have even larger attack surfaces than user interfaces (UIs) – and perhaps even larger than email (see the FBI Internet Threat Report).

    So, what makes APIs a new preferred target? …

    Read More
  • By Simonetta Turek
    Twilio Flex Conversations - デジタル時代の真の統合コンタクトセンター & API Flex Conversations Beta JP

    この記事はSimonetta Turekこちらで公開した記事(英語)を日本語化したものです。

    世界で最も柔軟性の高いコンタクトセンタープラットフォームが、その柔軟性をさらに高め、開発者やお客様の役に立つツールとして刷新されます。

    Twilio® Flex® Conversationsは、Flexプラットフォーム上のSMS、チャット、WhatsAppに対応する単一のAPIであり、2022年3月末にパブリックベータ版が公開されました。Flexユーザーはデジタルチャネル環境を簡単に統合し、差別化を図るためのビジョンを実践・推進できるようになり、結果として、パーソナライズの深化とお客様の満足度向上を促進できます。Flex Conversationsを使用することで、Twilio Flexは、業界初と言えるほどの真の統合マルチチャネル型コンタクトセンタープラットフォームとなります。

    なぜこれが重要なのでしょうか?使用するAPIが単一であれば、シームレスな環境を簡単に構築できるうえ、チャット、SMS、メール、WhatsAppなど、お客様とのやり取りに使用するデジタルチャネルを橋渡しできるためです。

    お客様の期待に上限はないため、これは重要です。お客様は、カスタマージャーニーのあらゆる段階でブランドによるパーソナライズを期待しています。お客様の期待に応えられなければ、すぐにでも別のブランドに浮気されてしまいます。こうした認識をふまえ、世界中のあらゆる業界のブランド …

    Read More
  • By Miko Bautista
    APIs are the Last Missing Piece to Enable a New Age of IoT APIs are the Last Missing Piece to Enable a New Age of IoT.png

    Now is the perfect time for forward-looking companies to incorporate globally-scaled IoT into their corporate strategy. Smart connected devices act as carriages for these companies to deliver more efficient processes, smarter decision making, and more autonomy to their customers. In this blog post, we will talk about why building IoT solutions is easier than ever before and why achieving scale is only possible by integrating with highly reliable, maintainable, and available APIs.

    Prefer to LISTEN to this content rather than read it? Miko recently presented on this topic live, at the Helsinki edition of APIDays:

    What sparked the current explosion of IoT use cases

    The recent conclusion of the “smartphone war” has left players Apple and Google standing at the top. By now, it’s common knowledge that most smartphone users own either an iPhone or an Android. What might not be as obvious, however, is that the remnants of this …

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