Search code examples
phprestdebuggingsdkplivo

Plivo SMS debugging - Get all logs for specific message


I am trying to figure out how to be able to show the user a list of delivery logs related to the specific message they sent out. Right now I can't seem to find a way of grouping the logs, short of basing it off of a date and time and maybe anything within 5 minutes of the time it was sent. This is because it assigns a different message and request ID to each number that message was sent to. But is there a better way?


Solution

    1. Go to Plivo > SMS > Logs
    2. Download logs
    3. Open with Notepad++
    4. ???
    5. Filter as you please.

    Otherwise, check API documentation.

    The Plivo webapp offers these filters: "From/To/Direction/Status/Error/Timeframe" as per: snag.gy/P6sRNH.jpg

    Also, if you mean to display to the user programatically through REST API, I think you should make an app with the following flow:

    1. auth api
    2. fetch all logs (maybe pass a value of last time they sent messages + 14 days... if that is saved somewhere) > URI: /v1/Account/YOURACCOUNTMX3$cD../Message/
    3. Search by Params : { text : Your Text Here