Build the future of communications.
Start Building for Free

Twilio posts

  • By Niels Swimberghe
    How to better configure C# and .NET applications for Twilio How to better configure C# and .NET apps for Twilio

    There are a hundred different ways to provide configuration to your applications. For almost any programming language, you can use environment variables and .env files, but configuration can also be stored in other file formats like JSON, YAML, TOML, XML, INI, and the list keeps on going. Though, in some scenarios configuration isn't pulled from files, but instead is pulled from a service like Azure Key Vault, HashiCorp Vault, or a similar vault service. It is rare that your configuration will come from a single source. Luckily, there are APIs in .NET that can help you grab configuration from multiple sources and merge them together.

    In this tutorial, you'll start with an application that sends text messages using Twilio Programmable SMS, where the configuration is fetched directly from the environment variables. You'll then refactor the app to

    • fetch configuration from multiple sources, specifically, JSON files, user-secrets, environment variables, and …
    Read More
  • By Niels Swimberghe
    What's new in the Twilio helper library for ASP.NET (v5.73.0 - April 2022) What's new in the Twilio helper library for ASP.NET (v5.73.0 - April 2022)

    The Twilio helper library for ASP.NET (Twilio.AspNet) is a community-driven open-source project to make integrating Twilio with ASP.NET easier, for both ASP.NET Core and ASP.NET MVC on .NET Framework. The library helps you with very common use cases like:

    • Responding to Twilio webhook requests with TwiML objects from the official Twilio SDK for C# and .NET.
    • Binding data from Twilio webhook requests to strongly typed .NET objects.
    • Validating webhook requests originate from Twilio and rejecting them if not.

    As .NET and ASP.NET is evolving, the Twilio.AspNet contributors are enhancing the library to take advantage of the newest capabilities and best practices. So what's new?

    What's old in Twilio.AspNet

    Actually, before I share the shiny new additions, let me share what is already part of the library. After all, this is the first blog post to share news about the library.

    Handle Twilio webhook requests with ASP.NET

    In previous versions …

    Read More
  • By Dhruv Patel
    Integrate Twilio and SendGrid Accounts through Single Sign-On with Okta Integrate Twilio and Sendgrid through SSO with Okta Header image

    Oftentimes organizations use a large number of SaaS applications. And with a large number of user accounts for their employees and customers, it can get difficult for both the end user and the organization—end users have to memorize different credentials for multiple applications and organizations have to support multiple applications, and securley manage thousands of user accounts on each application.

    As a result of this, organizations have been using single sign-on (SSO),which allows users to securely sign-on to multiple applications through one credential, and allows organizations to manage all accounts through a single user directory.

    Both Twilio and SendGrid (now in GA) allow SSO using Security Assertion Markup Language (SAML 2.0) to integrate your Twilio and SendGrid user authentications with any identity and access management (IAM) platforms that support SAML 2.0.

    For this tutorial, you are going to learn how to integrate Twilio and SendGrid accounts, account …

    Read More
  • By Niels Swimberghe
    How to Send SMS without a Phone Number using C# .NET and an Alphanumeric Sender ID Send SMS without a Phone Number using C# and Alphanumeric Sender ID

    You can quickly buy a phone number using Twilio's Super Network and then use that phone number to send and receive SMS. However, not all applications require two-way messaging. What's more, there are a lot of use cases where one-way messaging is a better fit, for example: notifications, alerts, and verifications. For these kinds of scenarios, you should consider using an Alphanumeric Sender ID.

    In this tutorial, you will learn how to send SMS messages from an Alphanumeric Sender ID with C#, .NET, and Twilio Programmable SMS; but first...

    What is an Alphanumeric Sender ID

    An Alphanumeric Sender ID (or Alpha Sender) lets you send SMS messages from a sender ID that consists of a set of alphanumeric characters, instead of from a phone number.

    The biggest benefit of using Alpha Sender is that you can use an ID that is more recognizable to your users than a …

    Read More
  • By Niels Swimberghe
    Integrate ngrok into ASP.NET Core startup and automatically update your webhook URLs Integrate ngrok into ASP.NET Core & update your webhook URLs

    When you are developing web applications on your local machine, you sometimes need your application to be reachable from the internet. One of the most common reasons to do this is to develop webhooks.

    Webhooks are a way to be notified by an external service when an event has occurred. Instead of you sending an HTTP request to that service, the service sends an HTTP request to your public web service.

    To develop webhooks locally, you can use a tunnel service like ngrok which creates a tunnel between your local network and the internet. However, when you're using ngrok's free plan, ngrok will create a random, public URL anytime you restart your tunnel. This means that you need to update your webhooks with the new URL anytime it changes. If updating your webhook URLs takes a bunch of clicks and keystrokes, this can be quite a hassle.

    Luckily, you …

    Read More
  • By Niels Swimberghe
    How to Send Scheduled SMS with C# .NET and Twilio Programmable Messaging Send Scheduled SMS with C# .NET and Twilio

    Twilio Programmable Messaging lets you send SMS, MMS, and WhatsApp messages, but up until now, you couldn't schedule messages ahead of time. If you wanted to send messages in the future, you would have to store the message in some data store and then use cron jobs or write some other complicated code to deliver your messages at the right time.

    Lucky for you, Programmable Messaging now supports Message Scheduling! With it, you can schedule SMS messages with a single API call. No need for your own complicated scheduling infrastructure.

    In this tutorial, you’ll learn how to schedule SMS's using C# and .NET.

    Prerequisites

    You will need these items to follow along:

    Read More
  • By Niels Swimberghe
    How to Develop webhooks locally using Cloudflared Tunnel Develop webhooks locally using Cloudflared Tunnel

    Webhooks are a way to be notified by an external service when an event has occurred. Instead of you sending an HTTP request to that service, the service sends an HTTP request to your public web service. This way, you can respond to the event in real-time as it happens. Webhooks are also a common way to integrate with Twilio's products. For example, when your Twilio phone number receives a text message or phone call, Twilio sends an HTTP request to your service with the details. Your service then responds with instructions that indicate how Twilio should respond to the event. Here's a diagram of what this exchange looks like:

    Diagram showing how SMS messages interact with Twilio and your application using webhooks

    One common challenge with webhooks is that they can only call web services that are publicly available on the internet, but when you are initially developing software, you are typically doing so on your own local machine, which by default …

    Read More
  • By Hiroto Masaki
    「Twilio Flex簡単導入パック」by TerraSkyでコンタクトセンターをスモールスタ-ト flex-terrasky-jp

    Twilioでは顧客エンゲージメント現状分析2021というレポートを皆さまと共有しております。このレポートは、2020年の顧客エンゲージメントがお客様企業の視点からどのような状況であったかを詳らかにするもので、2021年初頭に刊行されました。日本語フルレポートは100ページ超におよぶものですが、アンケートに回答くださった方々の声から以下5つの主要トレンドが抽出されています。

    • デジタル化の急増により、パーソナライゼーションがより実現可能に
    • デジタルが促進する企業のアジャイル化
    • ヘルスケア、金融サービス、公共部門のデジタル活用が進む
    • ビデオがバーチャル接続を強化
    • 企業が自らシステムを構築する時代へ

    コンタクトセンターは企業のフロントエンドの役割を担っており、顧客エンゲージメントが具現化される場の一つですが、コンタクトセンターにおいても上記主要トレンドが顕在化しつつあると筆者自身も強く感じています。

    また、コールセンター白書2021などのデータからも明らかですが、クラウド型コンタクトセンターの国内市況が活発であり、今がまさに旬な時期です。さらに、エンタープライズコミュニケーション系の米国の業界サイトであるNo Jitterにおいても、「Composableなコンタクトセンターが今後の業界活性化のキーである」といったニュアンスの記事が2021年6月に投稿されています。(この記事では、キーワード「API」「CPaaS」とともに、弊社のコンタクトセンター向けサービスTwilio Flexへ言及されています。)「Composable」は「ビルディングブロック式の」「業務プロセスや …

    Read More
  • By Niels Swimberghe
    How to send SMS with C# .NET and Azure Functions using the Twilio Output Binding How to send SMS with C# .NET & Azure Functions using Twilio Output Binding

    Azure Functions has its own opinionated way of developing applications based on triggers, input bindings and output bindings. Azure supports two Twilio products using output bindings: Twilio Programmable Messaging for sending SMS and Twilio SendGrid for sending emails.
    In this tutorial, you'll learn how to send text messages with C# .NET using Azure Functions and Twilio binding.

    Prerequisites

    You will need these items to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK
    • Azure Functions Core Tools
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, or JetBrains Rider)
    • A free Twilio account (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)

    Get started with Twilio

    You will need to set up a couple of things with Twilio before developing the Azure function:

    • If you don't already have a Twilio phone number, go and buy a …
    Read More
  • By Hiroto Masaki
    Twilio SIGNAL 2021 イベント〜お客様事例講演の振り返り SIGNAL21 follow-up 6 JP

    SIGNAL 2021 カンファレンスのブログシリーズ、第6回目となります。

    SIGNAL 2021を振り返るブログシリーズを、以下のように投稿してきました。

    • 第1回(Twilio SIGNAL 2021 カンファレンスの超速報)
    • 第2回(Twilio SIGNAL 2021 〜 基調講演の振り返り)
    • 第3回(SIGNAL TVをMCの立場から振り返る)
    • 第4回(Twilio SIGNAL 2021 イベント〜製品アナウンスの振り返り)
    • 第5回(TwilioQuest 3.2を使って自分だけのエクステンションを作成する)

    第5回までで、イベント全体、基調講演、プロダクト系のアナウンス、デベロッパーを強く意識したコンテンツなどについて既にカバーした形となります。第5回から少し間が空いてしまいましたが(😱)、今回第6回では、ブレークアウト講演のなかでお客様事例講演に分類されるものについて幾つかご紹介したいと思います。テクノロジーをどのように活用され、当初の狙いをどのように実現され、効果を上げられたのかの側面になりますので、皆さまのご興味のある視点だろうと思います。具体的には、以下5社様について触れていきます。

    • Paack様、欧州、ロジスティクス
    • ANZ銀行様、豪州、金融
    • AXA様(香港・マカオ、保険)、BYJU's FutureSchool様(多国籍、オンライン教育)
    • Spotify様、北米、エンタメ系オンラインサービス
    • Giant Eagle様、北米、小売(食料雑貨店)

    なお今さらではありますが、講演のオンデマンド再生において日本語字幕を利用できま …

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