Requires any of the roles: | SystemAdministrator, Manager, Customer |
GET | /endpoints/phone-numbers/search |
---|
namespace Voice.Api.Endpoints
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
///<summary>
///Search for phone numbers
///</summary>
[<Api(Description="Search for phone numbers")>]
[<AllowNullLiteral>]
type SearchPhoneNumbers() =
interface IGet
///<summary>
///The account you are searching for
///</summary>
[<ApiMember(Description="The account you are searching for")>]
member val AccountId:String = null with get,set
///<summary>
///The area code
///</summary>
[<ApiMember(Description="The area code")>]
member val AreaCode:String = null with get,set
///<summary>
///The country code you are searching for
///</summary>
[<ApiMember(Description="The country code you are searching for")>]
member val CountryCode:String = null with get,set
///<summary>
///The postal code you are searching for
///</summary>
[<ApiMember(Description="The postal code you are searching for")>]
member val PostalCode:String = null with get,set
///<summary>
///The distance from the specified postal code (default is 100)
///</summary>
[<ApiMember(Description="The distance from the specified postal code (default is 100)")>]
member val Distance:Nullable<Int32> = new Nullable<Int32>() with get,set
///<summary>
///Search for fax numbers
///</summary>
[<ApiMember(Description="Search for fax numbers")>]
member val IsFaxNumber:Boolean = new Boolean() with get,set
///<summary>
///Contains specific digits
///</summary>
[<ApiMember(Description="Contains specific digits")>]
member val Contains:String = null with get,set
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /endpoints/phone-numbers/search HTTP/1.1 Host: evovoice.io Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"phoneNumber":"String"}]