Skip to content

halber/java-figo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-figo Build Status

Java bindings for the figo connect API: http://figo.io

Simply add to your pom.xml:

<dependency>
        <groupId>me.figo</groupId>
        <artifactId>sdk</artifactId>
        <version>1.2.1</version>
</dependency>

And just as easy to use:

import java.io.IOException;

import me.figo.FigoException;
import me.figo.FigoSession;
import me.figo.models.Account;
import me.figo.models.Transaction;


public class FigoExample {

	public static void main(String[] args) throws FigoException, IOException {
		FigoSession session = new FigoSession("ASHWLIkouP2O6_bgA2wWReRhletgWKHYjLqDaqb0LFfamim9RjexTo22ujRIP_cjLiRiSyQXyt2kM1eXU2XLFZQ0Hro15HikJQT_eNeT_9XQ");

		// print out a list of accounts including its balance
		for (Account account : session.getAccounts()) {
			System.out.println(account.getName());
			System.out.println(session.getAccountBalance(account).getBalance());
		}

		// print out the list of all transactions on a specific account
		for (Transaction transaction : session.getTransactions(session.getAccount("A1.2"))) {
			System.out.println(transaction.getPurposeText());
		}
	}

}

A more detailed documentation of the figo connect API can be found at http://docs.figo.io.

Demos

In this repository you can also have a look at a simple console(src/console_demo) and web demo(src/web_demo). While the console demo simply accesses the figo API, the web demo implements the full OAuth flow.

About

Java binding for the figo Connect API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%