| GET,OPTIONS | /v1/staff/outreach/responses |
|---|
import Foundation
import ServiceStack
public class StaffResponsesRequest : Codable
{
public var placeholderContactID:Int
required public init(){}
}
public class StaffResponsesResponse : Codable
{
public var responseStatus:ResponseStatus
public var responses:[StaffResponseDto] = []
public var sentCount:Int
public var openedCount:Int
public var clickedCount:Int
public var accepted:Int
public var question:Int
public var declined:Int
public var noReply:Int
required public init(){}
}
public class StaffResponseDto : Codable
{
public var staffOutreachRecipientID:Int
public var contactID:Int
public var name:String
public var kind:String
public var rate:Double
public var rating:Double
public var ratingCount:Int
public var status:String
public var note:String
public var counterRate:Double
public var counterStartDate:String
required public init(){}
}
Swift StaffResponsesRequest 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/staff/outreach/responses 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"}},"Responses":[{"StaffOutreachRecipientID":0,"ContactID":0,"Name":"String","Kind":"String","Rate":0,"Rating":0,"RatingCount":0,"Status":"String","Note":"String","CounterRate":0,"CounterStartDate":"String"}],"SentCount":0,"OpenedCount":0,"ClickedCount":0,"Accepted":0,"Question":0,"Declined":0,"NoReply":0}