TicketUserServices

<back to all web services

OutboundCampaignGetRequest

Requires Authentication
Required role:Admin
The following routes are available for this service:
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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"campaignId":0,"decisions":{"String":0},"queuedByChannel":{"String":0},"messageStatuses":{"String":0},"duplicates":0,"noIdentity":0,"statusCode":0,"message":"String"}