Skip to content

figo-connect/ruby-figo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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