GET | /portal/search-phone-numbers |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AppSearchPhoneNumbers
{
public String accountId = null;
public String customerId = null;
public String areaCode = null;
public String countryCode = null;
public String postalCode = null;
public String contains = null;
public Integer distance = null;
public EndpointTypes phoneNumberType = null;
public String getAccountId() { return accountId; }
public AppSearchPhoneNumbers setAccountId(String value) { this.accountId = value; return this; }
public String getCustomerId() { return customerId; }
public AppSearchPhoneNumbers setCustomerId(String value) { this.customerId = value; return this; }
public String getAreaCode() { return areaCode; }
public AppSearchPhoneNumbers setAreaCode(String value) { this.areaCode = value; return this; }
public String getCountryCode() { return countryCode; }
public AppSearchPhoneNumbers setCountryCode(String value) { this.countryCode = value; return this; }
public String getPostalCode() { return postalCode; }
public AppSearchPhoneNumbers setPostalCode(String value) { this.postalCode = value; return this; }
public String getContains() { return contains; }
public AppSearchPhoneNumbers setContains(String value) { this.contains = value; return this; }
public Integer getDistance() { return distance; }
public AppSearchPhoneNumbers setDistance(Integer value) { this.distance = value; return this; }
public EndpointTypes getPhoneNumberType() { return phoneNumberType; }
public AppSearchPhoneNumbers setPhoneNumberType(EndpointTypes value) { this.phoneNumberType = value; return this; }
}
public static enum EndpointTypes
{
PhoneNumber,
User,
FaxNumber,
EmailAddress,
Unused1,
Unused2,
Unused3,
Unused4,
Unused5,
Team,
Assistant;
}
public static class AppSearchPhoneNumbersResponse
{
public ArrayList<AppSearchPhoneNumberInfo> numbers = null;
public ArrayList<AppSearchPhoneNumberInfo> getNumbers() { return numbers; }
public AppSearchPhoneNumbersResponse setNumbers(ArrayList<AppSearchPhoneNumberInfo> value) { this.numbers = value; return this; }
}
public static class AppSearchPhoneNumberInfo
{
public String phoneNumber = null;
public String getPhoneNumber() { return phoneNumber; }
public AppSearchPhoneNumberInfo setPhoneNumber(String value) { this.phoneNumber = value; return this; }
}
}
Java 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"}]}