Evo Voice

<back to all web services

AppSearchPhoneNumbers

Requires Authentication
The following routes are available for this service:
GET/portal/search-phone-numbers
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.App.Portal
Imports Voice.Api.Endpoints

Namespace Global

    Namespace Voice.Api.App.Portal

        Public Partial Class AppSearchPhoneNumberInfo
            Public Overridable Property PhoneNumber As String
        End Class

        Public Partial Class AppSearchPhoneNumbers
            Public Overridable Property AccountId As String
            Public Overridable Property CustomerId As String
            Public Overridable Property AreaCode As String
            Public Overridable Property CountryCode As String
            Public Overridable Property PostalCode As String
            Public Overridable Property Contains As String
            Public Overridable Property Distance As Nullable(Of Integer)
            Public Overridable Property PhoneNumberType As EndpointTypes
        End Class

        Public Partial Class AppSearchPhoneNumbersResponse
            Public Sub New()
                Numbers = New List(Of AppSearchPhoneNumberInfo)
            End Sub

            Public Overridable Property Numbers As List(Of AppSearchPhoneNumberInfo)
        End Class
    End Namespace

    Namespace Voice.Api.Endpoints

        Public Enum EndpointTypes
            PhoneNumber
            User
            FaxNumber
            EmailAddress
            Unused_1
            Unused_2
            Unused_3
            Unused_4
            Unused_5
            Team
        End Enum
    End Namespace
End Namespace

VB.NET AppSearchPhoneNumbers 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 /portal/search-phone-numbers HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	numbers: 
	[
		{
			phoneNumber: String
		}
	]
}