사용자 채널 조회

Get User Channels

GET https://api.talkplus.io/v1.4/api/users/:userId/channels

특정 사용자가 참여 중인 채널 목록을 조회합니다.

Path Parameters

Query Parameters

Headers

{
  "channels": [
    {
      "id": "channel123",
      "name": "MyFirstChannel",
      "ownerId": "user123",
      "type": "private",
      "imageUrl": "image url",
      "invitationCode": "",
      "isFrozen": false,
      "hideMessagesBeforeJoin": false,
      "category": "",
      "subcategory": "",
      "privateTag": "",
      "privateData": "",
      "memberCount": 2,
      "maxMemberCount": 100,
      "data": {
        "someMetaKey1": "someMetaValue1",
        "someMetaKey2": "someMetaValue2"
      },
      "members": [
        {
          "id": "user123",
          "username": "john",
          "profileImageUrl": "http://cnd.test.com/123.jpg",
          "data": {},
          "memberInfo": {},
          "lastReadAt": 1583924400,
          "lastSentAt": 1583924400,
          "updatedAt": 1583924400,
          "createdAt": 1583921400
        },
        {
          "id": "user456",
          "username": "james",
          "profileImageUrl": "http://cnd.test.com/456.jpg",
          "data": {},
          "memberInfo": {},
          "lastReadAt": 1583924400,
          "lastSentAt": 1583924400,
          "updatedAt": 1583924400,
          "createdAt": 1583921400
        }
      ],
      "mutedUsers": [],
      "bannedUsers": [],
      "updatedAt": 1583924400,
      "createdAt": 1583921400,
      "unreadCount": 1,
      "lastReadAt": 1583914400,
      "lastMessage": {
        "id": "sdf2l5s9j",
        "channelId": "channel123",
        "userId": "user456",
        "username": "myUsername",
        "profileImageUrl": "http://cdn.test.com/123.jpg",
        "type": "message",
        "text": "Hello world",
        "data": {
          "customField": "customData"
        },
        "parentMessage": {},
        "translations": {},
        "reactions": {"happy": 1},
        "ownReactions": [],
        "createdAt": 1583921400
      }
    }
  ],
  "hasNext": false
}

Get User's Hidden Channels

GET https://api.talkplus.io/v1.4/api/users/:userId/channels/hidden

사용자가 숨김 처리한 채널 목록을 조회합니다.

Path Parameters

Query Parameters

Headers

{
  "channels": [
    {
      "id": "channel123",
      "name": "MyFirstChannel",
      "ownerId": "user123",
      "type": "private",
      "imageUrl": "image url",
      "invitationCode": "",
      "isFrozen": false,
      "hideMessagesBeforeJoin": false,
      "category": "",
      "subcategory": "",
      "privateTag": "",
      "privateData": "",
      "memberCount": 2,
      "maxMemberCount": 100,
      "data": {
        "someMetaKey1": "someMetaValue1",
        "someMetaKey2": "someMetaValue2"
      },
      "members": [
        {
          "id": "user123",
          "username": "john",
          "profileImageUrl": "http://cnd.test.com/123.jpg",
          "data": {},
          "memberInfo": {},
          "lastReadAt": 1583924400,
          "lastSentAt": 1583924400,
          "updatedAt": 1583924400,
          "createdAt": 1583921400
        },
        {
          "id": "user456",
          "username": "james",
          "profileImageUrl": "http://cnd.test.com/456.jpg",
          "data": {},
          "memberInfo": {},
          "lastReadAt": 1583924400,
          "lastSentAt": 1583924400,
          "updatedAt": 1583924400,
          "createdAt": 1583921400
        }
      ],
      "mutedUsers": [],
      "bannedUsers": [],
      "updatedAt": 1583924400,
      "createdAt": 1583921400,
      "unreadCount": 1,
      "lastReadAt": 1583914400,
      "lastMessage": {
        "id": "sdf2l5s9j",
        "channelId": "channel123",
        "userId": "user456",
        "username": "myUsername",
        "profileImageUrl": "http://cdn.test.com/123.jpg",
        "type": "message",
        "text": "Hello world",
        "data": {
          "customField": "customData"
        },
        "parentMessage": {},
        "translations": {},
        "reactions": {"happy": 1},
        "ownReactions": [],
        "createdAt": 1583921400
      }
    }
  ],
  "hasNext": false
}

Last updated