Class 'Twilio\Rest\Client' 未在 laravel 5.2 中找到,如何使用 Twilio 对来电和去电进行通话录音
Class 'Twilio\Rest\Client' not found in laravel 5.2 ,how to do call recording using Twilio of incoming and out going calls
这是我的代码
$client = new Twilio\Rest\Client($sid, $token);
$call = $client->calls->create(
"+9xxxxxxxxxx9",
array("url" => "http://demo.twilio.com/docs/voice.xml", "record"
=> true)
);
如何使用Twilio对来电和去电进行通话录音?
提前致谢:)
您是否已更新 composer.json
以包含 Twilio 库?
如果没有,运行以下命令行:
composer require twilio/sdk
这应该会更新作曲家并下载 SDK 文件。看看这是否解决了您的问题。
Or follow the setup instructions here.
如果您已经将 twilio 添加到 composer.json
文件,请尝试 运行ning:
composer update --no-scripts
然后
php artisan optimize
这是我的代码
$client = new Twilio\Rest\Client($sid, $token);
$call = $client->calls->create(
"+9xxxxxxxxxx9",
array("url" => "http://demo.twilio.com/docs/voice.xml", "record"
=> true)
);
如何使用Twilio对来电和去电进行通话录音? 提前致谢:)
您是否已更新 composer.json
以包含 Twilio 库?
如果没有,运行以下命令行:
composer require twilio/sdk
这应该会更新作曲家并下载 SDK 文件。看看这是否解决了您的问题。
Or follow the setup instructions here.
如果您已经将 twilio 添加到 composer.json
文件,请尝试 运行ning:
composer update --no-scripts
然后
php artisan optimize