listLogs method

Future<LogList> listLogs({
  1. List<String>? queries,
})

Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.

Implementation

Future<models.LogList> listLogs({List<String>? queries}) async {
  final String apiPath = '/account/logs';

  final Map<String, dynamic> apiParams = {'queries': queries};

  final Map<String, String> apiHeaders = {'content-type': 'application/json'};

  final res = await client.call(
    HttpMethod.get,
    path: apiPath,
    params: apiParams,
    headers: apiHeaders,
  );

  return models.LogList.fromMap(res.data);
}