messaging.messages

Retrieve/Delete/Add to the business message wall.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
modeenum (to, from)to : Recived messages
from: Sent messages

DOCUMENTATION

GET

Returns an array that contains all user messages.
You can specify if you want to retrieve just send, or receive messages, with parameter 'mode'.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
       "module":"messaging.messages",
       "method":"GET",
       "request":{
              "mode":"to"
       }
    }

Example Response:

{  
    "status":1,
    "data":[  
        {  
            "id":"1914",
            "from":{  
                "id":"3334",
                "name":"Alan Ford"
            },
            "to":{  
                "id":"124",
                "name":"Bob Rock"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338890805",
            "date_read":"0",
            "subject":"asda",
            "message":"sd",
            "message_formatted":"sd",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":[  

            ]
        },
        {  
            "id":"1913",
            "from":{  
                "id":"1061",
                "name":"Marc Smith"
            },
            "to":{  
                "id":"3334",
                "name":"Alan Ford"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338889951",
            "date_read":"1338912286",
            "subject":"re: tste",
            "message":"it's working :) fine...\n\n\n\n[quote=Alan Ford]tste[\/quote]",
            "message_formatted":"it's working :) fine... 
       \n 
       \n 
       \n 
        \ntste",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            }
        },
        {  
            "id":"1910",
            "from":{  
                "id":"3334",
                "name":"Alan Ford"
            },
            "to":{  
                "id":"5141",
                "name":"Steewe"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338889909",
            "date_read":"1338912226",
            "subject":"tst",
            "message":"tst",
            "message_formatted":"tst",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            }
        },
        {  
            "id":"1909",
            "from":{  
                "id":"3334",
                "name":"Alan Ford"
            },
            "to":{  
                "id":"1064",
                "name":"Alicia"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338889909",
            "date_read":"1338912214",
            "subject":"tst",
            "message":"tst",
            "message_formatted":"tst",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            }
        },
        {  
            "id":"1908",
            "from":{  
                "id":"3334",
                "name":"Alan Ford"
            },
            "to":{  
                "id":"5141",
                "name":"Steewe"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338889886",
            "date_read":"1338912217",
            "subject":"msg",
            "message":"ngs",
            "message_formatted":"ngs",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            }
        },
        {  
            "id":"1907",
            "from":{  
                "id":"234",
                "name":"Peter Griffin"
            },
            "to":{  
                "id":"1064",
                "name":"Alicia"
            },
            "type":"1",
            "replyto":"0",
            "date_sent":"1338889886",
            "date_read":"1338912218",
            "subject":"msg",
            "message":"ngs",
            "message_formatted":"ngs",
            "date_sent_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            },
            "date_read_formatted":{  
                "id":1133,
                "timestamp":1338854400,
                "month":6,
                "day":4,
                "year":2017,
                "week":23,
                "dayid":2,
                "weekday":"Mon",
                "mname":"Jun",
                "formatted":"Jun 4, 2017"
            }
        }
    ],
    "token":"xxxxxxx"
}