| POST,OPTIONS | /v1/Leaderboard | ||
|---|---|---|---|
| GET,OPTIONS | /v1/Leaderboard/{LeaderboardType}/{StartDate}/{EndDate} |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class Leaderboard
Public Overridable Property Position As Integer
Public Overridable Property Name As String
Public Overridable Property Location As String
Public Overridable Property LifeCashFlow As Decimal
Public Overridable Property AnnuityCashFlow As Decimal
Public Overridable Property TotalCashFlow As Decimal
Public Overridable Property PremiumLife As Decimal
Public Overridable Property PremiumAnnuity As Decimal
Public Overridable Property PointsLife As Decimal
Public Overridable Property PointsAnnuity As Decimal
Public Overridable Property TotalPoints As Decimal
Public Overridable Property IsMVP As Boolean
Public Overridable Property IsRVP As Boolean
Public Overridable Property IsAVP As Boolean
Public Overridable Property IsAgent As Boolean
Public Overridable Property Phone As String
Public Overridable Property Upline1Name As String
Public Overridable Property Upline2Name As String
End Class
Public Partial Class LeaderboardRequest
Public Overridable Property StartDate As String
Public Overridable Property EndDate As String
Public Overridable Property LeaderboardType As String
End Class
Public Partial Class LeaderboardResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property AllData As List(Of Leaderboard) = New List(Of Leaderboard)
Public Overridable Property MVP As List(Of Leaderboard) = New List(Of Leaderboard)
Public Overridable Property AVP As List(Of Leaderboard) = New List(Of Leaderboard)
Public Overridable Property RVP As List(Of Leaderboard) = New List(Of Leaderboard)
Public Overridable Property Agents As List(Of Leaderboard) = New List(Of Leaderboard)
End Class
End Namespace
End Namespace
VB.NET LeaderboardRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Leaderboard HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<LeaderboardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<EndDate>String</EndDate>
<LeaderboardType>String</LeaderboardType>
<StartDate>String</StartDate>
</LeaderboardRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LeaderboardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AVP>
<Leaderboard>
<_AnnuityCashFlow>0</_AnnuityCashFlow>
<_IsAVP>false</_IsAVP>
<_IsAgent>false</_IsAgent>
<_IsMVP>false</_IsMVP>
<_IsRVP>false</_IsRVP>
<_LifeCashFlow>0</_LifeCashFlow>
<_Location>String</_Location>
<_Name>String</_Name>
<_Phone>String</_Phone>
<_PointsAnnuity>0</_PointsAnnuity>
<_PointsLife>0</_PointsLife>
<_Position>0</_Position>
<_PremiumAnnuity>0</_PremiumAnnuity>
<_PremiumLife>0</_PremiumLife>
<_TotalCashFlow>0</_TotalCashFlow>
<_TotalPoints>0</_TotalPoints>
<_Upline1Name>String</_Upline1Name>
<_Upline2Name>String</_Upline2Name>
</Leaderboard>
</AVP>
<Agents>
<Leaderboard>
<_AnnuityCashFlow>0</_AnnuityCashFlow>
<_IsAVP>false</_IsAVP>
<_IsAgent>false</_IsAgent>
<_IsMVP>false</_IsMVP>
<_IsRVP>false</_IsRVP>
<_LifeCashFlow>0</_LifeCashFlow>
<_Location>String</_Location>
<_Name>String</_Name>
<_Phone>String</_Phone>
<_PointsAnnuity>0</_PointsAnnuity>
<_PointsLife>0</_PointsLife>
<_Position>0</_Position>
<_PremiumAnnuity>0</_PremiumAnnuity>
<_PremiumLife>0</_PremiumLife>
<_TotalCashFlow>0</_TotalCashFlow>
<_TotalPoints>0</_TotalPoints>
<_Upline1Name>String</_Upline1Name>
<_Upline2Name>String</_Upline2Name>
</Leaderboard>
</Agents>
<AllData>
<Leaderboard>
<_AnnuityCashFlow>0</_AnnuityCashFlow>
<_IsAVP>false</_IsAVP>
<_IsAgent>false</_IsAgent>
<_IsMVP>false</_IsMVP>
<_IsRVP>false</_IsRVP>
<_LifeCashFlow>0</_LifeCashFlow>
<_Location>String</_Location>
<_Name>String</_Name>
<_Phone>String</_Phone>
<_PointsAnnuity>0</_PointsAnnuity>
<_PointsLife>0</_PointsLife>
<_Position>0</_Position>
<_PremiumAnnuity>0</_PremiumAnnuity>
<_PremiumLife>0</_PremiumLife>
<_TotalCashFlow>0</_TotalCashFlow>
<_TotalPoints>0</_TotalPoints>
<_Upline1Name>String</_Upline1Name>
<_Upline2Name>String</_Upline2Name>
</Leaderboard>
</AllData>
<MVP>
<Leaderboard>
<_AnnuityCashFlow>0</_AnnuityCashFlow>
<_IsAVP>false</_IsAVP>
<_IsAgent>false</_IsAgent>
<_IsMVP>false</_IsMVP>
<_IsRVP>false</_IsRVP>
<_LifeCashFlow>0</_LifeCashFlow>
<_Location>String</_Location>
<_Name>String</_Name>
<_Phone>String</_Phone>
<_PointsAnnuity>0</_PointsAnnuity>
<_PointsLife>0</_PointsLife>
<_Position>0</_Position>
<_PremiumAnnuity>0</_PremiumAnnuity>
<_PremiumLife>0</_PremiumLife>
<_TotalCashFlow>0</_TotalCashFlow>
<_TotalPoints>0</_TotalPoints>
<_Upline1Name>String</_Upline1Name>
<_Upline2Name>String</_Upline2Name>
</Leaderboard>
</MVP>
<RVP>
<Leaderboard>
<_AnnuityCashFlow>0</_AnnuityCashFlow>
<_IsAVP>false</_IsAVP>
<_IsAgent>false</_IsAgent>
<_IsMVP>false</_IsMVP>
<_IsRVP>false</_IsRVP>
<_LifeCashFlow>0</_LifeCashFlow>
<_Location>String</_Location>
<_Name>String</_Name>
<_Phone>String</_Phone>
<_PointsAnnuity>0</_PointsAnnuity>
<_PointsLife>0</_PointsLife>
<_Position>0</_Position>
<_PremiumAnnuity>0</_PremiumAnnuity>
<_PremiumLife>0</_PremiumLife>
<_TotalCashFlow>0</_TotalCashFlow>
<_TotalPoints>0</_TotalPoints>
<_Upline1Name>String</_Upline1Name>
<_Upline2Name>String</_Upline2Name>
</Leaderboard>
</RVP>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</LeaderboardResponse>