twilio-api

How to send SMS based on cell contents in Google Sheets

淺唱寂寞╮ 提交于 2019-12-11 06:23:26
问题 This is a follow up to my last question How to loop an onEdit function to send emails from multiple rows in Google Sheets? Now to finish this project, I need to be able to send SMS based on a cell's contents. I'm using Twilio, and the code from their example https://www.twilio.com/blog/2016/02/send-sms-from-a-google-spreadsheet.html allows me to send texts to ALL numbers in the spreadsheet when I run the function. There is some help at this question Send SMS from Google Sheet however since I

Twilio - Pass custom parameters to JS client, so my client knows who's calling

北城以北 提交于 2019-12-11 05:29:15
问题 I have a web app that accepts incoming phone calls at a twilio number. The calls are routed through the webserver, where details on the incoming caller can be retrieved. I'm trying to pass the caller name and additional details to the agent client in javascript, BEFORE the incoming call is accepted. After 2 days of trying, I haven't found any way to do this. I know I can pass the info back to the client through a websocket in the same server method that creates the TWiML, but that seems like

How to get Twilio conference participants after it is over?

别来无恙 提交于 2019-12-11 04:58:24
问题 As per Twilio docs curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFbbe4632a3c49700934481addd5ce1659/Participants.json -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token' should give list of participants but I don't get list of participants after conference is over, I only get data back when conference is in-progress . Whereas if I go to Twilio console, I am able to see all the participants details(timestamp, phone numbers, duration etc)

Twilio iOS Video Call: Getting “User is unavailable” error message when user rejects the call

China☆狼群 提交于 2019-12-11 04:45:08
问题 I am implementing twilio's video call in my iOS application. The problem is that I am looking for a way to know when the counterpart application is dead to send him a VoIP Push notification. The solution I was trying to implement was that, when the call returns "User is unavailable" error then i would tell my backend to send VoIP notification to the counterpart, the problem with this solution is that I found a twilio's bug where sometimes if the user rejects the call twilio's SDK returns a

AttributeError when creating Notify service via client.notify.services() using the Python SDK

不羁的心 提交于 2019-12-11 03:53:27
问题 I'm trying to create a binding for an SMS-related notify service in Twilio (Python SDK, v 6.4.3), but it keeps giving me an AttriuteError . The code is simply: from twilio.rest import Client from myproj.twilio_settings import ACCNT_SID, AT, SERV_SID client = Client(ACCNT_SID, AT) service = client.notify.services(SERV_SID) def bind_user_to_twilio_notify_service(user_id,phone_number): binding = service.bindings.create( identity=user_id, binding_type='sms', address=phone_number, ) print(binding

Twilio Auth windows enviro variables

本小妞迷上赌 提交于 2019-12-11 03:17:03
问题 I'm putting together some python code to move and then delete recordings from Twilio. There's plenty of documentation online to help with the script but the documentation says that I need to add the authorization code and token as a windows variable. The documentation shows how to get to the correct location to add these variables but does not show exactly what to enter, which location to enter it into or the exact format that it needs. I'm am new to all of this. On my Windows 10 machine - in

Adding a third-party library (twilio) to project using Google App Engine and Django

别等时光非礼了梦想. 提交于 2019-12-10 20:29:20
问题 Everyone. I'm a newbie in this field. I develops web application with google app engine using django framework. I have a troubleshot about python lib dir problem... ImportError: no module named... my appengine_config.py file is # [START vendor] from google.appengine.ext import vendor vendor.add('lib') # I believes this line is to add 'lib' folder to PATH. # vendor.add(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')) # <-- and I tried too this line. # [END vendor] my

Python Twilio Message blocked (Error - 30004)

给你一囗甜甜゛ 提交于 2019-12-10 14:58:11
问题 I tried to create a python app which sends a sms notification using twilio. When I try to send a message using the twilio client I get (in the Twilio Debugger): Error - 30004 Message Delivery - Message blocked Possible Causes The destination number you are trying to reach is blocked from receiving this message (ex. due to blacklisting). I did the steps, got number, got token, what should I do to resolve the error? 回答1: It depends from number to number. It could be block as promotional message

Twilio Chat API, getUnconsumedMessagesCount always 0

馋奶兔 提交于 2019-12-10 03:41:44
问题 I'm trying to get the number of messages unread for a specific member in a specific channel. To do this I was hoping to use channel.getUnconsumedMessagesCount() as defined in the documentation. myChannel.join() .then(function(c) { console.log('Joined channel ' + c.sid); return myChannel.getUnconsumedMessagesCount(); }) .then(m => { console.log('current count unread: ' + m); }); The unread count always return 0. To test, I do the following: user 2 submitting a message to myChannel in another

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