Je cherche à faire un simple, supprimer tous les enregistrements et je continue à avoir cette erreur jeté:Fatal error: Uncaught exception 'Twilio Exceptions EnvironmentException' avec le message « Impossible de résoudre l'hôte: 0
Fatal error: Uncaught exception 'Twilio\Exceptions\EnvironmentException' with message 'Could not resolve host: 0' in C:\xampp\htdocs\twilio-php-master\Twilio\Http\CurlClient.php:41 Stack trace: #0
l'utilisation de code est ci-dessous, aidez svp!
<?php
require_once 'twilio-php-master/Twilio/autoload.php';
use Twilio\Rest\Client;
// Set our AccountSid and AuthToken
$sid = 'MYSID';
$token = 'MYTOKEN';
// Your Account Sid and Auth Token from twilio.com/user/account
$client = new Client($sid, $token);
foreach ($client->account->recordings->getPage(0, 50, array('DateCreated>' => '2011-07-05 08:00:00', 'DateCreated<' => '2011-08-01')) as $recording) {
echo $recording->sid." -- ". $recording->date_created . "\n";
$client->account->recordings->delete($recording->sid);
}
?>
Selon le code, il semble que 'getPage()' recherche '$ targetUrl'. – aynber