|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.TwilioClient
com.twilio.sdk.TwilioRestClient
public class TwilioRestClient
The client class that access http://api.twilio.com.
| Field Summary |
|---|
| Fields inherited from class com.twilio.sdk.TwilioClient |
|---|
DEFAULT_VERSION |
| Constructor Summary | |
|---|---|
TwilioRestClient(String accountSid,
String authToken)
|
|
TwilioRestClient(String accountSid,
String authToken,
String endpoint)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.twilio.sdk.TwilioClient |
|---|
get, getAccountSid, getEndpoint, getHttpClient, getNumRetries, request, request, requestStream, requestStream, safeRequest, safeRequest, setHttpClient, setNumRetries |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwilioRestClient(String accountSid,
String authToken)
public TwilioRestClient(String accountSid,
String authToken,
String endpoint)
| Method Detail |
|---|
public 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()
public Account getAccount(String sid)
sid - The sid of the account you want to fetch.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||