Project

figo

0.02
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Library to easily use the API of http://figo.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

ruby-figo Build Status Gem Version

Ruby bindings for the figo Connect API: http://docs.figo.io

Usage

First, you've to install the gem:

gem install figo

Now you can retrieve data with an user bound session

require 'figo'
connection = Figo::Connection.new(<client_id>, <client_secret>)

# Trade in user credentials, refresh token or authorization code for access token.
token_hash = connection.user_credential_request(<username>, <password>) # or..
token_hash = connection.refresh_token_request(<refresh_token>) # or..
token_hash = connection.authorization_code_request(<authorization_code>, <redirect_uri>)

# Start session.
session = Figo::Session.new(token_hash['access_token'])

# Retrieve data
session.accounts.each do |account|
  puts account.account_number
  ...
}

You can find more documentation at http://rubydoc.info/github/figo-connect/ruby-figo/master/frames