| Required role: | Admin |
| GET | /Outbound/Campaigns/{CampaignId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OutboundCampaignGetRequest
{
public Integer campaignId = null;
public Integer getCampaignId() { return campaignId; }
public OutboundCampaignGetRequest setCampaignId(Integer value) { this.campaignId = value; return this; }
}
public static class OutboundCampaignResult
{
public Integer campaignId = null;
public HashMap<String,Integer> decisions = null;
public HashMap<String,Integer> queuedByChannel = null;
public HashMap<String,Integer> messageStatuses = null;
public Integer duplicates = null;
public Integer noIdentity = null;
public Integer statusCode = null;
public String message = null;
public Integer getCampaignId() { return campaignId; }
public OutboundCampaignResult setCampaignId(Integer value) { this.campaignId = value; return this; }
public HashMap<String,Integer> getDecisions() { return decisions; }
public OutboundCampaignResult setDecisions(HashMap<String,Integer> value) { this.decisions = value; return this; }
public HashMap<String,Integer> getQueuedByChannel() { return queuedByChannel; }
public OutboundCampaignResult setQueuedByChannel(HashMap<String,Integer> value) { this.queuedByChannel = value; return this; }
public HashMap<String,Integer> getMessageStatuses() { return messageStatuses; }
public OutboundCampaignResult setMessageStatuses(HashMap<String,Integer> value) { this.messageStatuses = value; return this; }
public Integer getDuplicates() { return duplicates; }
public OutboundCampaignResult setDuplicates(Integer value) { this.duplicates = value; return this; }
public Integer getNoIdentity() { return noIdentity; }
public OutboundCampaignResult setNoIdentity(Integer value) { this.noIdentity = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OutboundCampaignResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OutboundCampaignResult setMessage(String value) { this.message = value; return this; }
}
}
Java OutboundCampaignGetRequest 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 /Outbound/Campaigns/{CampaignId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OutboundCampaignResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CampaignId>0</CampaignId>
<Decisions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringint>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>0</d2p1:Value>
</d2p1:KeyValueOfstringint>
</Decisions>
<Duplicates>0</Duplicates>
<Message>String</Message>
<MessageStatuses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringint>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>0</d2p1:Value>
</d2p1:KeyValueOfstringint>
</MessageStatuses>
<NoIdentity>0</NoIdentity>
<QueuedByChannel xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringint>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>0</d2p1:Value>
</d2p1:KeyValueOfstringint>
</QueuedByChannel>
<StatusCode>0</StatusCode>
</OutboundCampaignResult>