Trendsic Platform Service

<back to all web services

WorkerMyDayRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/myday
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 WorkerMyDayRequest
            Public Overridable Property [Date] As String
        End Class

        Public Partial Class WorkerMyDayResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Route As String
            Public Overridable Property DateLabel As String
            Public Overridable Property IsCrewLead As Boolean
            Public Overridable Property IsCrewMember As Boolean
            Public Overridable Property Visits As List(Of WorkerVisit) = New List(Of WorkerVisit)
        End Class

        Public Partial Class WorkerVisit
            Public Overridable Property WorkerScheduleItemID As Integer
            Public Overridable Property JobID As Integer
            Public Overridable Property SortOrder As Integer
            Public Overridable Property Status As String
            Public Overridable Property PropertyName As String
            Public Overridable Property Address As String
            Public Overridable Property TimeWindow As String
            Public Overridable Property DistanceLabel As String
            Public Overridable Property ServiceSummary As String
            Public Overridable Property AreaCount As Integer?
            Public Overridable Property AccessNotes As String
            Public Overridable Property HasRestrictedDetails As Boolean
            Public Overridable Property CanViewRestricted As Boolean
            Public Overridable Property PriorVisitNotes As String
            Public Overridable Property RainRisk As Boolean
            Public Overridable Property CompletedAtLabel As String
        End Class
    End Namespace
End Namespace

VB.NET WorkerMyDayRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/worker/myday HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Route":"String","DateLabel":"String","IsCrewLead":false,"IsCrewMember":false,"Visits":[{"WorkerScheduleItemID":0,"JobID":0,"SortOrder":0,"Status":"String","PropertyName":"String","Address":"String","TimeWindow":"String","DistanceLabel":"String","ServiceSummary":"String","AreaCount":0,"AccessNotes":"String","HasRestrictedDetails":false,"CanViewRestricted":false,"PriorVisitNotes":"String","RainRisk":false,"CompletedAtLabel":"String"}]}