GET | /portal/search-phone-numbers |
---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Voice.Api.App.Portal;
using Voice.Api.Endpoints;
namespace Voice.Api.App.Portal
{
public partial class AppSearchPhoneNumberInfo
{
public virtual string PhoneNumber { get; set; }
}
public partial class AppSearchPhoneNumbers
{
public virtual string AccountId { get; set; }
public virtual string CustomerId { get; set; }
public virtual string AreaCode { get; set; }
public virtual string CountryCode { get; set; }
public virtual string PostalCode { get; set; }
public virtual string Contains { get; set; }
public virtual int? Distance { get; set; }
public virtual EndpointTypes PhoneNumberType { get; set; }
}
public partial class AppSearchPhoneNumbersResponse
{
public virtual List<AppSearchPhoneNumberInfo> Numbers { get; set; }
}
}
namespace Voice.Api.Endpoints
{
public enum EndpointTypes
{
PhoneNumber,
User,
FaxNumber,
EmailAddress,
Unused_1,
Unused_2,
Unused_3,
Unused_4,
Unused_5,
Team,
Assistant,
}
}
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 /portal/search-phone-numbers HTTP/1.1 Host: team.evovoice.io Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { numbers: [ { phoneNumber: String } ] }