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

Ruby posts

  • By Valeriane Venance
    RubyでHTTPリクエストを行う5つの方法 5 ways to make http request in ruby

    この記事はTwilio Developer EvangelistのValériane Venanceこちら(英語)て執筆した記事を日本語化したものてす。

    こんにちは、この記事へようこそ。今日は、RubyでHTTPリクエストを行う5つの方法をご紹介します。

    コードの記述を開始する前に、私がこのチュートリアルを書いたことをとても嬉しく感じていることをお伝えしたいと思います。Ruby on Railsは、世界中で私が一番好きなフレームワークであり、こだわりの強い私はいつも大好きなものを使用する傾向があります。

    HTTPリクエストのようなシンプルなものに戻り、シンプルな.rbファイルを記述し実行することにより、私の手でRubyの力を解放でき、私達を言語の基本から遠ざけがちな、Railsの魔法に頼る必要がなく嬉しいです。

    クラシックのさらなる利点は、複雑な環境で機能することです。自分の.rbファイルで実践できるように方法をお見せしますが、Rubyベースのフレームワークでも機能します。

    この記事ではRubyベースのプログラムでHTTP呼び出しを作成する5つの方法について説明します。

    要件

    このチュートリアルを実行するには、以下が必要です。

    • Rubyがお使いのマシンにインストールされていること。私はRubyの最新バージョン(現在3.0.0)とOSXでrvmを使用していますが皆さんはご希望の方法を使用してください。
    • テキストエディター。私はsublime textまたはvimを使用しますが、ご希望のものを使用してください。

    何を達成するか

    5つの方法を使用し、GETリ …

    Read More
  • By Mia Adjei
    Build a Video Chat Application with Ruby, JavaScript, and Twilio Programmable Video Build a Video Chat Application with Ruby, JavaScript, and Twilio Programmable Video

    Video chat is a great way to keep in touch with the people you care about or collaborate with others remotely. Perhaps you've always wanted to build your own video chat application but were unsure where to start. Well, you have come to the right place!

    In this tutorial, you will learn how to build your own video chat application using Twilio Programmable Video, Ruby, and JavaScript. The server-side part of the project will be built using Ruby and the Sinatra microframework, while the client side is going to be built with vanilla JavaScript, HTML, and CSS. Sinatra is a lightweight, flexible framework for building Ruby applications. It is also a great place to get started if you are new to Ruby development.

    Prerequisites

    • A free Twilio account. (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)
    • Ruby version 3.0.0+ …
    Read More
  • By Luís Leão
    Crie um chatbot do WhatsApp com Ruby, Sinatra e Twilio Crie um chatbot do WhatsApp com Ruby, Sinatra e Twilio

    Chatbots são programas que se comunicam de alguma forma com seres humanos. Eles podem ser muito básicos, responder a palavras-chave ou frases, ou usar algo como o Twilio Autopilot para aproveitar a compreensão de linguagem natural (CLN) para fornecer uma experiência mais rica e construir conversas mais complicadas.

    Neste tutorial, veremos como é fácil começar a criar chatbots para WhatsApp usando a API da Twilio para WhatsApp e a estrutura da Web Sinatra em Ruby. Aqui está um exemplo da conversa que vamos construir:

    exemplo de funcionamento do app no WhatsApp.

    De que você vai precisar

    Para criar seu próprio bot para WhatsApp junto com este tutorial, você precisará do seguinte:

    Read More
  • By Luís Leão
    Envie uma mensagem pelo WhatsApp em 30 segundos com o Ruby Envie uma mensagem pelo WhatsApp em 30 segundos com o Ruby

    Preciso apresentar o WhatsApp? Se você estiver lendo este artigo, provavelmente já está familiarizado com ele, mas caso não esteja, o WhatsApp é um serviço centralizado de mensagens e voz sobre IP compatível com várias plataformas que permite que pessoas de todo o mundo se comuniquem por meio de chamadas de texto e voz.

    Neste tutorial, você aprenderá a enviar sua primeira mensagem de WhatsApp usando a linguagem de programação Ruby e a Twilio.

    Um pouco de configuração, 30 segundos de programação e pronto!

    Requisitos

    Para seguirmos, você precisará de:

    Primeiros passos

    Crie uma nova pasta chamada ruby-whatsapp em seu computador. É nela que vamos criar nossos arquivos de código.

    Instalar dependências

    Precisaremos das seguintes gems:

    • bundler para evitar erros de …
    Read More
  • By Valeriane Venance
    Send a WhatsApp Message in 30 Seconds with Ruby how-to-send-whatsapp-message-ruby

    Do I need to introduce WhatsApp? If you are reading this article, you are probably familiar with it, but in case you don't, WhatsApp is a cross-platform centralized messaging and voice-over-IP service that allows people from all over the world to communicate via text and voice calls.

    In this tutorial, you will learn how to send your first WhatsApp message using the Ruby programming language and Twilio.

    A bit of configuration, 30 seconds of code and you’ll be done!

    Requirements

    To follow along with me, you will need:

    Getting started

    Create a new folder called ruby-whatsapp on your computer, this is where we are going to create our code files.

    Install dependencies

    We will need the following gems:

    • bundler for avoiding permissions error
    • twilio-ruby …
    Read More
  • By Valeriane Venance
    Send vCard with Ruby and Twilio send-vcard-twilio-ruby

    Have you ever sent contact information from a phone to another ? If so, you already have encountered vCard, the standardized format for Virtual Contact Files. These .vcf files are super helpful for contact imports.

    In this blog post we will create a vCard with Ruby and send it to our phones with Twilio Programmable SMS. By the end of this tutorial you will have a Ruby script that generates vCard files and another one that sends vCards to your contacts.

    I will generate my vCard and send it to my personal phone number. You can add me to your contacts by using your phone number or create your own vCard and send it to whoever you want.

    Requirements

    To follow along with me, you will need:

    Read More
  • By Valeriane Venance
    5 ways to make HTTP requests in Ruby 5 ways to make http requests in Ruby

    Hello and welcome in this article! Today I’m going to show you five different ways to do HTTP requests in Ruby.

    Before we start writing code I want to tell you how I’m happy I wrote this tutorial. Ruby on Rails is my favourite framework in the world and as every obsessive person I tend to always use the things I love.

    Taking a step back to simple things as HTTP requests made me write and execute simple .rb files and it felt great to unleash the power of Ruby with my simple hands and not all the Rails magic that often secludes us from the basics of the language.

    And what’s even better about the classics is they work in all the more complex environments so I’ll show you here how to do it with your own .rb file but this also works in any Ruby based framework.

    That …

    Read More
  • By Valeriane Venance
    5 façons de faire des requêtes HTTP en Ruby 5 façons de faire des requêtes HTTP en Ruby

    Bonjour et bienvenue dans cet article. Aujourd’hui nous allons voir ensemble comment faire des requêtes HTTP en Ruby de cinq façons différentes.

    Mais avant de nous plonger dans le code, je voulais juste prendre une minute pour partager avec vous ma joie d’avoir écrit ce tutoriel.

    Pour l’écriture de cet article, j’ai tout fait avec de simples fichiers .rbet je ne le savais pas mais ça m’avait manqué de m’éloigner de mon framework favori - RubyOnRails - et de toute sa magie et de revenir aux basiques de ce qu’est Ruby.

    Et le meilleur dans tout ça ? Les basiques fonctionnent aussi dans les cas plus complexes, donc je vous montrerai comment intégrer tout ça dans votre framework Ruby préféré en fin d’article.

    Prérequis

    Pour suivre ce tutoriel, vous aurez besoin de:

    • Ruby installé sur votre machine. J’utilise Ruby dans sa dernière version, actuellement 3.0.0 et je gère mes …
    Read More
  • By Valeriane Venance
    Créer un répondeur avec Twilio et Ruby on Rails Créer un répondeur avec Twilio et Ruby On Rails

    Une façon utile et répandue d’utiliser Twilio est de créer un numéro de téléphone qui redirige vers notre numéro de téléphone réel. On peut ainsi donner ce numéro à nos contacts professionnels et gérer nos appels business depuis notre portable. Notre numéro personnel est ainsi masqué derrière notre numéro Twilio.

    Dans ce post je vais vous montrer comment créer un système de boîte vocale qui s’activera si vous êtes déjà en communication ou que vous ne prenez pas l’appel. Ce répondeur diffusera un message préenregistré, prendra le message de l’appelant et vous enverra un SMS avec un lien permettant d’y accéder. Encore plus simple que de devoir appeler sa boîte vocale.

    Avant de commencer : Comment Twilio gère les appels

    Lorsqu’un appel est émis vers votre numéro de téléphone Twilio, une requête HTTP est envoyée à une URL qui pointe vers un serveur web. Le serveur web reçoit et traite …

    Read More
  • By Valeriane Venance
    Building Voicemail with Twilio and Ruby building-voicemail-twilio-ruby-on-rails

    One useful and common way to use Twilio is to create a phone number which forwards to your real phone. You can hand out the Twilio number to colleagues or customers and take business calls on your personal phone without worrying about handing out your real phone number. This also gives you a lot of options for how to handle these calls - you have the full power of Twilio at your disposal.

    In this post I'll show you how to create a voicemail system that will jump in when your cell number is busy, or when you don't answer the call. It will play a message to your caller, then record their message and text you a link to the recording when it's done.

    Primer: How Twilio Handles Calls

    When someone dials your Twilio number, an HTTP request is sent to a URL that you provide. The …

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