Introducing Twilio Developer Evangelist Stefan Judis
It’s a Sunday morning in Berlin, and I’m standing in front of a local co-working space. With me, there’s a man in his fifties. He apologizes for leaving the free workshop I helped organize earlier. We chat about the weather, life, and Berlin. It turns out he’s a Math professor at a very well known German university. He changes the topic and starts asking me a few questions.
Why am I doing this? And how did I get here?
The professor was right — why am I doing this?
A few years back, my day job was to sit in front of large audio mixers. I was responsible for the sound of German television shows. It was a lot of fun ...
Locally developing and debugging Twilio Functions
Twilio is all about HTTP endpoints & webhooks. From responding to incoming SMS, to controlling the flow of a voice call to blocking unwanted chat messages with an
onMessageSendwebhook, chances are that you'll end up writing an HTTP endpoint for the Twilio product you're interacting with. Twilio Functions allow you to write and host those endpoints directly in the Twilio cloud while relying on the power of Node.js.
What if you want to develop these functions with your IDE or editor of choice and run them locally? What if something goes wrong and you want to use your debugger to dive deeper into it? For this reason I built
twilio-run, a command-line tool that allows you to run your Twilio Functions in your local environment.
Let's dive into how it works, and how it can help your development flow with Twilio.
This tool is still in ...
7 Ways To Secure Your Account
Security threats come in from all angles, and keeping track of them all is a constant challenge.
There are many links that attackers can target in the communication chain — the link between you and your network, your passwords and tokens, and other sensitive places and information. If your Twilio account is compromised, it can result in massive fraudulent charges, blocked phone numbers, loss of customer trust, and more.
Here are seven best-practices you can follow to keep your Twilio account — or any account — safer.
Keep your passphrases strong
First and foremost, use strong passphrases.
What does that mean these days? It turns out that a jumble of hard-to-remember characters is not as effective as a longer but easier to remember password. That’s why Twilio requires at least 14 characters but has no “special character” requirements.
It should go without saying: don’t share your passwords and don’t re-use ...
What I Learned About Security from Calling 35 Contact Centers
Web applications often have secure login systems—maybe even 2FA—but what happens when a customer calls the customer support phone number? Security teams and app developers have thought a lot about online authentication, but haven't applied the same rigor to designing systems for authenticating over the phone.
At Twilio, product and engineering teams have spent the last year thinking about this problem and how to make the experience better for both the customer and the call center agent. In that time, I've called dozens of contact centers to learn about how everyone from startups to Fortune 50 companies attempt to identify and authenticate the end user. This post will take a look at that research and outline best practices to use in call centers.
To test the over-the-phone authentication, I made a list of companies where:
- I have an existing account
- There is personal info tied to ...
Identifying a Phone Number's Line Type with Twilio Lookup and Python
While the Twilio Messaging API won't charge you for attempting to send an SMS to a landline number, identifying the line type of a phone number can be useful for other reasons. A lot of businesses won't let users sign up with VoIP numbers, for example, because those numbers are more correlated with fraud.
This post will show you how to identify a phone number's line type with Twilio Lookup and Python.
In order to code along with this post you'll want to start with the following:
Create a new file called
lookup.pyand add the following code.
# Download the helper library from https://www.twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = 'your_account_sid' auth_token = 'your_auth_token' client = Client(account_sid, auth_token) phone_number = client ...
Now send Images, Videos, PDFs and other media content with the Twilio API for WhatsApp
- You can now send image, video, text and PDF files up to 5 mb in size over WhatsApp.
- Sending a media message over WhatsApp is similar to sending an MMS — all you have to do is include the
MediaUrlparameter in your API requests.
- Media content is currently only supported in Session Messages. If the WhatsApp session with a user expires, you must wait for an inbound message to create a new session before you can send them a media message.
We’re thrilled to announce that you can now send and receive not just images and videos, but also PDFs, text files, contacts and audio files using the Twilio API for WhatsApp. At Twilio, our mission is to enable developers and businesses to engage effectively with their customers on the messaging channels they prefer, and that means being able to use them for rich contextual conversations. Your customers increasingly ...
WhatsApp Media with C#, .NET Core and the Pho.to API
When the WhatsApp API for Twilio launched last year it only supported text.
The WhatsApp API for Twilio now supports media, including images and files.
So let's build an app that receives an image from WhatsApp, processes the image using one of the many options available on the Pho.to API and then returns the processed image.
What we'll need to get started.
- A Twilio account (sign up for a free Twilio account here)
- The .NET Core 2.2 SDK and runtime
- The WhatsApp Sandbox Channel installed in your account (go through this process to activate the sandbox)
- A developer account on the Pho.to API
- Visual Studio Code or similar code editor or IDE
Create a new folder for your project and navigate into it.
>mkdir PhotoFiddler >cd PhotoFiddler
Once in your new folder, we can make a new .NET Core WebAPI project using the command below ...
How to Create a Task In Asana through Twilio SMS and Laravel
Having a task manager is very crucial for any company or team. It ensures that tasks are kept in one place with priority given to the most important tasks while also improving team collaboration. Asana is one of the best online task managers in the market due to its ease of use in managing teams, projects, and daily tasks online.
However, with our “on-the-go” lives, it’s possible for a situation to arise that requires us to create tasks without access to either the Asana web or mobile app. In this tutorial, we will discuss how to create tasks in Asana using Twilio SMS and Laravel when an internet connection isn’t available.
To complete this tutorial, you will need:
Set Up PHP Development Environment
If you don't have one already, you’ll need to install a ...
Send a WhatsApp media message with C# in 30 Seconds
When the Twilio API for WhatsApp was launched in Summer 2018 it could only handle text-based messages. Now, the API can send and receive media 🎉. Sending a media message with WhatsApp is just as quick as sending a text message, here's how in just 30 seconds!
To make this even quicker to get started, below is all the code and a link to the completed project on GitHub.
To code along with this post, make sure the following are set up:
- A Twilio account (sign up for a free Twilio account here)
- The .NET Core 2.2 SDK
- The WhatsApp Sandbox Channel installed (go through this process to activate the sandbox)
Program.csfile and add in the Twilio
usingstatement. Initialise ...
How to Build a Galentine's Day Compliment Generator with Python, Flask, and Twilio
Happy Galentine's Day, you opalescent tree shark! The holiday dedicated to waffles and your best gal-pals only happens once a year, so I built an SMS-based bot that can generate compliments Leslie Knope would be proud of anytime. Send a text to (765) 234-3009 for a preview of what we're going to build in this short tutorial.
Before we dig into some code, make sure that your Python and Flask development environment is setup. If you haven't done so already:
- Create a Twilio account
- Buy a phone number
- Install Python 3
- Install Ngrok to make your Flask app visible from the internet so Twilio can send requests to it
- Set up your Python development environment
If you're new to Python and Flask check out this handy guide for more information on getting started.
We also need to install Flask to respond to incoming web requests.
pip3 install Flask ...