URL: v3/api/logs/mail

Method: GET

Description : Gets the list of logs

Parameters:

Parameter Type Optional/Required Description
search_query string Optional String that has to be searched
sort_order string Optional Sort order `asc` or `desc`
sort_field string Optional Field by which results has to be sorted
limit string Optional Count of results that are required
category_ids string Optional Log Category Id by which results can be filtered
created_at_start string Optional Start time for created at
created_at_end string Optional End time for created at
sender_emails array Optional emails of the users
reciever_emails array Optional emails of the users

Response:

{

"success":true,

"data":{

"current_page":1,

"data":[{

"id":5,

"referee_id":"message_id",

"referee_type":"mail",

"sender_mail":"test_sender",

"reciever_mail":"test_email",

"subject":"subject",

"source":"mail",

"created_at":"2018-12-27 03:24:30",

"category":{"id":3,"name":"mail-fetch"}

},

{

"id":6,

"referee_id":"message_id",

"referee_type":"mail",

"sender_mail":"test_sender",

"reciever_mail":"test_email",

"subject":"subject",

"source":"mail",

"created_at":"2018-12-27 03:24:30",

"category":{"id":3,"name":"mail-fetch"}

}

],

"first_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1,

"from":1,

"last_page":1,

"last_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1",

"next_page_url":null,

"per_page":10,

"prev_page_url":null,

"to":2,

"total":2

}

 

Tagged: