Trendsic Platform Service

<back to all web services

FormGoAudienceRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/go-audience
import Foundation
import ServiceStack

public class FormGoAudienceRequest : Codable
{
    public var formUID:String

    required public init(){}
}

public class FormGoAudienceResponse : Codable
{
    public var audience:String
    public var positions:[FormGoPosition] = []
    public var workers:Int
    public var seeing:Int
    public var submitted:Int
    public var note:String
    public var empty:String
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class FormGoPosition : Codable
{
    public var skillUID:String
    public var name:String
    public var active:Bool
    public var ticked:Bool
    public var count:Int

    required public init(){}
}


Swift FormGoAudienceRequest 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 /v1/forms/go-audience 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","Positions":[{"SkillUID":"String","Name":"String","Active":false,"Ticked":false,"Count":0}],"Workers":0,"Seeing":0,"Submitted":0,"Note":"String","Empty":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}