getContent method

  1. @deprecated
Future<ContentArray> getContent({
  1. String? type,
  2. String? spaceKey,
  3. String? title,
  4. List<String>? status,
  5. String? postingDay,
  6. List<String>? expand,
  7. String? trigger,
  8. String? orderby,
  9. int? start,
  10. int? limit,
})

Deprecated, use Confluence's v2 API.

Returns all content in a Confluence instance.

By default, the following objects are expanded: space, history, version.

Permissions required: Permission to access the Confluence site ('Can use' global permission). Only content that the user has permission to view will be returned.

Implementation

@deprecated
Future<ContentArray> getContent(
    {String? type,
    String? spaceKey,
    String? title,
    List<String>? status,
    String? postingDay,
    List<String>? expand,
    String? trigger,
    String? orderby,
    int? start,
    int? limit}) async {
  return ContentArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content',
    queryParameters: {
      if (type != null) 'type': type,
      if (spaceKey != null) 'spaceKey': spaceKey,
      if (title != null) 'title': title,
      if (status != null) 'status': status.map((e) => e).join(','),
      if (postingDay != null) 'postingDay': postingDay,
      if (expand != null) 'expand': expand.map((e) => e).join(','),
      if (trigger != null) 'trigger': trigger,
      if (orderby != null) 'orderby': orderby,
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}