getStatus method

Future getStatus()

Implementation

Future<dynamic> getStatus() async {
  options ??= {};
  if (apiKey != null) {
    options!['api_key'] = apiKey;
  }
  var path = 'channels/$id/status.$fmt';
  Uri endpoint = Uri.https(serverUrl, path, options);
  var response = await http.get(endpoint);
  return _fmt(response);
}