getMessages
$result = getMessages($filters)
This method retrieves messages matching the provided filter.
The method returns an array of objects, each object matching the filters specified.