public class AvailablePhoneNumberCountryFetcher extends Fetcher<AvailablePhoneNumberCountry>
Constructor and Description |
---|
AvailablePhoneNumberCountryFetcher(String pathCountryCode)
Construct a new AvailablePhoneNumberCountryFetcher.
|
AvailablePhoneNumberCountryFetcher(String pathAccountSid,
String pathCountryCode)
Construct a new AvailablePhoneNumberCountryFetcher.
|
Modifier and Type | Method and Description |
---|---|
AvailablePhoneNumberCountry |
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
fetch, fetchAsync, fetchAsync
public AvailablePhoneNumberCountryFetcher(String pathCountryCode)
pathCountryCode
- The ISO country code of the country to fetch
available phone number information aboutpublic AvailablePhoneNumberCountryFetcher(String pathAccountSid, String pathCountryCode)
pathAccountSid
- The SID of the Account requesting the available phone
number Country resourcepathCountryCode
- The ISO country code of the country to fetch
available phone number information aboutpublic AvailablePhoneNumberCountry fetch(TwilioRestClient client)
fetch
in class Fetcher<AvailablePhoneNumberCountry>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.