Evo Voice

<back to all web services

GetMyContacts

Gets the contacts associated with the authenticated user

Requires Authentication
Required role:User
The following routes are available for this service:
GET/app/contacts
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.App

Namespace Global

    Namespace Voice.Api.App

        Public Partial Class AppContact
            Public Overridable Property DisplayName As String
            Public Overridable Property Address As String
            Public Overridable Property Type As AppContactTypes
            Public Overridable Property CustomerName As String
            Public Overridable Property CanCall As Boolean
            Public Overridable Property CanChat As Boolean
        End Class

        Public Enum AppContactTypes
            User
            Team
            Contact
        End Enum

        '''<Summary>
        '''Gets the contacts associated with the authenticated user
        '''</Summary>
        <Api(Description:="Gets the contacts associated with the authenticated user")>
        Public Partial Class GetMyContacts
        End Class

        Public Partial Class GetMyContactsResponse
            Public Sub New()
                Contacts = New List(Of AppContact)
            End Sub

            Public Overridable Property Contacts As List(Of AppContact)
        End Class
    End Namespace
End Namespace

VB.NET GetMyContacts 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 /app/contacts HTTP/1.1 
Host: evovoice.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"contacts":[{"displayName":"String","address":"String","type":"User","customerName":"String","canCall":false,"canChat":false}]}