GET | /RestApi/sitefinity/data-intelligence/leadscore |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class LeadScoreRequestDto
{
var Filter:String? = null
}
open class LeadScoreListViewModel
{
var LeadScores:IList<LeadScore>? = null
var DecAppUrl:String? = null
}
open class LeadScore
{
var Id:Int? = null
var Name:String? = null
var State:LeadScoreState? = null
var Levels:IList<LeadScoreLevel>? = null
var Fields:HashMap<String,String> = HashMap<String,String>()
var CreatedOn:Date? = null
var CreatedByUserId:String? = null
var ModifiedOn:Date? = null
var ModifiedByUserId:String? = null
var ToBeReinitializedAt:Date? = null
}
enum class LeadScoreState
{
Inactive,
Active,
ToBeDeleted,
}
open class LeadScoreLevel
{
var Id:Int? = null
var Name:String? = null
var Threshold:Int? = null
var SendNotification:Boolean? = null
var Email:String? = null
}
Kotlin LeadScoreRequestDto 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/leadscore HTTP/1.1 Host: www.asg.com.au Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"DecAppUrl":"String"}