| GET | /v1/forms/go-audience |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class FormGoAudienceRequest
Public Overridable Property FormUID As Guid
End Class
Public Partial Class FormGoAudienceResponse
Public Overridable Property Audience As String
Public Overridable Property Positions As List(Of FormGoPosition) = New List(Of FormGoPosition)
Public Overridable Property Workers As Integer
Public Overridable Property Seeing As Integer
Public Overridable Property Submitted As Integer
Public Overridable Property Note As String
Public Overridable Property Empty As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class FormGoPosition
Public Overridable Property SkillUID As String
Public Overridable Property Name As String
Public Overridable Property Active As Boolean
Public Overridable Property Ticked As Boolean
Public Overridable Property Count As Integer
End Class
End Namespace
End Namespace
VB.NET FormGoAudienceRequest 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/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"}}}