AIM Web Services

<back to all web services

SearchContactManagementRequest

SearchContactManagement web service.

The following routes are available for this service:
POST, GET/api/SearchContactManagement
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AIM.WebService
Imports AIM

Namespace Global

    Namespace AIM

        <DataContract>
        Public Partial Class AttributeValuePair
            <DataMember>
            Public Overridable Property Name As String

            <DataMember>
            Public Overridable Property Value As String
        End Class

        <DataContract>
        Public Partial Class ContactManagementRecord
            Public Sub New()
                Attributes = New List(Of AttributeValuePair)
            End Sub

            <DataMember>
            Public Overridable Property Ref As String

            <DataMember>
            Public Overridable Property DateTime As Date

            <DataMember>
            Public Overridable Property Contact As String

            <DataMember>
            Public Overridable Property CusAcct As Integer

            <DataMember>
            Public Overridable Property ActionId As Long

            <DataMember>
            Public Overridable Property Status As String

            <DataMember>
            Public Overridable Property ActionDate As Nullable(Of Date)

            <DataMember>
            Public Overridable Property PopUp As Boolean

            <DataMember>
            Public Overridable Property TopicId As Nullable(Of Long)

            <DataMember>
            Public Overridable Property Topic As String

            <DataMember>
            Public Overridable Property Closed As Boolean

            <DataMember>
            Public Overridable Property ClosedDate As Nullable(Of Date)

            <DataMember>
            Public Overridable Property ColorValue As Integer

            <DataMember>
            Public Overridable Property LanId As String

            <DataMember>
            Public Overridable Property FormattedNotes As Boolean

            <DataMember>
            Public Overridable Property Note1 As String

            <DataMember>
            Public Overridable Property Note2 As String

            <DataMember>
            Public Overridable Property Note3 As String

            <DataMember>
            Public Overridable Property Attributes As List(Of AttributeValuePair)
        End Class
    End Namespace

    Namespace AIM.WebService

        <DataContract>
        Public Partial Class BaseRequest
            '''<Summary>
            '''This is your AIM API Key provided by Tri-Tech
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="This is your AIM API Key provided by Tri-Tech", IsRequired:=true, Name:="ApiKey", ParameterType:="header")>
            Public Overridable Property ApiKey As String

            <DataMember>
            <ApiMember(DataType:="string", Name:="OAuthToken", ParameterType:="header")>
            Public Overridable Property OAuthToken As String
        End Class

        <DataContract>
        Public Partial Class BaseResponse
            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="BaseResponseResult", Description:="", Name:="Status", ParameterType:="body")>
            Public Overridable Property Status As BaseResponseResult

            <DataContract>
            Public Partial Class BaseResponseResult
                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="StatusCode", ParameterType:="body")>
                Public Overridable Property StatusCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="Login", ParameterType:="body")>
                Public Overridable Property Login As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorCode", ParameterType:="body")>
                Public Overridable Property ErrorCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorDisplayText", ParameterType:="body")>
                Public Overridable Property ErrorDisplayText As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorMessage", ParameterType:="body")>
                Public Overridable Property ErrorMessage As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="DomainName", ParameterType:="body")>
                Public Overridable Property DomainName As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="IPAddress", ParameterType:="body")>
                Public Overridable Property IpAddress As String
            End Class
        End Class

        <DataContract>
        Public Partial Class BaseSecureRequest
            Inherits BaseRequest
            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", Name:="Token", ParameterType:="Header")>
            Public Overridable Property Token As String

            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", Name:="DeviceId", ParameterType:="Header")>
            Public Overridable Property DeviceId As String

            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", IsRequired:=true, Name:="AppId", ParameterType:="Header")>
            Public Overridable Property AppId As String
        End Class

        '''<Summary>
        '''SearchContactManagement web service.
        '''</Summary>
        <DataContract>
        Public Partial Class SearchContactManagementRequest
            Inherits BaseSecureRequest
            <DataMember>
            Public Overridable Property FormattedNotes As Nullable(Of Boolean)

            '''<Summary>
            '''If sent, all other search parameters will be ignored.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="If sent, all other search parameters will be ignored.", Name:="Ref", ParameterType:="query")>
            Public Overridable Property Ref As String

            <DataMember>
            Public Overridable Property Acct As Nullable(Of Integer)

            <DataMember>
            Public Overridable Property DateFrom As Nullable(Of Date)

            <DataMember>
            Public Overridable Property DateTo As Nullable(Of Date)

            <DataMember>
            Public Overridable Property IncludeClosed As Nullable(Of Boolean)

            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", Name:="SearchString", ParameterType:="query")>
            Public Overridable Property SearchString As String

            <DataMember>
            Public Overridable Property ActionId As Nullable(Of Long)
        End Class

        <DataContract>
        Public Partial Class SearchContactManagementResponse
            Inherits BaseResponse
            Public Sub New()
                ContactManagementRecords = New List(Of ContactManagementRecord)
            End Sub

            <DataMember>
            Public Overridable Property ContactManagementRecords As List(Of ContactManagementRecord)
        End Class
    End Namespace
End Namespace

VB.NET SearchContactManagementRequest DTOs

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

HTTP + OTHER

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

POST /api/SearchContactManagement HTTP/1.1 
Host: active-ewebservice.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"FormattedNotes":false,"Ref":"String","Acct":0,"DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","IncludeClosed":false,"SearchString":"String","ActionId":0,"Token":"String","DeviceId":"String","AppId":"String","ApiKey":"String","OAuthToken":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ContactManagementRecords":[{"Ref":"String","Contact":"String","CusAcct":0,"ActionId":0,"Status":"String","ActionDate":"0001-01-01T00:00:00.0000000","PopUp":false,"TopicId":0,"Topic":"String","Closed":false,"ClosedDate":"0001-01-01T00:00:00.0000000","ColorValue":0,"LanId":"String","FormattedNotes":false,"Note1":"String","Note2":"String","Note3":"String","Attributes":[{"Name":"String","Value":"String"}]}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}