Enables scripted content fragments to use MediaComments

Methods

Create

Create a media comment

Usage

#set($mediaCommentResponse = $core_v2_mediaComment.Create($mediaGalleryId, $fileId, $body, "%{IsApproved = $isApprovedArg, PublishedDate = $publishedDateArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
mediaGalleryIdintMedia Gallery IdRequired
fileIdintFile IdRequired
bodystringBodyRequired
IsApprovedboolIs ApprovedOptionalTrue
PublishedDateDateTimePublished DateOptionalCurrent Date/Time

Return Type

MediaComment

Delete

Delete a media gallery comment

Usage

#set($additionalInfoResponse = $core_v2_mediaComment.Delete($id, $mediaGalleryId, $fileId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintComment IdRequired
mediaGalleryIdintMedia Gallery IdRequired
fileIdintFile IdRequired

Return Type

AdditionalInfo

Get

Get a single media post comment

Usage

#set($mediaCommentResponse = $core_v2_mediaComment.Get($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired

Return Type

MediaComment

List

List comments for a media post

Usage

#set($pagedListResponse = $core_v2_mediaComment.List($fileId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
fileIdintFile IdRequired

Return Type

PagedList<MediaComment>

List

List comments for a media post

Usage

#set($pagedListResponse = $core_v2_mediaComment.List($fileId, "%{IncludeUnpublished = $includeUnpublishedArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
fileIdintFile IdRequired
IncludeUnpublishedboolInclude UnpublishedOptionalFalse
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page.Optional20

Return Type

PagedList<MediaComment>

Update

Update a media comment

Usage

#set($mediaCommentResponse = $core_v2_mediaComment.Update($mediaGalleryId, $fileId, $id, "%{Body = $bodyArg, IsApproved = $isApprovedArg, PublishedDate = $publishedDateArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
mediaGalleryIdintMedia Gallery IdRequired
fileIdintFile IdRequired
idintComment IdRequired
BodystringBodyOptional
IsApprovedboolIs ApprovedOptionalTrue
PublishedDateDateTimePublished DateOptionalCurrent Date/Time

Return Type

MediaComment