You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace Mini\Controller;
use Mini\Libs\Tools\Guard;
use Twilio\Rest\Client;
class HomeController
{
public function __construct()
{
Guard::guard();
}
public function index()
{
$twilio = new Client(TWILIO_SID, TWILIO_TOKEN);
$message = $twilio->messages
->create("whatsapp:+55650000", // to
[
"from" => "whatsapp:+14155238886",
"body" => "Twilio Sandbox: ✅ Hello customer Naelson!",
]
);
print($message->sid);
require APP . 'view/_templates/header.php';
require APP . 'view/index.php';
require APP . 'view/_templates/footer.php';
}
}
Warning: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP) in /var/www/html/crm-2wins/vendor/twilio/sdk/src/Twilio/Http/CurlClient.php on line 115
If i put it in public index.php will disappear errors
The text was updated successfully, but these errors were encountered:
Warning: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP) in /var/www/html/crm-2wins/vendor/twilio/sdk/src/Twilio/Http/CurlClient.php on line 115
If i put it in public index.php will disappear errors
The text was updated successfully, but these errors were encountered: