Home / Companies / Twilio / Blog / March 2019

March 2019 Summaries

26 posts from Twilio

Filter
Month: Year:
Post Summaries Back to Blog
Twilio, Azure and WhatsApp are used to generate photo alt-text in Java by connecting the Twilio API for WhatsApp with Azure's Computer Vision (CV) APIs. The application takes a URL of any photo in the WhatsApp message and passes it to the Azure CV API, which generates a description of the picture. The app then grabs the caption from the response and uses it as a reply to the original message on WhatsApp. A SparkJava microframework is used to create an HTTP server that listens for Twilio webhooks. Ngrok is used to expose the SparkJava server via a temporary internet-accessible URL, and Twilio's Sandbox for WhatsApp is configured to call a webhook when a message comes in. The application can be used to generate alt-text for images online, making them more accessible.
Mar 29, 2019 1,231 words in the original blog post.
The tutorial guides the reader through creating a smart assistant using Twilio Voice and Amazon Alexa. The assistant is built using Laravel as the backend framework. The process involves setting up Twilio authentication credentials, creating an Amazon Alexa skill, building REST endpoints for Alexa to interact with, and configuring SSL certificates. The reader can then test the assistant by connecting their Alexa-powered device to their Amazon Developer account and interacting with it through voice commands.
Mar 28, 2019 1,575 words in the original blog post.
dotfiles are user configuration files that preserve favorite settings on different programs, allowing users to quickly set up their workstation and recover from system issues. By tracking changes to these files, developers can easily collaborate with teams and maintain consistency across systems. The install script for a typical `dotfile` repository includes features like automated package installation, SSH key creation, and setup tasks for specific repositories. Tools like Brewfile and asdf also complement dotfiles by providing easy ways to manage dependencies and versions for various programming languages. By adopting `dotfiles`, developers can simplify their setup process, make team collaboration easier, and recover from computer problems.
Mar 27, 2019 1,352 words in the original blog post.
This article describes how to use Twilio SendGrid and C# to receive an SMS message, extract its content, and send an email. The process involves setting up a new .NET Core 2.2 Web API project, installing necessary NuGet packages, creating an API endpoint for Twilio's webhook, and implementing an Emailer class using SendGrid. The code is tested by sending an SMS to the Twilio number and verifying that the email is successfully sent to a specified address. The article concludes with suggestions for further development, including logging for debugging purposes.
Mar 27, 2019 1,541 words in the original blog post.
A business owner shares their experience with provisioning new phone numbers through Twilio, allowing them to give out disposable phone numbers for business purposes without exposing their real number. They demonstrate how to set up TwiML bins to handle incoming SMS messages and create a Twilio Function to answer calls on their own number while blocking certain callers. The author concludes that this setup provides a convenient way to manage business calls and texts, making it easier to maintain a professional image while minimizing the risk of spam or abuse.
Mar 26, 2019 849 words in the original blog post.
Twilio Participates in CCPA Panel Discussion` with fellow senior privacy leaders at the Compliance Week's West Conference in San Francisco, discussing the scope of the California Consumer Privacy Act (CCPA), its ambiguous definitions, and practical suggestions for compliance before the January 2020 deadline. The discussion also covered how to operationalize CCPA compliance, building a comprehensive privacy program using various frameworks, and the challenges faced by peers and companies in implementing the regulation. Twilio is performing a gap analysis between their current privacy program and the CCPA, with plans to implement required changes and update their privacy policy accordingly.
Mar 25, 2019 360 words in the original blog post.
Twilio's Nomorobo Spam Score Add-on is used to detect robocalls by analyzing phone numbers through the Twilio Lookup API. To use this feature, developers need to create a Twilio account, install Python 3 and the twilio-python helper library, and add the Nomorobo add-on to their account. The `is_robocaller` function is used to check if a given phone number is likely a robocall based on its score from the Nomorobo Spam Score Add-on, which returns a score of 1 for confirmed robocalls. This tool can be used as a script to identify robocalls and can also be integrated into call centers or other applications that require phone number analysis.
Mar 25, 2019 680 words in the original blog post.
To download an image file in a Ruby application, you can use the standard library open-uri method to access a URI as if it were a file. However, this approach has its limitations and potential issues such as memory inefficiency, leaving users vulnerable to remote code execution, and not allowing for redirects or file size control. To overcome these issues, alternative methods like Down can be used to safely and efficiently download files. The Down gem provides an improved way to handle downloads by returning a Tempfile, limiting redirects, and controlling file sizes. With the Down gem, you can easily restrict file size, stream files, and even change the back-end of the gem from open-uri to other options like HTTP.rb or Wget.
Mar 25, 2019 748 words in the original blog post.
The SMS payment notification system for Stripe with Laravel involves installing a new Laravel project, handling Stripe webhooks, disabling CSRF verification, registering events, creating a listener to send SMS notifications, setting up Twilio, and testing the system. The system uses the Spatie\StripeWebhooks package to handle incoming webhooks from Stripe and sends SMS notifications using the Twilio PHP Library.
Mar 20, 2019 1,621 words in the original blog post.
The tutorial provides a step-by-step guide on how to use the Twilio Programmable SMS API to send text messages when a cron job fails. It assumes users have basic knowledge of PHP concepts and Laravel, and provides instructions on how to create a custom command to send emails using Mailgun as the email service provider. The tutorial also covers integrating Twilio's Programmable SMS API to send SMS notifications once the cron job fails. It includes creating a custom command to handle the failure case, scheduling the command to run weekly, and testing the setup.
Mar 20, 2019 1,779 words in the original blog post.
This tutorial guides the creation of an SMS weather forecasting app using PHP and Twilio. The project involves setting up a development environment, installing required packages, creating API connections to OpenWeatherMap and Twilio, and integrating these services with a webhook to receive user requests for weather forecasts. By following this guide, users can create their own SMS-based weather forecasting system that can provide real-time weather updates without internet access. The app allows users to send commands starting with "WN-" followed by the city name, and the system responds with the current weather status of the specified location.
Mar 19, 2019 935 words in the original blog post.
A Node.js-based Command-Line Interface (CLI) can be created using the ecosystem of packages available for the language, including npm and yarn. By leveraging these tools, developers can automate repetitive tasks while tapping into the vast array of CLI-focused packages, such as inquirer, email-prompt, chalk, ora, boxen, stmux, and listr. The CLI can also be distributed and consumed across multiple platforms, making it a versatile tool for various use cases. Additionally, npm init and yarn support bootstrapping projects using CLIs named create-*, allowing developers to easily set up new projects with specific configurations. By following this tutorial, developers can create their own CLIs using Node.js and explore the possibilities of automating tasks and customizing project setups.
Mar 19, 2019 2,679 words in the original blog post.
A Laravel application with a phone number verification system that uses Twilio's Programmable Voice API to place voice calls and verify users' phone numbers. The system generates a verification code, sends it to the user's phone via Twilio's Voice API, and checks the user's input to ensure the code matches. If successful, the user's phone number is verified. The application uses AWS Polly to generate text-to-speech speech for the verification code.
Mar 19, 2019 2,562 words in the original blog post.
Robocalls have become a ubiquitous problem, with nearly 50% of all US mobile calls expected to be robocalls in 2019, according to First Orion. This issue has sparked concerns among developers and consumers alike, as it disrupts daily life and erodes trust in phone communications. Twilio's CEO, Jeff Lawson, explains that the root cause lies in the evolution of telecommunications networks, which were originally designed by a single company, allowing for little security or trust. As a result, malicious actors can easily impersonate others on the network. To address this issue, Twilio has implemented various safeguards, including requiring phone number confirmation, billing by the minute, and geographic permissions to prevent robocalls. Lawson envisions a future where users have control over their phone communications, with a focus on verifying caller identity through digital signatures like STIR/SHAKEN and establishing reputation systems to determine whether a call is legitimate or not. By restoring trust in phone communications, Twilio aims to put users back in control of their devices.
Mar 18, 2019 1,498 words in the original blog post.
To track the conversion rate of incoming SMS via a link using Google Analytics, you need to create a Google Analytics account and obtain your unique tracking ID. You then add the tracking code to your website's code under the `<head>` tag. To make the link to your website trackable from an SMS, you use campaign tags in the URL, which can be manually added or created using a URL builder. The campaign tags allow you to specify that your traffic is coming from an SMS versus standard web traffic. Once set up, you can test and obtain tracking data for your campaigns by navigating to real-time reports or "Acquisition" on the left nav bar, selecting "All Campaigns".
Mar 18, 2019 737 words in the original blog post.
A Girl Scout sold over 5,000 boxes of cookies by leveraging Twilio's communication tools to manage incoming messages from customers and supporters. To achieve this goal, they used TwilioQuest to get started with Twilio, then implemented logic using the Twilio REST API, Studio, and Functions. They created a workflow that handled different types of messages, including cookie orders, donations, and general communications, allowing them to quickly respond to incoming messages while keeping their personal phone numbers private. Additionally, they used Twilio SendGrid to send emails to keep their wife informed about the sales progress without overwhelming her with SMS messages. The project was a success, not only for the Girl Scout but also for the developer, who earned a coveted Twilio track jacket and learned valuable skills in programmable SMS, voice, and email.
Mar 15, 2019 1,332 words in the original blog post.
Using server-side Swift and Perfect, developers can generate songs with Markov models by predicting words from a given text file. The process involves setting up a Twilio account to receive SMS messages, using ngrok to expose the local machine's web server, and creating an HTTP route to handle incoming messages. The received message is saved to a file, which is then used to train a Markov model. The trained model can be used to generate new text or songs by calling a `buildText` function with the first word of the training file, its length, and the training file itself. This setup allows developers to create an interactive system that generates music using code, making it possible to experiment with different songs and texts to train the models.
Mar 14, 2019 1,586 words in the original blog post.
The author, Matthew Gilliard, shares his personal journey of traveling and meeting people from different places, which sparked his interest in teaching English as a Second Language. He later returned to the tech industry after moving back to the UK with his family.` `Matthew initially found public speaking to be intimidating but discovered it was enjoyable when he started presenting at conferences and running workshops and meetups for the Java community.` `He eventually transitioned into full-time developer relations, joining Twilio's team as a developer evangelist, where he can focus on serving the JVM developer community and sharing his passion for learning and teaching.
Mar 14, 2019 712 words in the original blog post.
Encrypting cookies with Angular Universal and Node.js is a crucial step in protecting user data from unauthorized access. By using encryption techniques, developers can ensure that sensitive information, such as authentication tokens and user secrets, are protected from being compromised by malicious users. In this post, Maciej Treder demonstrates how to encrypt cookies in an Angular Universal and Node.js application, using the cryptography library in OpenSSL to perform the encryption and decryption. The author provides a step-by-step guide on how to implement cookie encryption, including generating a private RSA key, encrypting the authentication cookie, and decrypting the user's secret data. By following these steps, developers can protect their applications from unauthorized access and ensure that user data remains confidential.
Mar 13, 2019 3,255 words in the original blog post.
This tutorial guides developers to create a voice-based reservation system using Laravel and Twilio. The system allows customers to interact with automated voice prompts, making reservations, paying for them, or canceling them. The application uses a custom-built database and integrates with Stripe for payment processing. The code is written in PHP and utilizes the Twilio PHP SDK to interact with the Twilio API. The tutorial covers setting up the environment, creating controllers for handling incoming calls and digit inputs, and implementing logic for processing payments. With this system, businesses can engage their customers 24/7, making it easier for them to manage reservations and provide a better customer experience.
Mar 13, 2019 1,922 words in the original blog post.
The current reality in contact centers is that locating a customer's physical location can take up to two minutes, resulting in an average cost of around £7 per call. This process often relies on chatbots or call deflection to reduce handle times and free up agents for more meaningful tasks. However, this approach may not be effective when customers are in emergency situations and need immediate assistance. A potential solution is to provide an omnichannel experience that sends an SMS to the customer while they're on the phone, links them to a webpage that determines their location, and displays that location to the agent when they answer the call. This approach uses widely known apps such as phones, SMS apps, and browsers, making it easy for customers to use intuitively. With Twilio Flex, businesses can create components with ease using React architecture, arm agents with knowledge, and focus on getting customers somewhere safe faster than ever. The location server can be deployed using a one-click deployment to Heroku, providing a proof of concept and allowing businesses to make real-time decisions based on customer locations.
Mar 11, 2019 1,447 words in the original blog post.
In this article, David Parry-Jones, Twilio's Regional Vice President of EMEA Sales, explains why he belongs at the company. He believes that building a future of communication requires engineering skill, technical ability, imagination and empathy. To achieve this, he emphasizes the importance of diversity, inclusion and belonging in an organization's culture. A high-performance team with diverse perspectives is needed to deliver magical communications experiences for customers. Parry-Jones highlights the need to make sure the experience matches the vision, by ensuring genuine belonging, loyalty, and motivation among employees. He believes that Twilio is committed to delivering on its promise of a different kind of tech company, one that genuinely seeks diverse people and points of view.
Mar 11, 2019 905 words in the original blog post.
SMS Forwarding and Responding Using Twilio and JavaScript allows users to receive SMS messages without having to reveal their personal phone number. This can be useful for various purposes, such as selling online products, reporting code of conduct violations, or maintaining privacy. The solution uses Twilio Functions, a serverless platform that enables developers to create scalable and secure applications. By creating a custom Twilio Function, users can forward incoming SMS messages to a specified phone number, which can then be responded to using JavaScript. The response is generated based on the message content, allowing users to respond with the recipient's phone number or send the original message to another user. This solution provides a flexible and customizable way to manage SMS communications without revealing personal contact information.
Mar 08, 2019 948 words in the original blog post.
To send WhatsApp messages from a Java application using the Twilio API, you need to install dependencies such as Java SE version 7 or higher, a free Twilio account with an activated WhatsApp Sandbox, and the Twilio Java Helper Library. You also need to set up your development environment and obtain your Account SID and Auth Token. The Twilio Java helper library is used to send messages via the create method of the Message class, which requires the sender's and recipient's phone numbers and a message body. Once you have installed the necessary dependencies and obtained your credentials, you can compile and run your Java application to test sending WhatsApp messages using the Twilio API. With this tutorial, you can also explore further tutorials on receiving WhatsApp messages programmatically, using messaging templates, and learning more about the Twilio WhatsApp Quickstart Docs.
Mar 08, 2019 605 words in the original blog post.
The tutorial guides the reader through setting up a system that provides one-time passwords (OTP) to users via voice calls using Twilio's programmable voice SDK and Laravel. The system includes creating a new Laravel project, setting up a Twilio account, installing the required packages, and implementing the necessary routes and controllers to handle OTP creation, validation, and voice call generation. The tutorial also covers exposing the application online using Ngrok and testing the system.
Mar 08, 2019 2,841 words in the original blog post.
To send a WhatsApp message using Python, developers need to set up their local environment with the necessary dependencies, including Python 2 or 3, a free Twilio account with activated WhatsApp Sandbox, and the Twilio Python Helper Library. They also need to export their Twilio credentials as environment variables, which can be done by copying the Account SID and Auth Token and running specific commands in the terminal. Once the environment variables are set, developers can write a Python script that uses the Twilio API to send a WhatsApp message with a specified body, from number, and to number. The script can be activated and tested using the Twilio Console's WhatsApp page, which provides instructions on how to connect to the sandbox by sending a WhatsApp message through a device. With this setup, developers can successfully send WhatsApp messages using Python.
Mar 06, 2019 645 words in the original blog post.