I don't understand what's going on.
PHP Fatal error: Class 'TwilioRestClient' not found in /sms_twilio.module on line 126

I've got the twilio library installed and identified
This expression 'TwilioRestClient' appears nowhere in the library.
So does this module work?
What's the best gateway to use?

Comments

matslats’s picture

Status: Active » Closed (works as designed)

Twilio wrote back to me.
Apparently they have a new API for the published library file, and are not updating this module page.

- The "twilio" module (http://drupal.org/project/twilio) is only compatible with Drupal 6 and depends on the older v2.0.8 version of our PHP library, not the current v3.x release. You can download version 2.0.8 of our PHP library from here: https://github.com/twilio/twilio-php/tags
- An updated and Drupal 7 compatible version of the "sms_twilio" module is avaiable from here: http://smsserver.thetechscouts.com/
- Another Drupal module that you may want to look into is "voiptwilio" which is part of the VoIP Drupal module. Here is the project page for voiptwilio: http://drupal.org/project/voiptwilio

This is pure speculation on my part, but I have a hunch that installing the older v2 version of our PHP library might solve your "PHP Fatal error: Class 'TwilioRestClient' not found" error.