当我尝试使用TWILIO时出现错误。 该错误是语法错误 PHP Twilio中意外的"使用"(t_use(。
问题是 use 语句的位置。
//This needs to be at the top of your PHP file, not nested in a conditional eg [IF statements or while loops]: top of your PHP file like as though you are connecting to database.
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';
use TwilioRestClient;