Required role: | User |
GET | /app/contacts |
---|
Imports System
Imports System.IO
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 Overridable Property Contacts As List(Of AppContact)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: team.evovoice.io Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { contacts: [ { displayName: String, address: String, type: User, customerName: String, canCall: False, canChat: False } ] }