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

チャットルームの取得 で 件数指定と簡易レスポンス指定をしたい #26

Open
tfuru opened this issue Nov 5, 2016 · 1 comment

Comments

@tfuru
Copy link

tfuru commented Nov 5, 2016

非力なデバイスで ルーム一覧を取得して利用したいが、現在の仕様のJSONは大きすぎて利用が難しいので、件数指定と uuid,name,updated_at 等の重要フィールドだけで小さいものが欲しい。


/alpha/rooms/joined?access_token=xxxx&limit=2&fields=uuid,name,updated_at

[
{
uuid: "xxxxxxxx",
name: "ぼっこの部屋",
updated_at: "2016-11-05T00:01:12Z"
},
{
uuid: "xxxxxxxx",
name: "あおボッコ",
updated_at: "2016-11-05T00:01:12Z"
}
]
@harajune
Copy link
Contributor

harajune commented Nov 7, 2016

ご要望としてリリース候補に入れておきます。

参考ですが、一般にメモリが厳しい環境ではイベントベースのパーサーが有効ですので、下記のようなパーサーを活用いただくと解決できるかと思います。
https://github.com/squix78/json-streaming-parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants