problem about twilio-Collection of common programming errors


  • Andrew Charlton
    php twilio
    I’m trying to send a text message when a form is submitted using Twilio’s test account however I’m receiving the following error: ‘Fatal error: Class ‘Services_Twilio’ not found’My code is as follows:} else{//PHP nativemail( $to_guest, $subject, $html_text, $header_guest);// Outlet Admin notification emailmail( $to_admin, $subject, $notification_text, $header_admin);/* Send an SMS using Twilio. You can run this file 3 different ways:** – Save it as sendnotifications.php and at the command line,

  • somedev
    php curl proxy http-headers twilio
    Our environment requires the use of an outbound proxy for offsite services. Normally this isn’t a problem. In this case with Twilio, the extra header returned breaks the client.Outgoing headers:POST /2010-04-01/Accounts/FOO/SMS/Messages.json HTTP/1.1 Authorization: Basic FOO== User-Agent: twilio-php/3.10.0 Host: api.twilio.com Accept: */* Accept-Charset: utf-8 Content-Type: application/x-www-form-urlencoded Content-Length: 108Response Headers:HTTP/1.0 200 Connection establishedHTTP/1.1 201 Creat

  • 2Dee
    android twilio
    I am using twilioclient-android-1.1.2-3635733 in my application, the MonkeyPhone Class file seems like – package com.twilio.example.hellomonkey;import java.util.HashMap; import java.util.Map;import android.content.Context; import android.util.Log;import com.twilio.client.Connection; import com.twilio.client.Device; import com.twilio.client.Twilio; import com.twilio.client.Connection.State;public class MonkeyPhone implements Twilio.InitListener {private static final String TAG = “MonkeyPhone”;pr

  • Will
    php twilio
    I am really frustrated as I can’t figure out why my Twilio callStatus for the REST api is not working :S…Any ideas?It makes a call at stackoverflow.php but when it hits the yournextnumber.php it doesn’t execute the if statements because most likely there is no value in the callStatus any idea why the status is not being sent?stackoverflow.php<?php // Include the Twilio PHP library require ‘Services/Twilio.php’;// Twilio REST API version $version = “2010-04-01”;// Set our Account SID and Aut

  • livebanchies
    php const user-agent twilio
    I have PHP 5.4.21I’m using a Twilio API that works fine from a browser but in command line mode, I get the following error:<b>Parse error</b>: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in <b>sms/Services/Twilio.php</b> on line <b>36</b>Line 36 of the specified file is part of the following class, please see my note where I specify Line 36.I added all lines of code leading up to and immediately after Line 36 for c

  • Ann Kilzer
    java osx ssl twilio certificates
    I’m following the Twilio-java example from the github page. Here’s the code snippet I wrote:private boolean doSms(Notification notification) {String message = “test”;try {final MessageFactory messageFactory = mainAccount.getMessageFactory();final List<NameValuePair> messageParams = new ArrayList<NameValuePair>();messageParams.add(new BasicNameValuePair(“To”, notification.getUser().getPhoneNumber())); messageParams.add(new BasicNameValuePair(“From”, BoundaryNumber)); messageParams.add

  • anks
    python django twilio
    I am getting an unexpected error and am unable to find out the solution to my problem.When I am submitting the form on which I am getting the following error:Traceback (most recent call last):File “/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py”, line 111, in get_responseresponse = callback(request, *callback_args, **callback_kwargs)File “/home/ubuntu/django-apps/poive/apps/smsreminders/views.py”, line 77, in cron_process_adherence_responsesresults =process_adherence_respons

  • Ashish Agarwal
    java google-app-engine twilio
    I am trying to create an Outbound call from google app engine using Twilio helper liabrary like below codeprivate void createcall(HttpServletRequest req, HttpServletResponse resp) {String ACCOUNT_SID = “AC69000ff19655ca86c5a4ae027b886665”;String AUTH_TOKEN = “bef9594c1e7f542b6e331bd7e50077d0”;try {TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID,AUTH_TOKEN);Map<String, String> params = new HashMap<String, String>();params.put(“Url”, “http://demo.twilio.com/docs/voice.xml”);

  • engineerKev
    php wamp twilio
    I’ve recently taken on the task of making a quick and dirty static html page that will use php to access Twilio and reply with an SMS. I am new to Twilio, and was following this tutorial:http://www.twilio.com/docs/quickstart/php/sms/sending-via-restWhen that failed I went back to check if I had skipped any steps after downloading the php zip and read over the content in the install page of the Twilio website, but even that didn’t make sense, since I have never herd of PEAR and simply downloaded

  • user2706899
    php twilio
    Hi I keep geting the following error when I try to delete a number from my twilio subaccount using REST API in PHPmy code is;$number = $twClient->account->incoming_phone_numbers->get($number_Sid); $twClient->account->incoming_phone_numbers->delete($number->sid);The error that I am getting is;[22-Aug-2013 09:40:17 UTC] PHP Fatal error: Uncaught exception ‘Services_Twilio_RestException’ with message ‘The requested resource was not found’ in C:\Program Files (x86)\Zend\Apa

  • Frank
    notifications sms twilio
    Here the piece of code/* Send an SMS using Twilio. You can run this file 3 different ways:** – Save it as sendnotifications.php and at the command line, run * php sendnotifications.php** – Upload it to a web host and load mywebhost.com/sendnotifications.php * in a web browser.* – Download a local server like WAMP, MAMP or XAMPP. Point the web root * directory to the folder containing this file, and load * localhost:8888/sendnotifications.php in a web browser.*/// Include the PHP Twi

  • user310525
    ruby-on-rails ruby twilio
    I am using twilio client to make & accept calls from a browser. But when I run the accept page, I get a javascript error on the browser -Uncaught Twilio.Exception: 401: Unable to determine account.@ line – twilio.js:2683 Here’s the code from my controlled thats gets executed when showing the accept call page/view -def prepare_accept_call # create the twilio capability objectcapability = Twilio::Util::Capability.new TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN# guessing this is not needed for acc

  • Sahin Yanlik
    php curl twilio
    Hi I am trying to send sms with Twilio api, It works on their web-sites but doesn’t work on my local server here is my code.<?php // Get the PHP helper library from twilio.com/docs/php/install require_once(‘Services/Twilio.php’); // Loads the library// Your Account Sid and Auth Token from twilio.com/user/account $sid = “I wrote my Sid(test sid also doesn’t work)”; $token = “my token”; $client = new Services_Twilio($sid, $token);$sms = $client->account->sms_messages->create(“From”,”

  • Hyper Anthony
    php twilio
    Trying to implement the Twilio Client Conference Call Monitor as described here: https://www.twilio.com/docs/howto/twilio-client-browser-conference-call-monitorIt “sees” ongoing conferences and has output like this:Found 0 conference(s) Found 1 conference(s) etc.However, it doesn’t list the ongoing conferences as desired. No further output is given.In the ssl_error_log, I found this, which is interesting:PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Objectsreturned by Services_

  • user2339071
    twilio
    I keep getting Uncaught Twilio.Exception: Run Twilio.Device.setup() when starting a call after the page posts back.The problem is not consistent and after refreshing the page several times it goes away and i can make outbound calls again. But it happens at least once after a post back.any ideas..?

  • engineerKev
    php javascript html web-applications twilio
    I am working on implementing a get link button that will send you a link via text once you type your phone number in the textfield. I am using Twilio to handle my SMS stuff, and I am following an app tutorial that teaches exactly what I am trying to implement. This is the tutorial and the ideal implementation of what I’d like to do, respectively:http://www.apptamin.com/blog/app-download-button/http://getmaid.com/So far I have made an easy html file that just displays the button, a message, and

  • NateHill
    node.js twilio
    Twilio has documentation/examples on how to respond to keywords in SMS messages for php (https://www.twilio.com/help/faq/sms/how-do-i-build-a-sms-keyword-response-application) and python (https://www.twilio.com/docs/quickstart/python/sms/replying-to-sms-messages).What’s the equivalent for grabbing the ‘Request Parameters’ using node.js? Because I’d like to be able to respond back using information received in the sms just like in the other examples. My current thinking is that my response should

  • Eric
    php drupal foreach submit twilio
    I have a Twilio account and I am writing a mass text message module for my Drupal site. At the beginning of the module I have set up the Twilio client with the following code:$path = drupal_get_path(“library”, “twilio”); require($path . “twilio/Services/Twilio.php”); $accountSID = “xxxxxxxxxxxxxxxxxxxxxxxxxxxx”; $authToken = “xxxxxxxxxxxxxxxxxxxxxxxxxxxx”; $client = new Services_Twilio($accountSID, $authToken); $from = “xxxxxxxxxx”;The myModule_submit() queries the database for phone numbers and

  • user1903663
    ruby sinatra twilio
    Sorry this is a very basic question so it should be easy to answer!Using ruby and sinatra, I am trying to connect, via the api, to get details of my calls. The prescribed way to do this by twilio seems to be: @client = Twilio::REST::Client.new account_sid, auth_token # Loop over calls and print out a property for each one @client.account.calls.list.each do |call| puts call.sid puts call.from puts call.towhich works fine and “puts” the data in the terminal. I want to print the results on an HTML

  • Nar
    ruby-on-rails ruby twilio
    I use twilio gem and I do not know how to release the phone number. I try:@client.account.incoming_phone_numbers.delete(:phone_number => phone_number)but rails say:undefined method `delete’ for #<Twilio::REST::IncomingPhoneNumbers:0x7f35c99e93e0>How to correct release number?

  • Azoloth
    c++ windows-7 g++ twilio
    I am new to C++, I am trying to compile the twilio library for it on Windows.When I try to build the code I get the following errorTo give a brief overview of what I have done and what I am using.I have MinGW installed, all library files in the proper include folder under it.I am using sublime for my IDE and this is the error received upon building it.Update*I have ran the make. I am copying the output from my Cygwin, but the normal DOS prompt gave the same output. $ mingw32-makear rcs twilio-cp

  • user382318
    python django https urllib2 twilio
    I’m looking to send an SMS with the Twilio api, but I’m getting the following error:”unknown url type: https”I’ve recompiled python with Openssl, so my code runs fine from the python interpretor, but whenever I try to run it in one of my django views I get this error. Here is my code from my view:def send_sms(request):recipient = ‘1234567890’account = twilio.Account(settings.TWILIO_ID, settings.TWILIO_TOKEN)params = { ‘From’: settings.TWILIO_NUM, ‘To’: recipient, ‘Body’: ‘This is a test message.

Web site is in building