twilio

Twilio Call Function - Multiple User input

坚强是说给别人听的谎言 提交于 2019-12-08 09:31:32
问题 Here's my code, tried to add more questions in a call when I pass test2 from test1, it won't redirect, it still goes to test1 because event.digits exist. How can I differentiate Digits to call to new function? const got = require('got'); exports.handler = function(context, event, callback) { console.log(context); // We can set up our initial TwiML here let twiml = new Twilio.twiml.VoiceResponse(); let gather = twiml.gather({ input: 'dtmf', finishOnKey: '#' }); if (event.Digits) { var

How to receive sms messages on raspberry pi

不打扰是莪最后的温柔 提交于 2019-12-08 09:07:12
问题 I recently set up a Twilio account and got a registered Twilio phone number. Is there a way that I can get those messages on my raspberry pi? My intent is to display those messages on a LED screen. 回答1: You'd have to either expose the RasPi to the public internet (so Twilio's SMS callback could reach it), or use some proxy service in between. The proxy would capture the inbound callback, then the RasPi could either poll, or use some better method, to check for new messages (meaning, the RasPi

Send SMS from Google Sheet

北城以北 提交于 2019-12-08 08:45:35
问题 I got the script to send SMS for all the rows in a google sheet using Twilio example. I want to send SMS acknowledgement to my customers from the below google sheet https://docs.google.com/spreadsheets/d/1Jpka0Wn8cQ6J6Be8Ks5vF-JJ50ykdCuMIetrWjAi7Kw/edit?usp=sharing I want SMS to go only once to all the customers for whom the Status is not starting with "Sent" and where the phone number is starting with "+91" The SMS will be like this Complaint No "SER 160530" with us registered on "16/5/16"

Google sheets script sending twilio SMS messages works when run manually but fails when triggered by time

醉酒当歌 提交于 2019-12-08 08:18:49
问题 I am trying to build a google sheets spreadsheet to send SMS reminders. At this stage, I'm still just building the basics of sending SMS from google sheets. I have replaced some fields with their names, eg the API SID and token, and my phone number. My code is below: //At the moment this seems to work when manually run, but not when triggered by time or whatever. function sendSms(to, body) { var messages_url = "https://api.twilio.com/2010-04-01/Accounts/API_SID_GOES_HERE/Messages.json"; /

Unauthorized endpoint, please check Setup->Security->Remote site settings endpoint

余生颓废 提交于 2019-12-08 08:14:35
问题 I'm unable to send an SMS via Twilio API. I got the exception below: ERROR : Unauthorized endpoint, please check Setup->Security->Remote site settings endpoint: url global class SampleSMSTest { @future(callout=true) public static void testsms() { try { String account = 'xxxxxxxxx'; String token = 'xxxxxxxxxx'; TwilioRestClient client = new TwilioRestClient(account, token); Map<String, String> params = new Map<String, String> { 'To' => '+91953835xxxx', 'From' => '+1920569xxxx', // twilio

Meteor Twilio MRT package

孤街浪徒 提交于 2019-12-08 08:03:54
问题 Quick question (I hope) - I'm trying to use the Meteor Twilio package ("mrt add twilio") to send SMSs from my app. Everything is set up correctly (and I pre-installed Moment as mentioned in the docs), I think... however I'm getting a "Twilio is not defined" error when my code is run in the event handler. Presumably this is something to do with the way the package 'requires' the NPM package code? Has anyone else faced this? Template.registration.events({ 'click #registerButton': function (e) {

Backbone/JS: looking to access the Twilio SMS API via an AJAX call

早过忘川 提交于 2019-12-08 06:38:26
问题 Looking to set up Twilio's SMS service so that when a user presses a certain button, it leverages my account with Twilio to send a text. Using Backbone.js with coffeescript, and this has to be done client-side for the moment, so I'm doing something like this: events: { "click .button": "sendText" } and then sendText looks like this: sendText: ()-> accountSid = '{my account sid}' authToken = '{my auth token}' ToNumber = "{string of a number to text to}" FromNumber = "{string of my Twilio

How do I set up a function app to extract data from media type 'application/x-www-form-urlencoded'

风流意气都作罢 提交于 2019-12-08 04:34:45
问题 I have the following code in my Function App using System.Net; public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) { var data = await req.Content.ReadAsAsync<PostData>(); var sid = data.sid; log.Info($"sid ={sid}"); return req.CreateResponse(HttpStatusCode.OK, $"Current Time : {DateTime.Now}"); } public class PostData { public string sid { get; set; } } The error message is No MediaTypeFormatter is available to read an object of type 'PostData' from

Change “from” field of SMS text message for recipient

爱⌒轻易说出口 提交于 2019-12-08 04:28:21
问题 I want the recipient of my SMS text message to see the name of my business, rather than the phone number. How is this possible? I am currently using Twilio, but I am open to suggestions involving other services. 回答1: Twilio developer evangelist here. I know this is a good few months since you asked this, but I wanted to update the possible answers for completeness. When you asked this in November 2014 it was not possible to send SMS messages from Twilio using an alphanumeric sender ID.

Twilio hangup call through REST API not working?

北城以北 提交于 2019-12-08 04:07:44
问题 How to hang up the call whent it's status is in queued state(ringing or initiated)? None of the codes below have any effect on call, call continues to ring untill receiver picks up.Sometimes when agent realizes they are dialing wrong number they need a way to hangup the call in the middle of ringing. PHP code $client->calls($callRecord->call_sid)->update([ 'status' => 'canceled' ]); $client->calls($callRecord->call_sid)->update([ 'status' => 'completed' ]); $client->calls($callRecord->call