public class TwilioRestClient extends TwilioClient
DEFAULT_VERSION| Constructor and Description |
|---|
TwilioRestClient(String accountSid,
String authToken) |
TwilioRestClient(String accountSid,
String authToken,
String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount()
A shortcut for the most common case, returning the Account object for this authenticated client.
|
Account |
getAccount(String sid)
Get an account by account sid.
|
AccountFactory |
getAccountFactory()
Return an account factory to create new subaccounts
|
AccountList |
getAccounts()
Get all accounts.
|
AccountList |
getAccounts(Map<String,String> params)
Get a list of Account objects.
|
get, getAccountSid, getEndpoint, getHttpClient, getNumRetries, request, request, requestStream, requestStream, safeRequest, safeRequest, setHttpClient, setNumRetriespublic AccountList getAccounts(Map<String,String> params)
params - Filter the list with the given params. See the Twilio docs for available filters.public AccountList getAccounts()
public AccountFactory getAccountFactory()
public Account getAccount()
Copyright © 2011 Twilio, Inc. All Rights Reserved.