Questions tagged [twilio]

Twilio provides APIs and tools to add communications-related functionality (SMS/MMS, voice, video, e-mail, chat, 2FA, and others) into web and mobile applications.

Twilio provides APIs and tools to add communications-related functionality (SMS/MMS, voice, video, e-mail, chat, 2FA, and others) into web and mobile applications. There are helper libraries for many server-side programming environments (listed below), and client-side libraries for desktop web browsers, , and .

Documentation

Libraries / Language support

Related tags

  • Largely duplicative of this tag
  • Questions related to Twilio's Programmable Chat SDK
  • Questions related to Twilio Functions, a serverless function service operated by Twilio
  • Questions related to using Twilio Voice for standard PSTN phone calls or VoIP calling
  • Questions related to the WebRTC Video SDK for web and mobile apps
  • Questions related to Twilio's programmable contact center platform.
  • Questions related to Twilio's visual programming tool, Twilio Studio
  • Use to identify questions related to use of, or problems with, Twilio's APIs in PHP applications.

SIGNAL

Twilio's annual conference for programmable communications in San Francisco. Details for the next conference date can be found here.

10218 questions
16
votes
1 answer

Twilio TaskRouter JS SDK not working

According to Twilio Docs I'm trying develop a Call-center Application But The TaskRouter JS v1.13/taskrouter.min.js Not supporting as twilio explain in document…
SamDev
  • 185
  • 2
  • 11
16
votes
8 answers

Check Twilio balance from API

Does anyone know how to programmatically check account balances in Twilio (via API)? Was it not implemented?
user4768753
  • 171
  • 1
  • 4
16
votes
4 answers

One-Time User Authentication with SMS Using Django and Twilio

I am writing a back-end in Django for a mobile app I am creating. I need to authenticate a user the first time they open the mobile app through SMS to verify it is a real person. What needs to happen is the following: user enters phone number in…
jaredthecoder
  • 315
  • 2
  • 3
  • 8
16
votes
3 answers

Phone number based Devise authentication for mobile apps

We all know that Devise is de facto standard for implementing authentication on rails based apps. By default it uses email as ID but also allows you to use usernames instead. It also has "Confirmable" module which lets you confirm the email address…
Vlad
  • 8,038
  • 14
  • 60
  • 92
16
votes
1 answer

Twilio test credentials logs

Is there a way of seeing the logs of your Twilio test credentials? I am using my test credentials for testing, and I would like to know if my test messages are sent.
Ita
  • 901
  • 6
  • 21
15
votes
11 answers

twilio error 'username required'

var express = require('express'); var router = express.Router(); var bodyParser = require('body-parser'); var nodemailer = require('nodemailer'); var TWILIO_TOKEN = "270ff32fe16828869dc30e0c6926fa9e"; var client =…
Champa
  • 585
  • 2
  • 6
  • 20
15
votes
2 answers

Postman Twilio Rest Api

Hi I was wondering if someone could help me ,I am trying to use twilios' rest api and im running into some trouble. MyAccountIdSid,mySid and phone numbers are filled in in the actual request,Is there something i am doing wrong, I get Your…
kelevra88
  • 1,532
  • 3
  • 17
  • 25
15
votes
2 answers

Test telephone numbers for Twilio

Does Twilio have any "test" telephone numbers that I can use to emulate outbound calls? For example, I'd like to be able to test my app to the fullest, getting back asynchronous responses (like I would normally expect to) for calls that are busy,…
Brad
  • 11,262
  • 8
  • 55
  • 74
15
votes
2 answers

Twilio vs google voice api for SMS

I am building a mobile app (android et al) that I need to use SMS for. The SMS would simply send an activation code when user first registers with my app (and maybe one other equally simple usage). Since Google is a respected company and Google…
learner
  • 11,490
  • 26
  • 97
  • 169
14
votes
1 answer

How to include 'data-urlencode' using php curl library

I am trying to connect twilio api using Curl php. The following is the code from Twilio api I used an online tool php to curl but it didn't converted the code with data encode url. The question which was marked as duplicate has no information about…
chmod777
  • 153
  • 1
  • 6
14
votes
3 answers

ImportError: cannot import name TwilioRestClient

I ran the Example code of send text using Twilio,the code from:https://www.twilio.com/docs/libraries/python my code is: from twilio.rest import TwilioRestClient, account_sid = "{{ Account 510 from www.twilio.com/console }}" auth_token = "{{ Auth…
Vivian
  • 209
  • 1
  • 3
  • 8
14
votes
1 answer

Diverting twilio call to voicemail if unanswered

I'd love some advice on my twilio setup for a problem I'm trying to solve. Overview: Each user in our system is provisioned a twilio phone number that they can hand out to anyone to contact them. If personA contacts a user in our system (userB) via…
kajham
  • 1,241
  • 15
  • 19
14
votes
1 answer

How to receive SMS to a twilio number

I have created a free account in twilio for sending SMS through my website. After my registration I got a twilio number like XXX-XXX-XXXX. I am able to send message to mobile numbers but I don't know how to use this twilio number for receiving SMS.…
BIJU
  • 153
  • 1
  • 1
  • 7
14
votes
7 answers

Twilio REST API error - "Authenticate"

I'm getting the following error when I try to place calls using the Twilio REST API. https://www.twilio.com/docs/api/rest HTTP/1.1 401 Unauthorized Server: nginx Date: Thu, 10 May 2012 16:50:48 GMT Content-Type: application/xml Connection: close…
Sparky
  • 4,769
  • 8
  • 37
  • 52
13
votes
1 answer

Mock patch is not working with class in __init__.py

I'm trying to use patch to return the a Mock from within a method. The basic structure is as follows: MyCode.py class MyClass: def __init__(self, first_name, last_name): self.first = first_name self.last = last_name def…
David S
  • 12,967
  • 12
  • 55
  • 93