| GET | /v1/c/notifications |
|---|
import Foundation
import ServiceStack
public class CustomerNotificationsRequest : Codable
{
public var audience:String
required public init(){}
}
public class CustomerNotificationsResponse : Codable
{
public var audience:String
public var items:[NotificationPrefView] = []
public var devices:Int
public var pushConfigured:Bool
public var responseStatus:ResponseStatus
required public init(){}
}
public class NotificationPrefView : Codable
{
public var key:String
public var label:String
public var sub:String
public var isOn:Bool
required public init(){}
}
Swift CustomerNotificationsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/c/notifications HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Audience":"String","Items":[{"Key":"String","Label":"String","Sub":"String","IsOn":false}],"Devices":0,"PushConfigured":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}