Build the future of communications.
Start Building for Free

go posts

  • By Matthew Setter
    How to Manage Go Application Secrets Using Vault How to Manage Go Application Secrets Using Vault

    Because modern software is so complex it needs to use secrets and confidential information, such as API keys, tokens, and the older usernames and passwords for connecting to remote servers and databases.

    While once it might have been seen as okay to store these alongside the code itself, these days — especially in light of the 12-factor app movement — that's no longer the case. It's considered bad security practice — with good reason — to keep any kind of secure information within your code.

    Consequently, a range of approaches and tools have been developed to keep credentials out of code bases, keeping them secure and readily available to the code as and when required.

    In this tutorial, you're going to learn how to manage Go application secrets with HashiCorp Vault.

    If you're a PHP developer, check out the PHP version of this tutorial.

    Prerequisites

    To follow along …

    Read More
  • By Kelley Robinson
    How to do phone verification in Go with Twilio Verify Phone verification in Go with Twilio Verify

    Phone verification is an essential part of the user onboarding process: whenever you collect new contact methods from users you should make sure those are valid. You can also use a similar workflow to authenticate users on an ongoing basis with a one-time passcode (OTP) sent to the user's phone. This is a user-friendly way to do either primary or two-factor authentication (2FA).

    This blog post will show you how to send an SMS OTP in Go using Twilio's Verify API. Best of all, once you implement the code you can send an OTP via WhatsApp, voice calls, and emails with one parameter change.

    This post uses the Twilio Go Helper Library which is currently in Pilot and under active development. If you identify any issues, please open an issue on GitHub. Learn more about support for Pilot products.

    Prerequisites for sending an SMS OTP

    To follow along …

    Read More
  • By Matthew Setter
    How to Send an Email with Go and SendGrid in 30 Seconds How to Send an Email with Go and SendGrid in 30 Seconds

    SendGrid is all about delivering exceptional email experiences. In this tutorial, you'll learn how to send your first email with Go and SendGrid in 30 seconds. To do this, you'll use the official Twilio SendGrid Golang API library to save yourself a lot of time and effort.

    Ready? Let's get started!

    Tutorial requirements

    To follow along with the tutorial, you're only going to need three things:

    1. A SendGrid account. If you are new to Twilio Sendgrid you can create a free account, which allows you to send 100 emails per day — forever.
    2. Go, version 1.18 or newer. You can download an installer from the official Go website.
    3. An email address to receive the email.
    4. An email address to send the email which has a verified identity.

    Create the project directory

    Create a new directory named send-email-with-sendgrid in your Go workspace (somewhere inside $GOPATH/src), and change into …

    Read More
  • By Miguel Grinberg
    Send Scheduled SMS with Go and Twilio Send Scheduled SMS with Go and Twilio

    Twilio is all about powering communication – and doing it conveniently and fast. Our Programmable Messaging service has been available for a long time, but until now, scheduling a message to be sent at a future time required a developer to use their own scheduling solution.

    Fortunately, this is now a thing of the past! With Message Scheduling, you can send your scheduled SMS and MMS messages with a single API call, without using custom schedulers.

    In this tutorial, you’ll learn how to send scheduled SMS notifications in Go.

    Tutorial requirements

    Read More
  • By Miguel Grinberg
    How To Send a WhatsApp Message in 30 Seconds with Golang How To Send a WhatsApp Message in 30 Seconds with Golang

    Twilio is all about powering communication conveniently and quickly in any programming language.

    In this tutorial you’ll learn how to deliver a message or notification via WhatsApp with a few lines of Go that can be added to any application with the new Twilio Go Helper Library. Ready? Let's get started!

    Tutorial requirements

    The Twilio WhatsApp sandbox

    Twilio provides a WhatsApp sandbox, where you can easily develop and test your application. Once your application is complete …

    Read More
  • By Miguel Grinberg
    How to Send an SMS in 30 Seconds with Golang How to Send an SMS in 30 Seconds with Golang

    Twilio is all about powering communication and doing it conveniently and fast in any language.

    In this tutorial you’ll learn how to deliver a quick message or notification via SMS directly from a Go application. You’ll use the new Twilio Go Helper Library to send an SMS in an insanely fast manner. Ready? Let's get started!

    Tutorial requirements

    Buy a Twilio phone number

    If you haven't done so already, purchase a Twilio phone number to send the SMS from.

    Log in …

    Read More
  • By Alaina Kafkes
    C'est la vie : envoyez des SMS avec Golang envoyer des sms avec golang

    Que ce soit sur notre téléphone, sur des post-it ou dans un carnet, nous gardons tous des citations qui nous inspirent. Personnellement, j'aime suivre @Kurt Vonnegut. Non, pas le vrai Vonnegut (qui est décédé) : juste un humain ou un bot qui tweete certains de ses fameux traits d'esprit.

    En pensant à Vonnegut, une idée m'est venue : quoi de mieux pour se lancer avec Twilio que d'envoyer des citations de Vonnegut à tous vos amis ? C'est exactement ce que nous allons voir dans ce blog : comment envoyer des SMS avec des citations de Vonnegut dans Golang.

    C'est parti : configuration de l'environnement de développement

    Avant de commencer à coder, prenez un moment pour installer Golang sur votre ordinateur. Suivez les instructions de votre système d'exploitation et n'hésitez pas à tester votre installation localement.

    Si vous n'avez jamais vu de code Golang, je vous recommande de …

    Read More
  • By Christopher Konopka
    How to Play a MP3 File with Programmable Wireless, Go and the Arduino MKR GSM 1400 arduinomkr1400.jpg

    The new MKR family of Arduino boards are going to change the landscape of rapid prototyping IoT solutions. The Arduino MKR GSM 1400 is a great solution for anyone looking to expand the scope of their IoT projects using cellular connectivity. By integrating a modem with a microcontroller a new all-in-one communication solution has started to emerge. This paired with the Twilio Programmable Wireless SIM makes it possible to communicate around the globe using Machine-to-Machine commands. “Things” can now be connected in ways previously impossible with WiFi or Bluetooth.

    This tutorial demonstrates how to send a Machine-to-Machine Command from the Arduino MKR GSM 1400 to a server written in Go. When the Machine-to-Machine Command is received server-side an audio file will play a .mp3 saying “hello”. If you want to jump ahead the completed project can be found on the TwilioIoT GitHub.

    What is the Arduino MKR GSM 1400? …

    Read More
  • By Christopher Konopka
    Introducing Twilio Developer Evangelist Christopher Konopka Konopka-DevangelIntroPost

    Following your passion and hard work are things I observed being around family when I was young. My grandfather passed away early in my life but his memory was always visible to me through the pictures hanging on the walls in my grandmother’s house.

    One wall had an image of a worn leather boot and him climbing a telephone pole next to it. He, along with other family members, were responsible for putting up telephone lines across the northern part of Massachusetts for Bell Telephone.

    Bell Labs Radio GIF-source.gif

    Growing up in this environment I was always taught to problem-solve and was encouraged to seek solutions by observing the problem through the eyes of others. From the beginning I was equipped with curiosity and inspired to use it every day.

    There were two principles I was told that make the world work: asking "why?" and communication.

    Learning Styles

    As a kid I never …

    Read More
  • By Alaina Kafkes
    So It Goes: Sending SMS with Golang Vonnegut books

    Whether stored on your phone, on Post-It notes, or in a book, everyone has their share of quotes that they look at to seek inspiration. Personally, I follow @Kurt Vonnegut. No, not the real (dead) Vonnegut: just a human or bot that tweets out some of his famous quips.

    Remembering Vonnegut, an idea struck: what better way get started with Twilio than to send Vonnegut quotes to all of your friends? That’s exactly what this blog post goes over: how to send SMS text messages with Vonnegut quotes in Golang.

    Let’s Go: Developer Environment Setup

    Before we can get coding, take a moment to install Golang on your computer. Follow the instructions for your operating system, and feel free to test your installation locally.

    If you’ve never seen Golang code before, I recommend that you poke around the Golang Tour. If you really want to dig deeper, …

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