how to remove twilio logs(message) using "aloha/twilio" package?

Submitted by ssboopathi1991 - 5 months ago

I am using below method to get the logs from twilio account.

  
  $client = new Services_Twilio($twilo_sid, $twilio_token);
$call = $client->account->messages->getIterator(0, 50, array('DateCreated>' => '2016-09-25 08:00:00', 'DateCreated<' => '2016-12-01'));

Unable to get the result. Reference link: https://www.twilio.com/blog/2012/02/manage-your-call-recordings-with-the-rest-api.html#file-delete-recordings-php-LC1

Above link reference they used to get the call recordings, but need to get message logs.

I am refer this link also https://www.twilio.com/docs/api/rest/transcription#instance-delete

i am using aloha sdk version-4.

    $client->account->transcriptions->delete("TR8c61027b709ffb038236612dc5af8723");
But here i am getting the error
  
  
  {
        "message": "The requested resource /2010-04-01/Accounts/ACa0946c498b75106632928c87c2a1e70f/Transcriptions/SM47a7aaa4cff04a23ac0e6138e3652037.json was not found",
        "code": 20404,
        "status_code": 500,
        "debug": {
            "line": 297,
            "file": "/var/www/html/vendor/twilio/sdk/Services/Twilio.php",
            "class": "Services_Twilio_RestException",
            "trace": [------]
    }
    }
comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks