GET | /RestApi/sitefinity/data-intelligence/conversion |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.DataIntelligenceConnector.Personalization.Services
Imports Telerik.Sitefinity.DataIntelligenceConnector.Personalization
Imports Telerik.DigitalExperienceCloud.Client
Namespace Global
Namespace Telerik.DigitalExperienceCloud.Client
Public Enum CalculationState
Inactive
Initializing
Active
ToBeDeleted
[Error]
Pending
Expired
End Enum
Public Partial Class ConditionExpression
Public Overridable Property Relation As String
Public Overridable Property Parts As IList(Of ConditionPart)
End Class
Public Partial Class ConditionPart
Public Sub New()
Objects = New List(Of String)
ObjectMetadata = New Dictionary(Of String, String)
UrlParameters = New Dictionary(Of String, String)
End Sub
Public Overridable Property Id As Integer
Public Overridable Property Predicate As String
Public Overridable Property IsNegated As Boolean
Public Overridable Property PredicateOperator As MatchingOperator
Public Overridable Property ObjectOperator As MatchingOperator
Public Overridable Property Objects As List(Of String)
Public Overridable Property ClientAttribute As String
Public Overridable Property ContactPropertyId As Nullable(Of Guid)
Public Overridable Property ObjectMetadata As Dictionary(Of String, String)
Public Overridable Property UrlParameters As Dictionary(Of String, String)
End Class
Public Partial Class Conversion
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property State As CalculationState
Public Overridable Property InputDays As Nullable(Of Integer)
Public Overridable Property CreatedOn As Date
Public Overridable Property ModifiedOn As Date
Public Overridable Property CreatedByUserId As String
Public Overridable Property ModifiedByUserId As String
Public Overridable Property Definition As ConditionExpression
Public Overridable Property ClientFilter As ConditionExpression
Public Overridable Property CanBeModified As Boolean
Public Overridable Property CanBeDeleted As Boolean
Public Overridable Property ContentRecommendationsEnabled As Boolean
Public Overridable Property AttributionCalculatedOn As Nullable(Of Date)
Public Overridable Property DecisionTreeId As Nullable(Of Integer)
End Class
Public Enum MatchingOperator
ExactMatch
Contains
StartsWith
EndsWith
UrlStrippedMatch
End Enum
End Namespace
Namespace Telerik.Sitefinity.DataIntelligenceConnector.Personalization
Public Partial Class ConversionsViewModel
Public Overridable Property Conversions As IList(Of Conversion)
End Class
End Namespace
Namespace Telerik.Sitefinity.DataIntelligenceConnector.Personalization.Services
Public Partial Class ConversionRequestDto
Public Overridable Property Filter As String
End Class
End Namespace
End Namespace
VB.NET ConversionRequestDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/data-intelligence/conversion HTTP/1.1 Host: www.asg.com.au Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {}