TicketUserServices

<back to all web services

OutboundCampaignGetRequest

Requires Authentication
Required role:Admin
The following routes are available for this service:
GET/Outbound/Campaigns/{CampaignId}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;

namespace TicketUserServices.ServiceModel
{
    public partial class OutboundCampaignGetRequest
    {
        public virtual int CampaignId { get; set; }
    }

    public partial class OutboundCampaignResult
    {
        public OutboundCampaignResult()
        {
            Decisions = new Dictionary<string, int>{};
            QueuedByChannel = new Dictionary<string, int>{};
            MessageStatuses = new Dictionary<string, int>{};
        }

        public virtual int CampaignId { get; set; }
        public virtual Dictionary<string, int> Decisions { get; set; }
        public virtual Dictionary<string, int> QueuedByChannel { get; set; }
        public virtual Dictionary<string, int> MessageStatuses { get; set; }
        public virtual int Duplicates { get; set; }
        public virtual int NoIdentity { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

}

C# OutboundCampaignGetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

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