Skip to content

過去チャットを取得するAPIを作成する #8

@mori-atsushi

Description

@mori-atsushi

GET /api/v1/rooms/:room_id/chats/
header['Authorization'] = user.access_token
params

{
  num: [int]
  next_page_token: [int]
}

過去のチャットを新しい順にnum件(デフォルトは10件)返す。
next_page_tokenに前回取得したチャットIDのうち、一番古い物を指定することで、次ページ(それ以前のもの)を取得することができる。

[chat {
  id: room.id,
  chat_type: "user",
  message: room.name,
  user: {
    ...
  },
  ...
  }
}, {
...
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions