Issue
I am using twilio trial account for sending message and it generate SMS logs. I want to remove all SMS logs from my trial account of twilio. please help me.
Solution
You can use the PHP helper library to redact the body of a message, or delete the entire message resource:
$client = new Services_Twilio('AC123', '123');
$message = $client->account->messages->get("MM123");
$message->redact(); // Erases 'Body' field contents
$message->delete(); // Deletes entire message record
More info on deleting message can be found in our docs.
Hope that helps.
Answered By - Devin Rader Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.