Trendsic Platform Service

<back to all web services

SearchUsers

The following routes are available for this service:
GET/users/search
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
Imports CRM.AgencyPlatform.API.Internal.Models

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class SearchUsers
            Public Overridable Property Q As String
            Public Overridable Property Page As Integer?
            Public Overridable Property PageSize As Integer?
        End Class

        Public Partial Class SearchUsersResponse
            Public Overridable Property Results As List(Of UserSummary) = New List(Of UserSummary)
            Public Overridable Property Page As Integer
            Public Overridable Property PageSize As Integer
            Public Overridable Property Total As Integer
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace

    Namespace CRM.AgencyPlatform.API.Internal.Models

        Public Partial Class UserSummary
            Public Overridable Property UserId As Guid
            Public Overridable Property UserName As String
            Public Overridable Property Email As String
            Public Overridable Property CreatedUtc As Date?
            Public Overridable Property LastActivityUtc As Date?
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property DisplayName As String
        End Class
    End Namespace
End Namespace

VB.NET SearchUsers 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 /users/search HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"UserId":"00000000000000000000000000000000","UserName":"String","Email":"String","CreatedUtc":"0001-01-01T00:00:00.0000000","LastActivityUtc":"0001-01-01T00:00:00.0000000","FirstName":"String","LastName":"String","DisplayName":"String String"}],"Page":0,"PageSize":0,"Total":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}