getContent method
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',
},
));
}