public class Account extends InstanceResource
| Constructor and Description |
|---|
Account(TwilioRestClient client)
Instantiates a new account.
|
Account(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new account.
|
getProperty, updatesetRequestAccountSidpublic Account(TwilioRestClient client)
client - the clientpublic Account(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public void setSid(String accountSid)
accountSid - the new sidpublic String getAuthToken()
public void setAuthToken(String authToken)
authToken - the new auth tokenpublic String getFriendlyName()
public String getStatus()
public String getType()
public Date getDateCreated()
public Date getDateUpdated()
public CallList getCalls()
public CallList getCalls(Map<String,String> filters)
filters - the filterspublic Call getCall(String sid)
sid - The 34 character sid starting with CApublic CallFactory getCallFactory()
public SmsList getSmsMessages()
public SmsList getSmsMessages(Map<String,String> filters)
filters - the filterspublic Sms getSms(String sid)
sid - The 34 character sid starting with SMpublic SmsFactory getSmsFactory()
public UsageTriggerFactory getUsageTriggerFactory()
public ApplicationList getApplications()
public ApplicationList getApplications(Map<String,String> filters)
filters - the filterspublic Application getApplication(String sid)
sid - The 34 character sid starting with APpublic ApplicationFactory getApplicationFactory()
public AvailablePhoneNumberList getAvailablePhoneNumbers()
public AvailablePhoneNumberList getAvailablePhoneNumbers(Map<String,String> filters)
filters - the filterspublic AvailablePhoneNumberList getAvailablePhoneNumbers(Map<String,String> filters, String isoCountry, String type)
filters - the filtersisoCountry - the Iso Country code you are searching intype - the type of phone number. Possible values are
AvailablePhoneNumber.TYPE_LOCAL or
AvailablePhoneNumber.TYPE_TOLLFREEpublic ConferenceList getConferences()
public ConferenceList getConferences(Map<String,String> filters)
filters - the filterspublic QueueList getQueues()
QueueListpublic Conference getConference(String sid)
sid - The 34 character sid starting with CFpublic IncomingPhoneNumberList getIncomingPhoneNumbers()
public IncomingPhoneNumberList getIncomingPhoneNumbers(Map<String,String> filters)
filters - the filterspublic IncomingPhoneNumber getIncomingPhoneNumber(String sid)
sid - The 34 character sid starting with PNpublic IncomingPhoneNumberFactory getIncomingPhoneNumberFactory()
public ShortCodeList getShortCodes()
public ShortCodeList getShortCodes(Map<String,String> filters)
filters - the filterspublic ShortCode getShortCode(String sid)
sid - The 34 character sid starting with SCpublic NotificationList getNotifications()
public NotificationList getNotifications(Map<String,String> filters)
filters - the filterspublic Notification getNotification(String sid)
sid - The 34 character sid starting with NOpublic OutgoingCallerIdList getOutgoingCallerIds()
public OutgoingCallerIdList getOutgoingCallerIds(Map<String,String> filters)
filters - the filterspublic OutgoingCallerId getOutgoingCallerId(String sid)
sid - The 34 character sid starting with PNpublic OutgoingCallerIdFactory getOutgoingCallerIdFactory()
public RecordingList getRecordings()
public RecordingList getRecordings(Map<String,String> filters)
filters - the filterspublic Recording getRecording(String sid)
sid - The 34 character sid starting with REpublic TranscriptionList getTranscriptions()
public TranscriptionList getTranscriptions(Map<String,String> filters)
filters - the filterspublic Transcription getTranscription(String sid)
sid - The 34 character sid starting with TRpublic UsageRecordList getUsageRecords(Map<String,String> filters)
filters - the filterspublic UsageRecordList getUsageRecords()
public UsageTriggerList getUsageTriggers(Map<String,String> filters)
filters - the filterspublic UsageTriggerList getUsageTriggers()
public ConnectAppList getConnectApps(Map<String,String> filters)
filters - the filterspublic ConnectApp getConnectApp(String sid)
sid - The 34 character sid starting with CNpublic AuthorizedConnectAppList getAuthorizedConnectApps()
public AuthorizedConnectAppList getAuthorizedConnectApps(Map<String,String> filters)
filters - the filterspublic AuthorizedConnectApp getAuthorizedConnectApp(String sid)
sid - The 34 character sid starting with CNpublic Sandbox getSandbox()
public boolean close()
throws TwilioRestException
TwilioRestException - if there is an error in the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.