public class TwilioPricingClient extends TwilioClient
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VERSION |
| Constructor and Description |
|---|
TwilioPricingClient(String username,
String password)
Construct a new TwilioPricingClient.
|
TwilioPricingClient(String username,
String password,
String endpoint)
Construct a new TwilioPricingClient.
|
| Modifier and Type | Method and Description |
|---|---|
MessagingCountryList |
getMessagingCountries() |
MessagingCountry |
getMessagingCountry(String isoCountry) |
PhoneNumberCountryList |
getPhoneNumberCountries()
Get a list of countries where Twilio Phone Numbers are available.
|
PhoneNumberCountry |
getPhoneNumberCountry(String isoCountry)
Get pricing information for Twilio Phone Numbers in a specific country.
|
VoiceCountryList |
getVoiceCountries()
Get a list of objects representing countries where Twilio Voice
services are available.
|
VoiceCountry |
getVoiceCountry(String isoCountry)
Get pricing information for Twilio Voice services in a specific country.
|
VoiceNumber |
getVoiceNumber(String number)
Get pricing information for Twilio Voice calls to and from a specific phone number.
|
get, getAccountSid, getEndpoint, getHttpClient, getNumRetries, request, request, requestStream, requestStream, safeRequest, safeRequest, setHttpClient, setNumRetries, setRequestAccountSidpublic static final String DEFAULT_VERSION
public TwilioPricingClient(String username, String password)
username - Username for authentication. The 34 character Account identifier (starting with 'AC').
This can be found on your Twilio dashboard page.password - Password for authentication. The 32 character AuthToken.
This can be found on your Twilio dashboard page.public TwilioPricingClient(String username, String password, String endpoint)
username - Username for authentication. The 34 character Account identifier (starting with 'AC').
This can be found on your Twilio dashboard page.password - Password for authentication. The 32 character AuthToken.
This can be found on your Twilio dashboard page.endpoint - Custom Twilio pricing endpointpublic VoiceCountryList getVoiceCountries()
public VoiceCountry getVoiceCountry(String isoCountry)
isoCountry - ISO 3166-1 alpha-2 country code, e.g. "US" or "GB"public VoiceNumber getVoiceNumber(String number)
number - E.164-formatted phone number, e.g. "+15105551234"public PhoneNumberCountryList getPhoneNumberCountries()
public PhoneNumberCountry getPhoneNumberCountry(String isoCountry)
isoCountry - ISO 3166-1 alpha-2 country code, e.g. "US" or "GB"public MessagingCountryList getMessagingCountries()
public MessagingCountry getMessagingCountry(String isoCountry)
Copyright © 2011 Twilio, Inc. All Rights Reserved.