list

abstract fun list(    teamId: String?,     max: Int?,     type: Space.SpaceType?,     sortBy: SpaceClient.SortBy?,     handler: CompletionHandler<List<Space>>)

Lists all spaces where the authenticated user belongs.

Since

0.1

Parameters

teamId

If not null, only list the spaces that are associated with the team by team id.

max

The maximum number of spaces in the response.

type

If not null, only list the spaces of this type. Otherwise all spaces are listed.

sortBy

Sort results by space ID (id), most recent activity (lastactivity), or most recently created (created).

handler

A closure to be executed once the request has finished.