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

API posts

  • By Kenneth Ekandem
    How to Create a Restful CRUD API in PHP Using Laravel and Google Firebase How to Create a Restful CRUD API in PHP Using Laravel and Google Firebase

    In this tutorial, you will learn how to create a RESTful CRUD (Create, Read, Update, and Delete) API with Laravel that stores its data in a Firebase realtime database.

    What is Firebase?

    Google Firebase is a Google-backed application development platform that enables developers to develop iOS, Android, and Web-based applications. Firebase provides tools for tracking analytics, reporting and fixing app crashes, creating marketing and product experiments, and much more.

    So, without wasting time, let us dive in.


    1. PHP 7.4, though ideally 8.1.
    2. Composer installed globally.
    3. jq.
    4. Prior experience with Laravel.
    5. A text editor such as Visual Studio Code or an IDE such as PhpStorm.
    6. A Google account.

    Install and set up the Laravel application

    To begin, you first have to install a Laravel application and run it on your local development machine.

    To do that, in your terminal, run the command …

    Read More
  • By Ijeoma Nelson
    How to Create a RESTful API in PHP With SlimPHP 4 and MySQL How to Create a Restful API With SlimPHP 4 and MySQL

    For those times when all you need is a simple solution that enables you to write quick, yet powerful applications, Slim is a great contender amongst the myriad of available PHP frameworks.

    At its core, Slim is a microframework designed to receive HTTP requests, route the requests to the relevant controllers, and return the corresponding HTTP responses.

    Slim’s minimalist environment makes it ideal for the development of both microservices and APIs that consume, repurpose, or publish data.

    In this tutorial, you’re going to learn how to create a RESTful API using Slim 4, PHP, and MySQL.


    To complete this tutorial you will need the following:

    • PHP 7.4. Ideally version 8.1.
    • Composer installed globally.
    • MySQL 8.
    • Postman.

    Let's create the API!

    To begin, you need to create the project’s root directory, named customers-api. You can do this in your editor/IDE or by running the following commands on a …

    Read More
  • By Oluyemi Olususi
    Build a Single Page Application in PHP with Yii 2.0 and Vue.js Build a Single Page Application in PHP with Yii 2.0 and Vue.js

    In the early days of the web, a series of static HTML files would be linked together to form a website. Clicking on page links would trigger requests to the server which would respond with a new HTML file.

    The rise of JavaScript and the advent of AJAX, however, made it possible to send and receive data from the server without full page reloads. These technologies added dynamism to websites, opening the door for a massive advancement in how websites operate today. For example, by using JavaScript, it is possible to handle user interaction and update websites via asynchronous requests.

    These types of websites became known as Single Page Applications (SPA). On the back of this, several JavaScript libraries and frameworks have risen to prominence - none more so than Vue.js.

    In this article, you will learn how to build a Single Page Application using Vue.js and the Yii …

    Read More
  • By Nupur Bhade Vilas
    Twilioの管理コンソールが刷新されました! build on the new and improved twilio console jp




    • 使いたいTwilio製品・サービスやツールに、直感的に容易にアクセスできます
    • ページの読み込み速度が大幅に向上しました (アーキテクチャを再構築しました)
    • Twilio製品・サービスの設定、アプリケーション監視、アカウント管理、請求関係といった、コンソールの利用シナリオ毎に専用ビューを用意し、操作性を向上させました


    新しいTwilio Consoleへ

    「企業がデジタル経済の中で生き残り、成功するためには、SaaSサービスに頼るだけでなく自らビルドしていく必要があります。差別化はお金で買えるものではありません。自らビルドすることが唯一の方法です」- Twilio CEO、ジェフ・ローソン

    Twilio Consoleは、開発者がアプリケーションやTwilioアカウントを管理するためのもので、Twilioプラットフォームの重要な役割を果たしています。Twilioが事業を始めてから12年、その製品・サービスの数は片手で数えられるレベルから …

    Read More
  • By Nupur Bhade Vilas
    Twilio Console is now in General Availability build on the new and improved twilio console

    The new Twilio Console is now in General Availability. Starting August 28th, 2021, all users will be automatically migrated to the new Console.

    • Access the right products and tools at the right time.
    • Enjoy vastly improved page load speed as a result of a re-architecture.
    • Find dedicated views for your products, application monitoring, account management, and billing.

    Start building on Twilio, today!

    Towards a new Console

    “Every company that’s going to survive and thrive in the digital economy needs to build. Because you can’t buy differentiation...you can only build it.” - Jeff Lawson, CEO, Twilio

    The Twilio Console is what developers use to manage their applications and Twilio accounts — a critical part of every developer’s experience with our platform. In the 12 years since Twilio was founded, we’ve grown from a handful of products to more than we can count with our fingers (and toes). We’ve shipped new …

    Read More
  • By Matthew Setter
    How to Lookup Phone Numbers in Plain PHP With Twilio's Lookup API How to Lookup Phone Numbers in Plain PHP With Twilio's Lookup API

    Phone numbers are a very common part of user profiles in modern applications. For example, they let users receive an OTP (One Time Password) to log in to an account or receive a recovery code when they can't access their second-factor device, and they let support staff contact a customer when there is suspicious activity on their account.

    However, how often do we check that the phone number which users store in their profiles is genuine? Today, I'm going to show you how to do it in plain PHP using Twilio's Lookup APIno framework required!

    Tutorial requirements

    To follow this tutorial you'll need three things:

    Create the project directory and install the …

    Read More
  • By Luís Leão
    Crie um bot de SMS de cotação de ações com Twilio e TypeScript Crie um bot de SMS de cotação de ações com Twilio e TypeScript

    Vimos como enviar um SMS com TypeScript e como receber e responder mensagens SMS com TypeScript. Agora vamos criar algo que podemos usar! Se você gosta de investir, pode não ter muitas maneiras de verificar o mercado de ações, então vamos desenvolver um aplicativo para que você possa enviar um símbolo de ações e receber uma cotação delas.

    Nesta publicação, criaremos um aplicativo Node.js com TypeScript, usando o Express, o pacote para Node da Twilio e a API Finnhub para responder a mensagens SMS recebidas com cotações de ações.

    O que você vai precisar

    Para criar o aplicativo nesta publicação, você vai precisar de:

    Read More
  • By Luís Leão
    Criar e consumir uma API RESTful no PHP Laravel Criar e consumir uma API RESTful no PHP Laravel

    Desde suas redes sociais favoritas até os aplicativos bancários que você mais usa, nosso mundo moderno é conduzido por muitas APIs. Neste artigo, você aprenderá a criar uma API RESTful moderna e um aplicativo que implementará a API.


    • PHP 7.1 ou superior
    • Composer
    • MySql
    • Laravel 5.6 ou posterior
    • Postman

    Para acompanhar este tutorial, você deve ter um entendimento básico da linguagem PHP. É necessário o conhecimento básico da estrutura Laravel.

    Noções básicas sobre o aplicativo

    Você vai criar uma API CRUD. CRUD é a sigla em inglês de "Create, Read, Update, and Delete" (Criar, ler, atualizar e excluir). Nossa API terá os seguintes endpoints:

    GET /api/students retornará todos os alunos e aceitará solicitações GET.

    GET /api/students/{id} retornará um registro de aluno fazendo referência a seu id e aceitando solicitações GET.

    POST /api/students criará um novo registro de alunos e aceitará solicitações POST.

    PUT /api/students/{id} atualizará …

    Read More
  • By Luís Leão
    Lançamento da Especificação da OpenAPI em Beta da Twilio Lançamento da Especificação da OpenAPI em Beta da Twilio

    Esteja você criando seu primeiro produto com a Twilio ou procurando expandir sua oferta de produtos, você precisa de acesso fácil a ferramentas nas linguagens de programação ou ambientes mais usados. Hoje, temos o prazer de anunciar que temos a Especificação da OpenAPI de código aberto em Beta para cada API da Twilio.

    Por muito tempo, prestamos suporte e mantivemos bibliotecas de ajuda e ferramentas em várias linguagens e ambientes mais populares usados pelos desenvolvedores. Agora, estamos expandindo essa cobertura fornecendo arquivos de documentação de acordo com a Especificação da OpenAPI, um formato padrão do setor para APIs. Assim fica mais simples gerar o código automaticamente para que você possa desenvolver com a Twilio sem complicações, seja qual for a linguagem ou a ferramenta usada.

    O que você pode fazer com o OpenAPI?

    Geração da biblioteca do cliente

    Com o poder da Especificação OpenAPI da Twilio e do gerador …

    Read More
  • By Gareth Paul Jones
    Twilio OpenAPI 仕様のベータ版提供開始のご案内 Introducing Twilio's OpenAPI Specification Beta JP


    Twilioを使用した初めての製品開発でも、既存製品の機能拡張でも、日頃使用しているプログラミング言語や環境を扱えるツールを簡単に使える必要があります。Twilioは、OpenAPI Specification(OpenAPI仕様)をベータ版としてオープンソース化し、すべてのTwilio APIで利用できるようにしました。

    Twilioは長年にわたり、ヘルパーライブラリとツールのサポートとメンテナンスを続けてきましたが、その対象は、開発者の間で最も利用されている言語と環境の一部でした。今回、APIの業界標準形式であるOpenAPI Specificationに準拠したTwilio APIドキュメントファイルを提供し、対応できる言語や環境の拡張を開始したことになります。これによりコードの自動生成がシンプルに行えるようになり、使用している言語やツールにかかわらず、Twilioを使用した開発が簡単になります。



    Twilio OpenAPI Specification の枠組みとオープンソース化されたOpenAPI generator (生成コード) を活用し、新しいクライアントライブラリを生成できます。そうすることで、複雑なメソッドや関数を書く必要がなくなり、お好みのプログラミング言語で、さらに便利でシンプルに、Twilioをお使いいただけます。たとえば、TwilioのAPIメソッドに対して、強力な型定義がされたRustライブラリをプログラミング的にビルドできるよ …

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