Trendsic Platform Service

<back to all web services

MyWorkPhotosRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/photos/mine
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 MyWorkPhotosRequest
            Public Overridable Property Take As Integer
        End Class

        Public Partial Class WorkPhotoListResponse
            Public Overridable Property Photos As List(Of WorkPhotoRow) = New List(Of WorkPhotoRow)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class WorkPhotoRow
            Public Overridable Property WorkPhotoID As Integer
            Public Overridable Property ContactId As Integer
            Public Overridable Property TakerName As String
            Public Overridable Property RoleKey As String
            Public Overridable Property TargetType As String
            Public Overridable Property TargetId As String
            Public Overridable Property TargetRef As String
            Public Overridable Property TargetTitle As String
            Public Overridable Property Kind As String
            Public Overridable Property Caption As String
            Public Overridable Property CapturedAtUtc As Date
            Public Overridable Property Lat As Decimal?
            Public Overridable Property Lng As Decimal?
            Public Overridable Property AccuracyM As Integer?
            Public Overridable Property DistanceM As Integer?
            Public Overridable Property InApp As Boolean
            Public Overridable Property Source As String
            Public Overridable Property IsLate As Boolean
            Public Overridable Property CountsAsProof As Boolean
            Public Overridable Property MarkCount As Integer
            Public Overridable Property IssueOpen As Boolean?
            Public Overridable Property IssueClosedBy As String
            Public Overridable Property FromGeneral As Boolean
            Public Overridable Property Url As String
            Public Overridable Property MarkedUrl As String
            Public Overridable Property TriageStatus As String
            Public Overridable Property RouteTo As String
            Public Overridable Property SuggestType As String
            Public Overridable Property SuggestId As String
            Public Overridable Property SuggestTitle As String
            Public Overridable Property SuggestWhy As String
            Public Overridable Property FiledType As String
            Public Overridable Property FiledId As String
            Public Overridable Property FiledTitle As String
            Public Overridable Property ReplyText As String
            Public Overridable Property TriagedBy As String
            Public Overridable Property TriagedAtUtc As Date?
            Public Overridable Property ExpiresAtUtc As Date?
        End Class
    End Namespace
End Namespace

VB.NET MyWorkPhotosRequest DTOs

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

HTTP + JSV

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

GET /v1/worker/photos/mine HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Photos: 
	[
		{
			WorkPhotoID: 0,
			ContactId: 0,
			TakerName: String,
			RoleKey: String,
			TargetType: String,
			TargetId: String,
			TargetRef: String,
			TargetTitle: String,
			Kind: String,
			Caption: String,
			CapturedAtUtc: 0001-01-01,
			Lat: 0,
			Lng: 0,
			AccuracyM: 0,
			DistanceM: 0,
			InApp: False,
			Source: String,
			IsLate: False,
			CountsAsProof: False,
			MarkCount: 0,
			IssueOpen: False,
			IssueClosedBy: String,
			FromGeneral: False,
			Url: String,
			MarkedUrl: String,
			TriageStatus: String,
			RouteTo: String,
			SuggestType: String,
			SuggestId: String,
			SuggestTitle: String,
			SuggestWhy: String,
			FiledType: String,
			FiledId: String,
			FiledTitle: String,
			ReplyText: String,
			TriagedBy: String,
			TriagedAtUtc: 0001-01-01,
			ExpiresAtUtc: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}