public class VoiceCountryList extends NextGenListResource<VoiceCountry,TwilioPricingClient>
TwilioPricingClient client = new TwilioPricingClient("ACCOUNT SID", "AUTH TOKEN");
// Retrieve country-specific pricing info
VoiceCountry country = client.getVoiceCountry("US");
// Print inbound call prices by type
for (VoiceCountry.InboundCallPrice p : country.getInboundCallPrices()) {
System.out.println(p.getNumberType.toString() + ": " + p.getBasePrice.toString());
}
| Constructor and Description |
|---|
VoiceCountryList(TwilioPricingClient client) |
VoiceCountryList(TwilioPricingClient client,
Map<String,String> filters) |
getNextPageUrl, getPage, getPageData, getPageSize, getPreviousPageUrl, getUrl, iteratorsetRequestAccountSidequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic VoiceCountryList(TwilioPricingClient client)
public VoiceCountryList(TwilioPricingClient client, Map<String,String> filters)
Copyright © 2011 Twilio, Inc. All Rights Reserved.