Get new Twilio to work with ABPro
Twilio.com recently "rewrote everything" and stock ABPro no longer works with it.
These are the steps required to get ABPro talking to the new Twilio.com.
Download the new Twilio library here..
https://github.com/twilio/twilio-php
Unzip and upload to your Joomla folder..
For ABPro 4.0.5 and above nothing further is required.
For ABPro 4.0.3 and below do the following..
Edit file: \administrator\components\com_rsappt_pro3\sendmail_pro2.php
Add these two lines at line 27..
require_once JPATH_SITE."/twilio-php-master/src/Twilio/autoload.php";
use Twilio\Rest\Client;
Change path at line 942 to this..
if (file_exists(JPATH_SITE."/twilio-php-master/src/Twilio/autoload.php")){
require_once JPATH_SITE."/twilio-php-master/src/Twilio/autoload.php";
$TwilioVer = 2;
}
Change line 947 to this..
$client = new Client($sid, $token);
Changes shown here..