How to reduce return content size from Slack rtm.start api -
the api doc can found here.
i connect rtm.start
api bot user:
https://slack.com/api/rtm.start?token=bot_token
, doc described:
this method returns lots of data current state of team, along websocket message server url
acutally content care websocket message server url
.
currently, i'll 19mb content api(as big team many channels , users).
it take long code make request , cause timout. can increase timeout time, want wss
url , make websocket call, idea how decrease content size api?
i know parameters simple_latest
& no_unreads
& mpim_aware
can used. i've tried them https://slack.com/api/rtm.start?token=bot_token&simple_latest=true&no_unreads=1&mpim_aware=true
or did not work.
i want know how make these 3 optional parameters work.
no_unreads=1
correct way use these 3 parameters.
and got way: per contact slack team, got additional parameter did not appear in document:
cache_ts
==> timestamp 1479103245436 indicating latest timestamp event client has cached.
per test, set cache_ts
now
, response content decrease 19mb 1mb.
Comments
Post a Comment