GET | /RestApi/sitefinity/data-intelligence/touchpoint |
---|
namespace Telerik.DigitalExperienceCloud.Client
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type TouchpointRequestDto() =
member val Filter:String = null with get,set
type MatchingOperator =
| ExactMatch = 0
| Contains = 1
| StartsWith = 2
| EndsWith = 3
| UrlStrippedMatch = 4
[<AllowNullLiteral>]
type ConditionPart() =
member val Id:Int32 = new Int32() with get,set
member val Predicate:String = null with get,set
member val IsNegated:Boolean = new Boolean() with get,set
member val PredicateOperator:MatchingOperator = new MatchingOperator() with get,set
member val ObjectOperator:MatchingOperator = new MatchingOperator() with get,set
member val Objects:ResizeArray<String> = new ResizeArray<String>() with get,set
member val ClientAttribute:String = null with get,set
member val ContactPropertyId:Nullable<Guid> = new Nullable<Guid>() with get,set
member val ObjectMetadata:Dictionary<String, String> = new Dictionary<String, String>() with get,set
member val UrlParameters:Dictionary<String, String> = new Dictionary<String, String>() with get,set
[<AllowNullLiteral>]
type ConditionExpression() =
member val Relation:String = null with get,set
member val Parts:IList<ConditionPart> = null with get,set
type CalculationState =
| Inactive = 0
| Initializing = 1
| Active = 2
| ToBeDeleted = 3
| Error = 4
| Pending = 5
| Expired = 6
type TouchpointType =
| Touchpoint = 0
| Discovered = 1
| Personalization = 2
| AbVariant = 3
| AbGoal = 4
| Content = 5
[<AllowNullLiteral>]
type Touchpoint() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Definition:ConditionExpression = null with get,set
member val State:CalculationState = new CalculationState() with get,set
member val CreatedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val CreatedByUserId:String = null with get,set
member val ModifiedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ModifiedByUserId:String = null with get,set
member val TotalHits:Nullable<Int32> = new Nullable<Int32>() with get,set
member val TotalMetaClientHits:Nullable<Int32> = new Nullable<Int32>() with get,set
member val AbsoluteHits:Nullable<Int32> = new Nullable<Int32>() with get,set
member val AttributionsCalculatedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val StatisticsCalculatedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val Errors:String = null with get,set
member val TouchpointType:TouchpointType = new TouchpointType() with get,set
[<AllowNullLiteral>]
type TouchpointsViewModel() =
member val Touchpoints:IList<Touchpoint> = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/data-intelligence/touchpoint HTTP/1.1 Host: www.asg.com.au Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {}