GET | /portal/search-phone-numbers |
---|
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.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 Integer?
Public Overridable Property PhoneNumberType As EndpointTypes
End Class
Public Partial Class AppSearchPhoneNumbersResponse
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
Assistant
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 .csv suffix or ?format=csv
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: team.evovoice.io Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"numbers":[{"phoneNumber":"String"}]}