getViewers method

Future<Map<String, dynamic>> getViewers({
  1. required String contentId,
  2. String? fromDate,
})

Get the total number of distinct viewers a piece of content has.

Implementation

Future<Map<String, dynamic>> getViewers(
    {required String contentId, String? fromDate}) async {
  return await _client.send(
    'get',
    'wiki/rest/api/analytics/content/{contentId}/viewers',
    pathParameters: {
      'contentId': contentId,
    },
    queryParameters: {
      if (fromDate != null) 'fromDate': fromDate,
    },
  ) as Map<String, Object?>;
}