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 Diane Phan
    How to Allow Users to Upload Media Files to the Cloud How to Allow Users to Upload Media Files to the Cloud

    There are many factors to consider when building a public-facing website. For example, a developer would need to consider what is necessary to protect not only the users but also the project. They would need to figure out how to securely store the data - especially if the project consists of sensitive information.

    In this tutorial, you will learn how to develop a functional website to authenticate your users and protect their identity before allowing them to upload an image file to your cloud storage. After authenticating the users, the project can give users the option to upload an image file through the site and store the files in a cloud.

    The application will use two key technologies:

    Read More
  • By Diane Phan
    React TypeScriptでベーシックなカスタムボタンコンポーネントを作成する方法 How to build a basic custom button component in React RypeScript

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

    プログラミングを学ぶにあたって、特にJavaScriptのUIライブラリであるReactを学ぶことは簡単ではありません。しかし、もしあなたがインタラクティブなウェブページを作ることに興味があるのであれば、Reactの習得は大いに役立ちます。

    Reactでは、カスタム可能な1つのコンポーネントで枠組みを作り、プロジェクト全体でその枠組みを再利用しその一部のみを変更することにより、短時間で要素を作成できます。コンポーネントについて学ぶことは、効率的で可読性の高いコードを書くためのベストプラクティスに従うことの重要性を理解するうえで役に立ちます。

    本稿では、ベーシックなTypeScript Reactプロジェクトでカスタムボタンコンポーネントを作成する方法を紹介します。このチュートリアルを最後まで進めると、作成したボタンをウェブサイト内で再利用し、コンポーネントを効率的に再利用する方法を学習できます。

    必要なツール・知識

    • Nodeのバージョン14.16.0以上(本稿執筆時点)
    • npmyarnなどのパッケージマネージャー
    • JavaScriptおよびTypeScriptに関する基礎知識、または学習意欲

    Reactアプリを起動する

    Reactプロジェクトの作成方法はいくつかあります。ここでは簡略化するためcreate-react-appツールを使ってプロジェクトの構造を作成します。

    コマンドラインで以下を実行すると、プロジェクトフォルダが作成され、my-first-types …

    Read More
  • By Diane Phan
    How to Make a Kid Feel Like a Hacker With the Twilio CLI header - How to Make a Kid Feel Like a Hacker With the Twilio CLI

    Summer school just ended which means - school's out, scream and shout! Kids are enjoying their remaining weeks of summer before starting back again.

    Oh how I miss being a kid with forced breaks and recess time. Recently I visited an elementary school during their summer session and felt the nostalgia of being an innocent kid. Life was so simple when the main concern was having enough time to be cool and not get caught passing notes across the classroom! Since I grew up in a low-income community, I decided to give back and show the classrooms a fun presentation on what it's like to work in the tech industry and write code!

    With the help of Twilio and the command line, I was able to show the elementary school students how to feel like a hacker by typing some lyrics on the computer, pressing a few buttons, and …

    Read More
  • By Diane Phan
    How to Store and Display Media Files Using Python and Amazon S3 Buckets header - How to Store and Display Media Files Using Python and Amazon S3 Buckets

    It can be difficult navigating external platforms and storing data to the cloud. However, this is part of the process when scaling a small application that might rely on in-house databases such as SQLite3.

    Amazon Simple Storage Service (Amazon S3) offers fast and inexpensive storage solutions for any project that needs scaling. The Python code interacts with the S3 buckets to store and retrieve objects with flexible permission changing settings.

    Follow along in this tutorial to learn more about how a Python and Flask web application can use Amazon S3's technologies to store media files and display them on a public site.

    Tutorial Requirements

    In order to build this project, you will need to have the following items ready:

    • 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.
    • Create a free account or sign in …
    Read More
  • By Diane Phan
    How to Receive Images on WhatsApp Using Flask and Twilio header - How to Receive Images on WhatsApp Using Flask and Twilio

    The WhatsApp Business API from Twilio is a powerful, yet easy to use service that allows you to communicate with your users on the popular messaging app. In this tutorial you are going to learn how to create a Python application based on the Flask web framework that can receive and handle images sent by your users on WhatsApp.

    Project demo

    Prerequisites

    To follow this tutorial you need the following items:

    The Twilio WhatsApp sandbox

    Twilio provides …

    Read More
  • By Diane Phan
    AWS EC2インスタンスにFlaskアプリケーションを展開する方法 hot to deploy a flask app to AWS EC2 - jp

    この記事はTwilio Developer Voicesチームに所属するDiane Phanが執筆したこちらの記事(英語)を日本語化したものです。

    初めてTwilioアプリを作成したら成功した。素晴らしいですね。Twilioマジックを使えば驚くに値しません。しかし、Twilioは広く使われているため、ライブサイトに展開してみませんか。そうすれば、ローカルコンピューターで常時アプリを実行する必要はありません。

    このチュートリアルを実行して、機能的なFlaskアプリケーションをAmazon Web Services(AWS)に迅速に展開する方法を学びましょう。Web上に、無料で、TwilioとFlaskのライブアプリケーションを公開し、印象付けてみましょう。

    チュートリアルの要件

    • Flaskアプリケーションのファイルが含まれたGitHubレポジトリ。AWSに展開するアプリケーションに、保護された環境変数があり、展開準備が整えられていること。基本的なFlaskアプリの開始に支援が必要な場合は、Flaskアプリケーションチュートリアルを参照してください。
    • AWSコンソールの無料のアカウントを作成するか、お持ちのアカウントにサインインする
    • 無料利用枠オプションを超えた場合に備え、AWSにクレジットカードを登録する。AWSでアプリを展開する場合には、特に注意が必要です。月末に超過料金が発生しないようにするため、無料利用枠内に留まるようにします。将来の料金発生を防ぐため、EC2料金ガイドと該当するドキュメントを参照してください。
    • 端末画面でアプリケーションを実行 …
    Read More
  • By Diane Phan
    3 Tips for Installing a Python Web Application on a Cloud Server header - 3 Tips for Installing a Python Web Application on a Cloud Server

    (Image credit: Pixabay)

    Deploying your first app can be confusing and daunting. There's also the age-old question - which platform should I deploy the service on - AWS, Heroku, or serverlessly on Twilio? Even after you have decided which platform to use, maintaining a live app can cause some troubles on its own, especially when you want to revisit the project to refactor or add new features.

    Amazon's Elastic Compute Cloud (EC2) instances are a great choice because they are virtual servers that allow you to pick a default Amazon Machine Image (AMI) or select one from another location in order to tell AWS how to launch the instance to fit your criteria.

    In a previous tutorial, we walked through the steps on how to deploy a Python Flask app to EC2. In this article, we will be discussing three tips to installing a Python web app …

    Read More
  • By Diane Phan
    Senden einer SMS mit Java Senden einer SMS mit Java


    Hallo und Danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von How to Send an SMS with Java. Während wir unsere Übersetzungsprozesse verbessern, würden wir uns über Dein Feedback an help@twilio.com freuen, solltest Du etwas bemerken, was falsch übersetzt wurde. Wir bedanken uns für hilfreiche Beiträge mit Twilio Swag :)

    Bei Twilio geht es darum, die Kommunikation zu unterstützen, und das praktisch und schnell in jeder Sprache.

    Mit Twilio und Java können wir schnell eine Nachricht zustellen, ohne unser Mobilgerät in die Hand nehmen zu müssen.

    In diesem Artikel nutzen wir unsere praktische Befehlszeile, um ein paar Zeilen Java-Code zu schreiben, mit dem wir unglaublich schnell eine SMS senden können. Worauf warten wir noch? Legen wir los.

    Voraussetzungen

    Read More
  • By Diane Phan
    How to Send a Message on WhatsApp With Java header - How to Send a Message on WhatsApp With Java

    The WhatsApp Business API from Twilio is a powerful, yet easy to use service that allows you to communicate with your users on the popular messaging app.

    With the help of Twilio and Java, you can deliver a quick message to someone over WhatsApp without having to pick up your mobile device.

    In this article, you'll be using your handy dandy command line and writing a couple of lines of Java code to send a WhatsApp message in an insanely fast manner. So why wait? Let's get started!

    screenshot of the WhatsApp message sent with Java

    Tutorial requirements

    • 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.)
    • Some prior knowledge of Java or a willingness to learn.
    • A smartphone with WhatsApp, to test the project.

    The Twilio WhatsApp sandbox

    Twilio provides a …

    Read More
  • By Diane Phan
    How to Trigger a Usage Alert Over a Phone Call With Node.js header - How to Trigger a Usage Alert Over a Phone Call With Node.js

    The Twilio API has many capabilities, including allowing you to keep track of how much money you spend on it. In addition to checking your usage amounts, you can also set up a trigger that will let you know when you’ve spent a certain amount or made a given number of API calls. To learn how to do this, follow along!

    Prerequisites

    • A free Twilio account (register here and receive $10 in Twilio credit!)
    • Node.js installed on your machine
    • Two phones that can make phone calls, to test the project
    • The Twilio CLI
    • ngrok

    Set up your environment

    In this section you are going to set up a brand new Node.js project. To keep things nicely organized, open a terminal or command prompt, find a suitable place and create a new directory where the project you are about to create will live:

    mkdir nodejs-usage-alert
    cd nodejs-usage-alert
    

    Install the Twilio …

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