| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/campaigns/{Id}/runs/{RunId}/recipients |
|---|
import Foundation
import ServiceStack
public class CampaignRecipientsRequest : Codable
{
public var id:Int
public var runId:Int
public var status:String
public var channel:String
public var q:String
public var page:Int
public var size:Int
public var sort:String
public var dir:String
required public init(){}
}
public class CampaignJsonResponse : Codable
{
public var responseStatus:ResponseStatus
required public init(){}
}
Swift CampaignRecipientsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/campaigns/{Id}/runs/{RunId}/recipients HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}