getBlogPostLabels method
Returns the labels of specific blog post. The number of results is limited
by the limit parameter and additional results (if available)
will be available through the next URL present in the Link response
header.
Permissions required: Permission to view the content of the blog post and its corresponding space.
Implementation
Future<MultiEntityResult<Label>> getBlogPostLabels(
{required int id,
String? prefix,
String? sort,
String? cursor,
int? limit}) async {
return MultiEntityResult.fromJson(
await _client.send(
'get',
'blogposts/{id}/labels',
pathParameters: {
'id': '$id',
},
queryParameters: {
if (prefix != null) 'prefix': prefix,
if (sort != null) 'sort': sort,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': '$limit',
},
),
reviver: (v) => Label.fromJson(v as Map<String, Object?>),
);
}