GET api.ashx/v2/contentviews.{json|xml}
Get a content viewed item.
Scopes
Content › Read Views content.views.readonly
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| ContentId | Guid | Content id of the content. | Required | |||
| ContentTypeId | Guid | Content type id of the content. | Required | |||
| PostTarget | string | Render target. Options: Unknown, Web, Syndication, Offline, Other, Print, Nntp, Email, WebQuote, WebServices. | Optional | |||
| ViewTypeId | Guid? | The view type id of the content view. As of 12.1 the default value is '00000000-0000-0000-0000-000000000000'. If passing in a legacy value, the response will contain a ViewTypeId value of '00000000-0000-0000-0000-000000000000'. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/contentviews.json?ContentId=49fec544-6df7-4a82-872b-f8be586d5e9e&ContentTypeId=49fec544-6df7-4a82-872b-f8be586d5e9e',
data: {
'ContentId': '49fec544-6df7-4a82-872b-f8be586d5e9e',
'ContentTypeId': '49fec544-6df7-4a82-872b-f8be586d5e9e'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"ContentViewedItem": null,
"Info": [
"string",
"string"
],
"Warnings": [
"string",
"string"
],
"Errors": [
"string",
"string"
]
}