getBlogpostContentPropertiesById method

Future<ContentProperty> getBlogpostContentPropertiesById({
  1. required int blogpostId,
  2. required int propertyId,
})

Retrieves a specific Content Property by ID that is attached to a specified blog post.

Permissions required: Permission to view the blog post.

Implementation

Future<ContentProperty> getBlogpostContentPropertiesById(
    {required int blogpostId, required int propertyId}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'blogposts/{blogpost-id}/properties/{property-id}',
    pathParameters: {
      'blogpost-id': '$blogpostId',
      'property-id': '$propertyId',
    },
  ));
}