getWatchersForSpace method

Future<SpaceWatchArray> getWatchersForSpace({
  1. required String spaceKey,
  2. String? start,
  3. String? limit,
})

Returns a list of watchers of a space

Implementation

Future<SpaceWatchArray> getWatchersForSpace(
    {required String spaceKey, String? start, String? limit}) async {
  return SpaceWatchArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/space/{spaceKey}/watch',
    pathParameters: {
      'spaceKey': spaceKey,
    },
    queryParameters: {
      if (start != null) 'start': start,
      if (limit != null) 'limit': limit,
    },
  ));
}