Questions tagged [twilio-php]

Use to identify questions related to use of, or problems with, Twilio's PHP Helper Library.

Use the tag for questions about use of any API or service via the PHP Helper Library.

Twilio refers to a set of web services, APIs and tools provided by the company of the same name, used to send and receive text/picture messages, make and receive phone calls, and embed VoIP calling into web and native mobile applications.

Related tags

  • Use to identify questions related to use of, or problems with, Twilio's APIs.
  • Use to identify questions related to use of, or problems with, Twilio's Click-to-Call service or API.

Documentation

715 questions
2
votes
1 answer

Twilio Error: "12200 Schema validation warning Description Invalid content was found starting with element 'Message'. One of '{Play"

I am getting this error from Twilio. 12200 Schema validation warning Description Invalid content was found starting with element 'Message'. One of '{Play The markup is formed like this.
arun kumar
  • 703
  • 2
  • 13
  • 33
2
votes
3 answers

How do I send a user token via SMS with Authy and PHP?

I am trying to run a demo for Authy in PHP. I have installed the Authy library with Composer, so now I can register a user using hardcoded values like this: $authy_api = new Authy\AuthyApi('', 'http://sandbox-api.authy.com'); //…
Guybrush Threepwood
  • 1,253
  • 1
  • 11
  • 21
2
votes
1 answer

Error getting voice pricing for specific numbers

I am working on a Silex based web app that interacts with Twilio I am trying to use twilio-php to retrieve pricing data from Twilio for outbound calls to specific phone numbers, but am running into an unexpected error. The relevant portion of my…
lzam
  • 185
  • 16
2
votes
1 answer

Display Single Result from Returned List

I'm trying to work out how I can display the first returned value (phone number) only. At the moment this code returns ALL available numbers but I only want to display one to the customer. Here's the code. I hope someone can help. I'm pretty new to…
user3666207
  • 29
  • 1
  • 8
2
votes
0 answers

Twilio iOS - custom parameters to TCDevice connect:delegate:

The Twilio docs say I can pass an NSDictionary of both pre-defined and arbitrary parameters to connect that will be passed along to my app server-side, which leads me to believe I can do something like this: NSDictionary *params =…
Ethan C
  • 1,408
  • 1
  • 14
  • 26
2
votes
1 answer

Twilio SMS Using PHP (Not Sending or Loading PHP page)

So this is what's on the top of the PHP file:
jKIM
  • 155
  • 7
2
votes
1 answer

StatusCallBack Example

What I want to do is simply call a list of numbers. If a number do not answer, I will need to call an alternative number for that specific number. So I have put together the code below, which makes the outbound call. But I have no sample of…
Cengiz
  • 303
  • 2
  • 9
2
votes
1 answer

Is there a way we can dial two numbers and make them join a conference

I am new to Twilio. Is it possible to make calls to two phone numbers and join them into a conference using Twilio-PHP? I know we can join two received calls into a conference, I'm wondering if we can do the same with two dialed calls. If yes , I…
1
vote
1 answer

Twillio SMS statusCallback not firing to webhook in PHP

I am using Twillio's sending of an SMS message, $client = new Client($GLOBALS['twSID'], $GLOBALS['twToken']); $client->messages->create( // the number you'd like to send the message to $phoneNumber, [ // A…
rsirota
  • 321
  • 3
  • 15
1
vote
1 answer

Twilio REST API - Fetching call logs seems to be an infinite loop

I am using the Twilio SDK to make REST requests to fetch the calls made during the last day and the amount of calls is bigger than the total amount of calls on my account. It just keeps running indefinitely. I did make only one request to the…
MikeVelazco
  • 885
  • 2
  • 13
  • 30
1
vote
1 answer

PHP SDK Lookup API and SMS Pricing

I would like to validate a phone number and get the price that it would cost to send a SMS to that phone number. I can do this with 2 API calls, however according to https://www.twilio.com/docs/sms/api/pricing you can do this with 1 call? "Prices…
1
vote
1 answer

I want to change the body of sms in evey message using Twilio Nofity?

I am trying to send the bulk sms I had uploaded the number list in database and fetch that here. This code is working fine for different numbers with same sms body. $recipients = array(); foreach($phone_nos as $phone_no) { …
NomanJaved
  • 1,324
  • 17
  • 32
1
vote
1 answer

Twilio Conference statusCallback - PHP - statusCallback url never gets called on specified events

I'm trying to log some data about ongoing conferences in my database by using conference statusCallbackEvent and statusCallback, however my statusCallback URL never gets called for the events specified in statusCallbackEvent. For example, for an…
rdpqdev
  • 11
  • 1
1
vote
1 answer

Validate Twilio Notify deliveryCallbackUrl - What is the desired format for a nested request?

I'm working on a project that uses Twilio Notify for mass text notifications. I would like to track the status of individual messages, so I added a deliveryCallbackUrl to the notification resource. $notification = $service->notifications->create([ …
1
vote
1 answer

Any advice on Twilio's recordingStatusCallback usage?

I'm struggling to find proper documentation on how to fetch the recordingURL, or even the recording SID. Twilio's documentation isn't very clear, can someone help me out on this? Specifically in PHP, but any help is appreciated.