Package org.openbankdata.core.client

Examples of org.openbankdata.core.client.BankResponse.body()


  @Override
  public List<Account> getAccounts() {
    List<Account> vAccounts = new ArrayList<Account>();
    BankResponse vAccountsRequest = mBankClient.get(new BankRequest(ACCOUNTS_URL));
    String response = vAccountsRequest.body();
    Document doc = Jsoup.parse(response);
    Element el = doc.getElementById("summaryImageHeaderRow");

    if (el != null) {
      Account account = new Account();
View Full Code Here


  public List<Account> getAccounts() {
    BankRequest pRequest = new BankRequest().setUri(ACCOUNTS_URL)
        .setParams(getAccountsRequestParams());
    BankResponse response = mBankClient.post(pRequest);

    Document doc = Jsoup.parse(response.body());
    List<Account> accounts = parseAccounts(doc);

    if (!accounts.isEmpty()) {
      Account firstAccount = accounts.get(0);
      // Get account details for first account
View Full Code Here

  public List<Transaction> getTransactions(Account pAccount, LocalDate pFromDate,
      LocalDate pToDate) {
    List<Transaction> vTransactions = new ArrayList<Transaction>();
    BankResponse response = fetchTransactionData(pAccount);

    vTransactions.addAll(parseTransactions(response.body()));
    return filterTransactions(vTransactions, pFromDate, pToDate);
  }

  BankResponse fetchTransactionData(Account pAccount) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.