com.twilio.sdk.resource.list
Class AccountList

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.ListResource<Account>
          extended by com.twilio.sdk.resource.list.AccountList
All Implemented Interfaces:
AccountFactory, Iterable<Account>

public class AccountList
extends ListResource<Account>
implements AccountFactory

The Class AccountList. For more information see https://www.twilio.com/docs/api/rest/account


Constructor Summary
AccountList(TwilioRestClient client)
          Instantiate a new AccountList
AccountList(TwilioRestClient client, Map<String,String> filters)
          Instantiates a new account list with the given filters.
 
Method Summary
 Account create(List<org.apache.http.NameValuePair> params)
           
 Account create(Map<String,String> params)
          Creates a subaccount.
 
Methods inherited from class com.twilio.sdk.resource.ListResource
getEnd, getNextUri, getNumPages, getPage, getPageData, getStart, getTotal, iterator
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountList

public AccountList(TwilioRestClient client)
Instantiate a new AccountList


AccountList

public AccountList(TwilioRestClient client,
                   Map<String,String> filters)
Instantiates a new account list with the given filters.

Parameters:
client - the client
filters - the filters
Method Detail

create

public Account create(Map<String,String> params)
               throws TwilioRestException
Description copied from interface: AccountFactory
Creates a subaccount.

Specified by:
create in interface AccountFactory
Parameters:
params - the params
Returns:
the account
Throws:
TwilioRestException

create

public Account create(List<org.apache.http.NameValuePair> params)
               throws TwilioRestException
Specified by:
create in interface AccountFactory
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.