Constructor and Description |
---|
VoipReader(String pathCountryCode)
Construct a new VoipReader.
|
VoipReader(String pathAccountSid,
String pathCountryCode)
Construct a new VoipReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Voip> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Voip> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Voip> |
nextPage(Page<Voip> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Voip> |
previousPage(Page<Voip> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Voip> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
VoipReader |
setAreaCode(Integer areaCode)
The area code of the phone numbers to read.
|
VoipReader |
setBeta(Boolean beta)
Whether to read phone numbers that are new to the Twilio platform.
|
VoipReader |
setContains(String contains)
The pattern on which to match phone numbers.
|
VoipReader |
setDistance(Integer distance)
The search radius, in miles, for a `near_` query.
|
VoipReader |
setExcludeAllAddressRequired(Boolean excludeAllAddressRequired)
Whether to exclude phone numbers that require an Address.
|
VoipReader |
setExcludeForeignAddressRequired(Boolean excludeForeignAddressRequired)
Whether to exclude phone numbers that require a foreign Address.
|
VoipReader |
setExcludeLocalAddressRequired(Boolean excludeLocalAddressRequired)
Whether to exclude phone numbers that require a local Address.
|
VoipReader |
setFaxEnabled(Boolean faxEnabled)
Whether the phone numbers can receive faxes.
|
VoipReader |
setInLata(String inLata)
Limit results to a specific local access and transport area (LATA).
|
VoipReader |
setInLocality(String inLocality)
Limit results to a particular locality or city.
|
VoipReader |
setInPostalCode(String inPostalCode)
Limit results to a particular postal code.
|
VoipReader |
setInRateCenter(String inRateCenter)
Limit results to a specific rate center, or given a phone number search
within the same rate center as that number.
|
VoipReader |
setInRegion(String inRegion)
Limit results to a particular region, state, or province.
|
VoipReader |
setMmsEnabled(Boolean mmsEnabled)
Whether the phone numbers can receive MMS messages.
|
VoipReader |
setNearLatLong(String nearLatLong)
Given a latitude/longitude pair `lat,long` find geographically close numbers
within `distance` miles.
|
VoipReader |
setNearNumber(PhoneNumber nearNumber)
Given a phone number, find a geographically close number within `distance`
miles.
|
VoipReader |
setNearNumber(String nearNumber)
Given a phone number, find a geographically close number within `distance`
miles.
|
VoipReader |
setSmsEnabled(Boolean smsEnabled)
Whether the phone numbers can receive text messages.
|
VoipReader |
setVoiceEnabled(Boolean voiceEnabled)
Whether the phone numbers can receive calls.
|
public VoipReader(String pathCountryCode)
pathCountryCode
- The ISO Country code of the country from which to
read phone numberspublic VoipReader setAreaCode(Integer areaCode)
areaCode
- The area code of the phone numbers to readpublic VoipReader setContains(String contains)
contains
- The pattern on which to match phone numberspublic VoipReader setSmsEnabled(Boolean smsEnabled)
smsEnabled
- Whether the phone numbers can receive text messagespublic VoipReader setMmsEnabled(Boolean mmsEnabled)
mmsEnabled
- Whether the phone numbers can receive MMS messagespublic VoipReader setVoiceEnabled(Boolean voiceEnabled)
voiceEnabled
- Whether the phone numbers can receive calls.public VoipReader setExcludeAllAddressRequired(Boolean excludeAllAddressRequired)
excludeAllAddressRequired
- Whether to exclude phone numbers that
require an Addresspublic VoipReader setExcludeLocalAddressRequired(Boolean excludeLocalAddressRequired)
excludeLocalAddressRequired
- Whether to exclude phone numbers that
require a local addresspublic VoipReader setExcludeForeignAddressRequired(Boolean excludeForeignAddressRequired)
excludeForeignAddressRequired
- Whether to exclude phone numbers that
require a foreign addresspublic VoipReader setBeta(Boolean beta)
beta
- Whether to read phone numbers new to the Twilio platformpublic VoipReader setNearNumber(PhoneNumber nearNumber)
nearNumber
- Given a phone number, find a geographically close number
within distance miles. (US/Canada only)public VoipReader setNearNumber(String nearNumber)
nearNumber
- Given a phone number, find a geographically close number
within distance miles. (US/Canada only)public VoipReader setNearLatLong(String nearLatLong)
nearLatLong
- Given a latitude/longitude pair lat,long find
geographically close numbers within distance miles.
(US/Canada only)public VoipReader setDistance(Integer distance)
distance
- The search radius, in miles, for a near_ query. (US/Canada
only)public VoipReader setInPostalCode(String inPostalCode)
inPostalCode
- Limit results to a particular postal code. (US/Canada
only)public VoipReader setInRegion(String inRegion)
inRegion
- Limit results to a particular region. (US/Canada only)public VoipReader setInRateCenter(String inRateCenter)
inRateCenter
- Limit results to a specific rate center, or given a
phone number search within the same rate center as that
number. (US/Canada only)public VoipReader setInLata(String inLata)
inLata
- Limit results to a specific local access and transport area.
(US/Canada only)public VoipReader setInLocality(String inLocality)
inLocality
- Limit results to a particular localitypublic VoipReader setFaxEnabled(Boolean faxEnabled)
faxEnabled
- Whether the phone numbers can receive faxespublic ResourceSet<Voip> read(TwilioRestClient client)
public Page<Voip> firstPage(TwilioRestClient client)
public Page<Voip> getPage(String targetUrl, TwilioRestClient client)
public Page<Voip> nextPage(Page<Voip> page, TwilioRestClient client)
public Page<Voip> previousPage(Page<Voip> page, TwilioRestClient client)
previousPage
in class Reader<Voip>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.