Unser Code sendet Twilio SMS-Nachrichten erhalten, indem Sie folgendermaßen vorgehen:Twilio - Fehlercode auf SMS senden Ausfall
// get the twilio error components
$twilio_error_status = $e->getStatus();
$twilio_error_code = $e->getCode();
$twilio_error_msg = $e->getMessage();
:
// send the text message to the member's mobile phone
try {
// attempt to send the message through Twilio
$tw_msg = $twilio_client->messages->create(
"+1".$recipient['address'],
array (
'From' => "+1".$org['twilio_number'],
'Body' => $txtmsg,
'StatusCallback' => CALLBACK_LINK.'/text_message_handler.php'
)
);
// else trap the error since the message could not be sent and the callback routine is not called
} catch (Exception $e) {
// process the text message error
process_text_msg_error($db, $e, $org, $msg, $recipient);
}
In der v4 Bibliothek wir den Fehlercode, indem Sie folgende bekommen würde
Dies gibt uns nicht, was wir mit der Verwendung der V5-Bibliothek erwarteten. Wie erhalten wir den Fehlerstatus und den Code mit der V5-Lib?
Was bekommen Sie mit der v5-Bibliothek, wenn Sie den Fehler verarbeiten? – philnash
es ist ein Array, ich muss es Ihnen mailen. – Tim