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

Runtime posts

  • By Phil Nash
    Twilio CLIのAssetsプラグインをリリースしました Assetsプラグインを発表 - Twilio CLIを使ってアセットをアップロード・管理

    この記事はTwilio Developer AdvocateのPhil Nashこちらで公開した記事(英語)を日本語化したものです。

    Twilio CLIは、Twilioの開発者にとって便利なツールです。 コマンドラインから手軽にTwilioのすべてのAPIにアクセスできるだけでなく、電話番号管理や、ローカル環境でWebhook URLにワンステップでアクセスできるコマンド、プラグインシステムなど数多くの機能を提供します。CLIプラグインはCLIのコア機能を拡張し、Flexプラグインの構築と管理アクセストークンの生成Twilio Functionsを使った構築、そして今回のAssetsプラグインによるTwilio Assetsサービスへのアセットのアップロードなどを可能にしてくれます。

    この記事では、Assetsプラグインの使い方をご紹介した上で、このプラグインを作った経緯を詳しくお話しします。

    Assetsプラグインとは?

    Assetsプラグインでは、画像や音声ファイルなどのアセットの保管先として使用できるAssetsサービスを作成し、アセットのアップロードや管理が行えます。作成したAssetsサービスはTwilioのアプリケーションで使用できます。たとえば、音声ファイルをアップロードして、Twilio Voiceを利用した音声通話中に<Play>動詞で再生するファイルとして使用したり、MMSでユーザーに送信する画像WhatsAppメディアメッセージをアップロードしたりすることができます。

    Assetsプラグインの使い方

    Asse …

    Read More
  • By Phil Nash
    Announcing the Assets Plugin for the Twilio CLI Announcing the Assets Plugin - Upload and manage assets using the Twilio CLI

    The Twilio CLI is a powerful tool for Twilio developers. Not only does it give you access to all the Twilio APIs from the comfort of your command line, there are advanced features like phone number management, magic webhook tunnels, and the plugin system. CLI plugins extend the functionality of the CLI core and allow you to do things like build and manage Flex plugins, generate access tokens, build with Twilio Functions, and now upload assets to a Twilio Assets service with the Assets Plugin.

    In this post I'm going to show you how to use the Assets Plugin and then go into a bit of detail about why we built it.

    What is the Assets Plugin?

    The Assets Plugin allows you to create an Assets service that you can use as a bucket as a destination for assets, like images or audio files, …

    Read More
  • By Lizzie Siegle
    Write to a Notion Database via SMS with Twilio Serverless header image

    Notion is an app that bills itself as "an all-in-one workspace where you can write, plan, collaborate and get organized", letting you take notes, add tasks, manage projects, and more. They recently released their API. Read on to see how to write to a Notion database using Twilio Programmable Messaging, the Twilio Serverless Toolkit, and Twilio Functions.

    video text example

    Prerequisites

    1. A Twilio account - sign up for a free one here and receive an extra $10 if you upgrade through this link.
    2. A Twilio phone number with SMS capabilities - configure one here.
    3. Node.js installed - download it here.
    4. Notion account - download the Mac or iOS app here and make an account (or you can just make an account at that link and use Notion in the browser).
    5. A personal phone number to test the project.

    Get Started with the Notion API

    Go to …

    Read More
  • By Paul Heath
    Announcing General Availability of Twilio Functions Invocation Functions invocations GA

    Today we are announcing the General Availability of Twilio Functions invocations.

    Twilio Functions replaces the need to host or stand up your own web server to serve TwiML or any other HTTP responses, underpinned by your own infrastructure and programming logic. Functions gives you the ability to develop programmatic logic to handle the orchestration of discrete tasks with the convenience of pre-built cloud infrastructure.

    With Twilio Functions invocations moving to General Availability, you now have guaranteed service level agreements for functions and assets that you invoke.

    What is a Function invocation?

    Twilio Functions flow chart with invocations

    Twilio Functions are straightforward to use. Indeed, we’re heavy users here at Twilio – functions underpin Twilio Studio, Twilio Flex Plugins, and many other things.

    To see functions in action you can quickly deploy pre-written code to your account from Twilio’s CodeExchange for free – it works, and you can modify the code for your purposes. If …

    Read More
  • By Evangelos Resvanis
    Small tricks: Utilize Temporary Storage under Twilio Functions Small Tricks: Utilize temporary storage under Twilio Functions

    When working with Twilio Functions, you might need to create resources you'd like to store locally for one-off activities. For example, you might like to create a file with user-provided data and send it onto the next step in a flow based on your business needs.

    In Functions, anything that you create on-the-fly gets stored in the temporary folder, which may not be obvious at first.

    In this quick tutorial, I'll show you how to access and utilize the temporary storage under Functions for your purposes. Let's get started.

    Temporary Storage in a Twilio Function

    If you try to perform operations anywhere other than the temporary folder in the underlying OS filesystem you will see something like:

    Error in Twilio Functions read-only file system

    Below I show a Twilio Function writing to and retrieving from the relevant temp folder:

    /**
    *
    *  This Function shows you how to reach and utilise the temporary storage under the …
    Read More
  • By Carter Rabasa
    Introducing Twilio Functions — Public Beta Now Open tw2_functions_blog
    • Write and run Twilio code without dealing with servers.
    • 10k free invocations every month—$0.0001/invocation after.
    • Now available to everyone in public beta.

    Today, we’re excited to announce Twilio Functions, a serverless environment to build and run Twilio applications so you can get to production faster. Developers provide Twilio with Node.js code for handling their communication events, such as an incoming phone call, and Twilio executes this code on their behalf, ensuring a seamless communications experience.

    In order to understand why we built Functions, let’s first look at how developers build apps without them.

    How to send a Twilio SMS message without using Functions

    The first step is to stand up a web server that instructs Twilio on what to do for a communication workflow. There are two reasons that Twilio was designed this way:

    1. Twilio communicates events to your software using webhooks. These events span the gamut from incoming SMS messages to new reservations in TaskRouter. Webhooks mean …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.