OpenIsle Docs
API 概览
List channels GET
Join channel POST
Api
Channels
Channelid
Join

# Join channel

Join a channel

POST
/`api`/`channels`/`{channelId}`/`join`

## Authorization

Authorization Bearer <token>

In: `header`

## Path Parameters

channelId integer
Format `int64`

## Response Body

###

    curl -X POST "https://www.open-isle.com/api/channels/0/join"

    {
      "id": 0,
      "name": "string",
      "description": "string",
      "avatar": "string",
      "lastMessage": {
        "id": 0,
        "content": "string",
        "sender": {
          "id": 0,
          "username": "string",
          "avatar": "string",
          "bot": true
        },
        "conversationId": 0,
        "createdAt": "2019-08-24T14:15:22Z",
        "replyTo": {
          "id": 0,
          "content": "string",
          "sender": {
            "id": 0,
            "username": "string",
            "avatar": "string",
            "bot": true
          },
          "conversationId": 0,
          "createdAt": "2019-08-24T14:15:22Z",
          "replyTo": {},
          "reactions": [
            {
              "id": 0,
              "type": "LIKE",
              "user": "string",
              "postId": 0,
              "commentId": 0,
              "messageId": 0,
              "reward": 0
            }
          ]
        },
        "reactions": [
          {
            "id": 0,
            "type": "LIKE",
            "user": "string",
            "postId": 0,
            "commentId": 0,
            "messageId": 0,
            "reward": 0
          }
        ]
      },
      "memberCount": 0,
      "joined": true,
      "unreadCount": 0
    }

List channels GET

Previous Page

Unread count GET

Next Page

    curl -X POST "https://www.open-isle.com/api/channels/0/join"