getLastStatusAge method

Future getLastStatusAge()

Implementation

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