Skip to main content
Version: 5.7.0

SysGetChannelInfo

Returns description info and activity stats for the specified channel. Note that numMembers, numListeners and listeners are only returned for non-global groups.

ServiceOperation
chatSYS_GET_CHANNEL_INFO

Method Parameters

ParameterDescription
channelIdThe id of the channel.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {
"id": "55555:gl:brainCloudDev",
"type": "gl",
"code": "brainCloudDev",
"name": "brainCloud dev",
"desc": "For discussing brainCloud development status",
"stats": {
"messageCount": 25
}
}
}
Common Error Code

Status Codes

CodeNameDescription
40346CHAT_INVALID_CHANNEL_IDThe channel id provided is invalid.
40601RTT_NOT_ENABLEDRTT must be enabled for this feature
40616CLOUD_CODE_ONLYMethod only available via cloud code