This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IContentViews>()
and is defined in Telligent.Evolution.Platform.dll
Methods
ContentViewedItem GetViewCount(Guid contentId, Guid contentTypeId, ContentViewCountGetOptions options = null);
Get view count for a piece of content
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | ID of the content being viewed | Required | ||
contentTypeId | Guid | Content Type ID of the content being viewed | Required | ||
options | ContentViewCountGetOptions | Additional options | Optional | ViewTypeId |
Return Type
AdditionalInfo IncrementView(Guid contentId, Guid contentTypeId, ContentViewCountIncrementOptions options = null);
Create a record of a piece of content being viewed
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | ID of the content being viewed | Required | ||
contentTypeId | Guid | Content Type ID of the content being viewed | Required | ||
options | ContentViewCountIncrementOptions | Additional options | Optional | ContentViewTypeId |
Return Type
AdditionalInfo IncrementView(Guid contentId, Guid contentTypeId, Guid contentViewTypeId);
Create a record of a piece of content being viewed. DEPRECATED in v12: Use new method signature with ContentViewCountIncrementOptions instead.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | ID of the content being viewed | Required | ||
contentTypeId | Guid | Content Type ID of the content being viewed | Required | ||
contentViewTypeId | Guid | ID representing type of view | Required |