Constructor and Description |
---|
NumberFetcher(PhoneNumber pathDestinationNumber)
Construct a new NumberFetcher.
|
Modifier and Type | Method and Description |
---|---|
Number |
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
NumberFetcher |
setOriginationNumber(PhoneNumber originationNumber)
The origination phone number, in E.164 format, for
which to fetch the origin-based voice pricing information.
|
NumberFetcher |
setOriginationNumber(String originationNumber)
The origination phone number, in E.164 format, for
which to fetch the origin-based voice pricing information.
|
fetch, fetchAsync, fetchAsync
public NumberFetcher(PhoneNumber pathDestinationNumber)
pathDestinationNumber
- The destination number for which to fetch
pricing informationpublic NumberFetcher setOriginationNumber(PhoneNumber originationNumber)
originationNumber
- The origination number for which to fetch pricing
informationpublic NumberFetcher setOriginationNumber(String originationNumber)
originationNumber
- The origination number for which to fetch pricing
informationpublic Number fetch(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.