Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mori-atsushi opened this issue Nov 3, 2017 · 0 comments
Open

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

mori-atsushi opened this issue Nov 3, 2017 · 0 comments
Labels

Comments

@mori-atsushi
Copy link
Collaborator

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: {
    ...
  },
  ...
  }
}, {
...
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant