getOpenChannelMessages method

Future<List> getOpenChannelMessages(
  1. String channelUrl
)

Implementation

Future<List> getOpenChannelMessages(String channelUrl) async {
  String parentURL = this._openChannelsApi;
  String now = DateTime.now().toUtc().millisecondsSinceEpoch.toString();
  String finalURL = '$parentURL$channelUrl/messages?message_ts=$now';
  var result = await this._rest.getFrom(finalURL, this._defaultHeaders);
  return result["messages"];
}