public class Account extends ResourceBase
/v1/users/{userId}/account
Modifier and Type | Class and Description |
---|---|
class |
Account.TransactionsQueryBuilder |
client, id, properties
dateFormat
Constructor and Description |
---|
Account(BandwidthClient client) |
Modifier and Type | Method and Description |
---|---|
static Account |
get()
Account factory method.
|
AccountInfo |
getAccountInfo()
Gets your current account information.
|
protected String |
getUri() |
Account.TransactionsQueryBuilder |
queryTransactionsBuilder()
Creates builder for getting transactions of the account.
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Account(BandwidthClient client)
public static Account get()
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
public AccountInfo getAccountInfo() throws Exception
IOException
- unexpected error.Exception
public Account.TransactionsQueryBuilder queryTransactionsBuilder()
List<AccountTransaction> list = account.queryTransactionsBuilder().maxItems(5).type("charge").list();
protected String getUri()
Copyright © 2015. All Rights Reserved.