| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/ActivityTracker/Report/{StartDate}/{EndDate} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ActivityTrackerReportRequest
{
public Date StartDate = null;
public Date EndDate = null;
public Date getStartDate() { return StartDate; }
public ActivityTrackerReportRequest setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public ActivityTrackerReportRequest setEndDate(Date value) { this.EndDate = value; return this; }
}
public static class ActivityTrackerReportResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<ActivityTracker_Report> ReportData = new ArrayList<ActivityTracker_Report>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ActivityTrackerReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<ActivityTracker_Report> getReportData() { return ReportData; }
public ActivityTrackerReportResponse setReportData(ArrayList<ActivityTracker_Report> value) { this.ReportData = value; return this; }
}
public static class ActivityTracker_Report
{
public String AgentName = null;
public Integer SetAppt = null;
public Integer FirstAppt = null;
public Integer FollowAppt = null;
public Integer FirstContact = null;
public Integer Referral = null;
public Integer ClientUpdate = null;
public Integer SecondAppointment = null;
public Integer Appl = null;
public BigDecimal LifeAP = null;
public BigDecimal AnnuityFlow = null;
public BigDecimal AnnuityTransfer = null;
public String getAgentName() { return AgentName; }
public ActivityTracker_Report setAgentName(String value) { this.AgentName = value; return this; }
public Integer getSetAppt() { return SetAppt; }
public ActivityTracker_Report setSetAppt(Integer value) { this.SetAppt = value; return this; }
public Integer getFirstAppt() { return FirstAppt; }
public ActivityTracker_Report setFirstAppt(Integer value) { this.FirstAppt = value; return this; }
public Integer getFollowAppt() { return FollowAppt; }
public ActivityTracker_Report setFollowAppt(Integer value) { this.FollowAppt = value; return this; }
public Integer getFirstContact() { return FirstContact; }
public ActivityTracker_Report setFirstContact(Integer value) { this.FirstContact = value; return this; }
public Integer getReferral() { return Referral; }
public ActivityTracker_Report setReferral(Integer value) { this.Referral = value; return this; }
public Integer getClientUpdate() { return ClientUpdate; }
public ActivityTracker_Report setClientUpdate(Integer value) { this.ClientUpdate = value; return this; }
public Integer getSecondAppointment() { return SecondAppointment; }
public ActivityTracker_Report setSecondAppointment(Integer value) { this.SecondAppointment = value; return this; }
public Integer getAppl() { return Appl; }
public ActivityTracker_Report setAppl(Integer value) { this.Appl = value; return this; }
public BigDecimal getLifeAP() { return LifeAP; }
public ActivityTracker_Report setLifeAP(BigDecimal value) { this.LifeAP = value; return this; }
public BigDecimal getAnnuityFlow() { return AnnuityFlow; }
public ActivityTracker_Report setAnnuityFlow(BigDecimal value) { this.AnnuityFlow = value; return this; }
public BigDecimal getAnnuityTransfer() { return AnnuityTransfer; }
public ActivityTracker_Report setAnnuityTransfer(BigDecimal value) { this.AnnuityTransfer = value; return this; }
}
}
Java ActivityTrackerReportRequest 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.
GET /v1/ActivityTracker/Report/{StartDate}/{EndDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ActivityTrackerReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ReportData>
<ActivityTracker_Report>
<AgentName>String</AgentName>
<AnnuityFlow>0</AnnuityFlow>
<AnnuityTransfer>0</AnnuityTransfer>
<Appl>0</Appl>
<ClientUpdate>0</ClientUpdate>
<FirstAppt>0</FirstAppt>
<FirstContact>0</FirstContact>
<FollowAppt>0</FollowAppt>
<LifeAP>0</LifeAP>
<Referral>0</Referral>
<SecondAppointment>0</SecondAppointment>
<SetAppt>0</SetAppt>
</ActivityTracker_Report>
</ReportData>
<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>
</ActivityTrackerReportResponse>