SMS Logs

SMS Logs provide detailed information about which code was sent to which number and how many times, the last login status, and other information, such as the client and AP MAC address. The SMS logs can be downloaded for specified hours, days or months.

Copy Sample JSON
Sample JSON
"SMS Account Name","Sender Component","Service Provider","Sender Id","Mobile No","Sms Content","Date Created[ (GMT +00:00) UTC ]","Extra Info"
SMS,twilio,+15207779977,+919404213999,"This is a test SMS sent via SMS (Vendor: Twilio) service.","07-Feb-2018 10:54:50 AM","SMS Test Health",null
SMS,twilio,+15207779977,+919766563149,"This is a test SMS sent via SMS (Vendor: Twilio) service.","07-Feb-2018 10:53:45 AM","SMS Test Health",null
API Calls

/v1.14/services/sms/logs/exportcsv

Get SMS Logs

Description This API provides the SMS logs that contain detail information about the guest user accessing the Internet through SMS on a mobile or a cellphone.
Guest Manager users with the Administrator role can access this API.
Syntax
GET <Base_URL>/services/sms/logs/exportcsv?filter=<value>

Here,

  • filter

    It takes a JSON value of the form: {“property”:”prop_name”,”value”:”prop_value”,”operator”:”comparison_operator”}
    Here,

    • property

      Property is a parameter in the visitor log on which the logs have to be filtered. For example, username.

    • value

      It specifies the property value to be used for filtering.

    • operator

      It is the comparison operator to be used for filtering the logs. The applicable operators are ‘=’, ‘!=’, ‘<>’, ‘<‘, ‘<=’, ‘>’, ‘>=’, ‘like’.

Sample code
GET https://analyticsdemo.mojonetworks.com/api/v1.14/services/sms/logs/exportcsv?filter=[{%22property%22:%22date_created%22,%22value%22:%222018-01-31%2011:09:06%22,%22operator%22:%22%3E=%22},{%22property%22:%22date_created%22,%22value%22:%222018-02-07%2011:09:06%22,%22operator%22:%22%3C=%22},{%22property%22:%22service_id%22,%22value%22:1,%22operator%22:%22=%22}]&timezone=UTC
Request Body This API call does not require any request body parameters.
Response Body If the API call is successful, the HTTP response status is 200.
The response body contains the details information about which code was sent to which number and how many times, the last login status, and other information, such as the client and AP MAC address.