GET ./chat/messages

Tags: simple-query, pagination

Can be used to retrieve lists of messages with various filters.

  • If parameter withReport is used, a key cmrInfo will be added in response witch mentions that the user reported the message..
  • If the message count 5 reports, then the message will be ignored from the list.

Permission only with school config keys: grpEnabled

Observations: The response 'cmsgText' will be html, instead bbcode.

GET parameters

NameValue TypeValidationDetails
crIDintRequiredRoom ID.
withReportintOptionalIf present, a cmrInfo key will be present; values[0,1].

Output example

{
"meta": {
"countTotal": "3",
"countData": "3",
"countOffset": "0"
},
"data": [
{
"cmsgID": "16",
"cmsgType": "1",
"cmsgText": "Sedinta de partid",
"cmsgFsID": null,
"cmsgCreatedDate": "2021-01-26 16:36:10",
"cmsgReportCount": "1",
"cmInfo": {
"uaID": "5335",
"uaTip": "3",
"uaFirstName": "Elena",
"uaLastName": "Popescu",
"uaSex": "2",
"prefAvatar": "https://dl.dev.adservio.net/adservio-avatar/45362d53ee305dcfb7d4696d8ae0be1e11d2d16acd7fbc8b04ce201fc37c7816.jpeg",
"functii": [
{
"cfID": "14",
"cfNume": "text_profesor"
},
{
"cfID": "16",
"cfNume": "text_director"
},
{
"cfID": "26",
"cfNume": "text_educator"
}
]
},
"cmrInfo": {
"cmrID": "1",
"cmrCmID": "5",
"cmrCreatedDate": "2021-02-01 13:59:34"
}
},
{
"cmsgID": "21",
"cmsgType": "1",
"cmsgText": "<b>TEST</b> lorem ipsum",
"cmsgFsID": null,
"cmsgCreatedDate": "2021-01-29 10:51:01",
"cmsgReportCount": "0",
"cmInfo": {
"uaID": "5335",
"uaTip": "3",
"uaFirstName": "Elena",
"uaLastName": "Popescu",
"uaSex": "2",
"prefAvatar": "https://dl.dev.adservio.net/adservio-avatar/45362d53ee305dcfb7d4696d8ae0be1e11d2d16acd7fbc8b04ce201fc37c7816.jpeg",
"functii": [
{
"cfID": "14",
"cfNume": "text_profesor"
},
{
"cfID": "16",
"cfNume": "text_director"
},
{
"cfID": "26",
"cfNume": "text_educator"
}
]
}
},
{
"cmsgID": "25",
"cmsgType": "1",
"cmsgText": "gigi are mere",
"cmsgFsID": null,
"cmsgCreatedDate": "2021-01-29 11:05:57",
"cmsgReportCount": "0",
"cmInfo": {
"uaID": "5335",
"uaTip": "3",
"uaFirstName": "Elena",
"uaLastName": "Popescu",
"uaSex": "2",
"prefAvatar": "https://dl.dev.adservio.net/adservio-avatar/45362d53ee305dcfb7d4696d8ae0be1e11d2d16acd7fbc8b04ce201fc37c7816.jpeg",
"functii": [
{
"cfID": "14",
"cfNume": "text_profesor"
},
{
"cfID": "16",
"cfNume": "text_director"
},
{
"cfID": "26",
"cfNume": "text_educator"
}
]
}
}
]
}