com.hoiio.sdk.services
Class AccountService

java.lang.Object
  extended by com.hoiio.sdk.services.HttpService
      extended by com.hoiio.sdk.services.AccountService

public class AccountService
extends HttpService

The Account API will allow developers to check their credit balances and other account information.

For more info please refer to: http://developer.hoiio.com/docs/account.html


Constructor Summary
AccountService(String appId, String accessToken)
          Constructs the service to make all Account requests
 
Method Summary
 Account fetchAccount()
          Retrieves the general information of your account.
 Balance fetchBalance()
          Retrieves the current credit balance of your account
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountService

public AccountService(String appId,
                      String accessToken)
Constructs the service to make all Account requests

Parameters:
appId - AppID of the developer
accessToken - AccessToken of the developer
Method Detail

fetchAccount

public Account fetchAccount()
                     throws HoiioException
Retrieves the general information of your account.

Returns:
Object containing all the responses from the server
Throws:
HoiioException

fetchBalance

public Balance fetchBalance()
                     throws HoiioException
Retrieves the current credit balance of your account

Returns:
Object containing all the responses from the server
Throws:
HoiioException