Warning: session_start(): open(/var/lib/php/sessions/sess_t8cjn6tcsc2uff9mjmq1gq4503, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!752
static class Msg {
S type, user, text, ts;
O reactions;
}
static S data;
static new L msgs; // Note: They're in reverse order!
static S token = "xoxp-11444506721-15584660016-15602755169-10849bef29";
static S channelID = "C0FH9PY8J"; // #talkingbots
static S oldest = "1449245380.000382"; // timestamp of first msg to get
p {
S url = "https://slack.com/api/channels.history";
S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID) + "&oldest=" + urlencode(oldest);
data = doPost(postData, url);
Map map = cast jsonDecode(data);
assertTrue(map.get("ok"));
List