GET ./mesaje
It is used to return the messages list.
GET parameters
Name | Value Type | Validation | Details |
---|---|---|---|
msgType | int | Optional | values[1,2,3,4]; Message type. 1 = received, 2 = sent, 3 = archive, 4 = draft |
_limit | int | Optional | Number of results. |
_offset | int | Optional | Starting position of the results. |
msgStared | int | Optional | values[0,1]; Favorite messages. |
msgCitit | int | Optional | values[0,1]; Read messages. |
msgTrashed | int | Optional | values[0,1]; IF the valeu is 1, then we will return all the messages from trash. |
filterUaTip | int | Optional | values[1,2,3]; Filter messages after user type. 1= student; 2 - parent; 3 - teacher. |
filterSearch | string | Optional | Search for a subject, message, sender, recipient. |
Output example for inbox
{"meta": {"totalCount": "365"},"data": [{"msgID": "26951","msgExpeditorText": "Adservio Echipa (Reprezentant Adservio)","msgSubiect": "Coduri de acces pentru elevi si parinti","msgDataInsert": "2018-02-16 15:27:48","msgAreAtasamente": "1","msgCitit": "0","msgStared": "1","msgTrashed": "1","msgStack": "0"},{"msgID": "26950","msgExpeditorText": "Adservio Echipa (Reprezentant Adservio)","msgSubiect": "Coduri de acces pentru elevi si parinti","msgDataInsert": "2018-02-16 15:26:59","msgAreAtasamente": "0","msgCitit": "1","msgStared": "0","msgTrashed": "0","msgStack": "0"}]}
Output example for sentbox
{"meta": {"totalCount": "265"},"data": [{"msgID": "26955","msgDestinatarText": "Andrei Maia2 - Gr. Mij. BUBURUZA - părinte","msgSubiect": "Jurnalul zilei de 25/04","msgDataInsert": "2018-04-25 13:04:49","msgAreAtasamente": "0","msgCitit": "1","msgStared": "0","countDestinatari": "1","countCitit": "0","msgStack": "0"},{"msgID": "26954","msgDestinatarText": "11 11 - Gr. Mij. BUBURUZA - părinte","msgSubiect": "Jurnalul zilei de 24/04","msgDataInsert": "2018-04-24 15:45:39","msgAreAtasamente": "0","msgCitit": "1","msgStared": "1","countDestinatari": "1","countCitit": "0","msgStack": "0"}]}