| GET | /CampaignConversions/{CampaignId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class CampaignConversionGetRequest
Public Overridable Property CampaignId As Integer
Public Overridable Property RunId As String
End Class
Public Partial Class CampaignConversionResult
Public Sub New()
BySurface = New List(Of CampaignConversionSurfaceCount)
ByChannel = New List(Of CampaignConversionSurfaceCount)
Notes = New List(Of String)
End Sub
Public Overridable Property RunId As String
Public Overridable Property PeopleMeasured As Integer
Public Overridable Property PeopleConverted As Integer
Public Overridable Property TotalAmount As Decimal
Public Overridable Property BySurface As List(Of CampaignConversionSurfaceCount)
Public Overridable Property ByChannel As List(Of CampaignConversionSurfaceCount)
Public Overridable Property HeadlineConversions As Integer
Public Overridable Property HeadlineAmount As Decimal
Public Overridable Property MedianHoursToConvert As Integer
Public Overridable Property Notes As List(Of String)
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
Public Partial Class CampaignConversionSurfaceCount
Public Overridable Property Key As String
Public Overridable Property People As Integer
Public Overridable Property Count As Integer
Public Overridable Property Amount As Decimal
End Class
End Namespace
End Namespace
VB.NET CampaignConversionGetRequest DTOs
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 /CampaignConversions/{CampaignId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"runId":"String","peopleMeasured":0,"peopleConverted":0,"totalAmount":0,"bySurface":[{"key":"String","people":0,"count":0,"amount":0}],"byChannel":[{"key":"String","people":0,"count":0,"amount":0}],"headlineConversions":0,"headlineAmount":0,"medianHoursToConvert":0,"notes":["String"],"statusCode":0,"message":"String"}