Questions tagged [twilio-python]
40 questions
3
votes
1 answer
Unable to serialize Twilio Python SDK response objects as simple dict objects
I'm querying available phone numbers like so:
from twilio.rest import Client
client = Client(settings.TWILIO_ACCOUNT_SID, settings.TWILIO_AUTH_TOKEN)
available = client.available_phone_numbers("US").local.list()
I would like to loop through all of…

chrislondon
- 12,487
- 5
- 26
- 65
2
votes
1 answer
Put result in variable in twilio.rest
So, i have this code:
import os
from twilio.rest import Client
xml=f'''
Здравствуйте, пожалуйста введите код для подтверждения.
'''
account_sid =…

Andrew Duskin
- 27
- 3
2
votes
2 answers
Always receiving 400:Bad request when Twilio webhook is configured
I want to maintain seperate twilio phone unsubscribers list and this can be done when webhook is configured via twilio console to receive incoming messages. I would parse only those messages when some one types "STOP". I have successfully configured…

sandeep007
- 348
- 3
- 16
2
votes
1 answer
How to use RequestValidator with API Key?
I'm trying to reconcile Twilio's advice and security best practices.
I initially wrote the app using SID and auth-token.
https://www.twilio.com/docs/usage/rest-api-best-practices says:
"we recommend the use of API Keys"
So I'm converting the python…

ptone
- 884
- 7
- 5
1
vote
2 answers
WebHook in Twilio API
I can't find how to set up or change the Webhook through API.
Is it possible to change it, set it when I am buying a number, or select one Webhook URL for all numbers?
I tried to find this info in the documentation but there was helpful to me

nbo
- 21
- 2
1
vote
1 answer
How to use synthesized voice over Twilio Programmable Voice
New to Twilio, and I'm trying to integrate real-time voice clones (https://github.com/CorentinJ) over voice-SDK/programmable-voice. Can someone please suggest how to use my synthesized voice-over in a phone call (for example, instead of available…

Kris Saldana
- 11
- 1
1
vote
1 answer
Twilio not delivering outbound Whatsapp messages
I have a Whatsapp bot written in python and flask with Twilio as the Messaging API. The app was working fine until I noticed that responses sent from the app are not being delivered. Twilio however is still routing messages to my app correctly but…

Ronald Chinomona
- 39
- 4
1
vote
1 answer
How to show number of caller when forwarding call in twilio
I have an app using twilio.
I have made the twilio number public and setup call forwarding from that number to my personal number to show alerts both on the app and my phone.
The issue is that I am unable to identify the caller on my phone as it…

Waqar Ali
- 86
- 11
0
votes
0 answers
Programmable Outbound Calls : Hangup manually
I am currently learning Twilio. I tried creating an outbound call, but after creating the call and running TwiXML, call terminates automatically.
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from…

RagAnt
- 1,064
- 2
- 17
- 35
0
votes
0 answers
Twilio "Provided media content does not exist" error when trying to create message with a valid media
Cannot create a conversation message with media, or update a message with a media
I'm getting this error when trying to create a message together with a media.
response = client.conversations \
.v1 \
.conversations('CHXX') \
…
0
votes
0 answers
Using without disconnecting Soft Phone
I am trying to play a mp3 file that's hosted on Twilio Assets, while I have a Twilio.Device (from JS SDK, in browser) triggering a call.
response = VoiceResponse()
dial = Dial(
caller_id=from_,
…

Bhairav Mehta
- 3
- 4
0
votes
0 answers
twilio outbound call: not hang up OR disconnect an outbound call until told to do so
how many minutes after all instructions of twiml are executed, does an outbound call hangup?
is there a way to not make the outbound call hangup even if all instructions of twiml are executed and the twiml is not updating any longer?
I am only…

Mansi Sharma
- 1
- 2
0
votes
0 answers
Twilio : Make a call using Connect App | Twilio.Device Error: ConnectionError (53000)
I am trying to make a call using Twilio Connected App. I have
Registered a new connect app
Authorized the connect(step 1) with my account
Bought/provisioned a new incoming phone number using connected app (step 1).
Using python helper library, I…

Kunal Khatri
- 55
- 1
- 5
0
votes
0 answers
Send corousel mms items using twilio python package
I have used twilio python to send mms with single image, Please how can I send carousel images as mms using twilio python. I have this items to send as corousel
items = [
{
"media_url":…
0
votes
0 answers
How to ignore errors in twilio send sms
I am trying to send sms using python and twilio. I am actually sending 1000-2000 sms. so while sending I get errors like :
30032 - Toll-Free Number Has Not Been Verified
21610 - Attempt to send to unsubscribed recipient
so here what I am trying. I…

Sakib ovi
- 537
- 3
- 19