| Requires any of the roles: | Client, Admin, Partner |
| GET POST | /campaign/communications/test/{ScheduleInstancesId} | Get Campaign Communications |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SendCampaignCommunicationsTest
{
@DataMember(Order=1)
@Validate(Validator="NotNull")
public Long ScheduleInstancesId = null;
@DataMember(Order=2)
@Validate(Validator="NotNull")
public String EmailAddress = null;
@DataMember(Order=3)
@Validate(Validator="NotNull")
public String MobileNumber = null;
@DataMember(Order=3)
public Integer NoOfRecords = null;
public Long getScheduleInstancesId() { return ScheduleInstancesId; }
public SendCampaignCommunicationsTest setScheduleInstancesId(Long value) { this.ScheduleInstancesId = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public SendCampaignCommunicationsTest setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getMobileNumber() { return MobileNumber; }
public SendCampaignCommunicationsTest setMobileNumber(String value) { this.MobileNumber = value; return this; }
public Integer getNoOfRecords() { return NoOfRecords; }
public SendCampaignCommunicationsTest setNoOfRecords(Integer value) { this.NoOfRecords = value; return this; }
}
public static class SendCampaignCommunicationsResponse
{
public Boolean Status = null;
public ResponseStatus ResponseStatus = null;
public Boolean isStatus() { return Status; }
public SendCampaignCommunicationsResponse setStatus(Boolean value) { this.Status = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public SendCampaignCommunicationsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java SendCampaignCommunicationsTest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /campaign/communications/test/{ScheduleInstancesId} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ScheduleInstancesId: 0,
EmailAddress: String,
MobileNumber: String,
NoOfRecords: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Status: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}