채널 목록 조회
1. 전체 Public 채널 목록 조회
참여중이 아니더라도 전체 public 채널 목록을 조회할 수 있습니다.
const numOfRows = 20;
const resp = await client.getPublicChannels({
limit: numOfRows,
category: 'important_channels', // optional
subcategory: 'important_subcategory', // optional
});
// fetch more channels
if (resp.hasNext) {
const lastChannelId = resp.channels[resp.channels.length - 1].id;
const moreChannelsResp = await client.getPublicChannels({
lastChannelId,
limit: numOfRows,
});
}
// same query but using callback
client.getPublicChannels({}, function(err, resp) {
if (resp.hasNext) {
const lastChannelId = resp.channels[resp.channels.length - 1].id;
}
});Response
2. 현재 참여 중인 채널 목록 조회
현재 참여 중인 채널 목록을 조회할 수 있습니다.
3. 숨긴 채널 목록 조회
현재 참여중인 채널 중, 숨김 처리한 목록을 조회할 수 있습니다.
Response
4. 전체 채널의 안 읽은 메시지 수 조회
현재 참여중인 모든 채널의 안 읽은 메시지 수 합을 조회할 수 있습니다.
5. 전체 채널 메시지 읽음 확인
현재 참여중인 모든 채널에 일괄적으로 메시지 읽음 확인 처리를 합니다.
6. 참여 중인 채널 검색
현재 참여중인 채널 목록을 검색할 수 있습니다.
Response
Last updated