list
abstract fun list( spaceId: String, before: Before?, max: Int, mentions: ArrayList<Mention>?, handler: CompletionHandler<List<Message>>)
Content copied to clipboard
Lists all messages in a space by space Id asynchronously. If present, it includes the associated file attachment for each message.
The list sorts the messages in descending order by creation date.
Since
2.1
Parameters
space Id
The identifier of a space.
before
If not nil, list messages sent only before this condition.
max
The maximum number of messages to be listed in the response. The valid range for max is 1 to 1000, any other input will throw InvalidMaxValue error.
mentions
If not nil, only list messages with any mention listed here.
handler
A closure to be executed once the request has finished with a list of messages based on the above criteria.