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