Skip to content

byvictor-dev/investec_open_api

 
 

Repository files navigation

InvestecOpenApi Client

Gem Version Build Status

A simple client wrapper for the Investec Open API.

Features:

  • Authorize access via OAuth
  • Retrieve accounts
  • Retrieve transactions per account

Installation

Add this line to your application's Gemfile:

gem 'investec_open_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install investec_open_api

Create a new initializer called investec_open_api.rb in config/initializers:

InvestecOpenApi.configuration do |config|
    config.api_username = "https://openapi.investec.com/"
    config.api_password = "<Open API username>"
    config.api_url = "<Open API password>"
end

You will need to register for Open API access. Follow the steps in Enrolment in the documentation.

Usage

To use the wrapper, create an instance of InvestecOpenApi::Client and then authenticate with your credentials:

client = InvestecOpenApi::Client.new
client.authenticate!

Once authenticated you can retrieve your accounts:

accounts = client.accounts
my_account = accounts.first

Use the ID of one of your accounts to retrieve transactions:

client.transactions(my_account.id)

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 99.3%
  • Shell 0.7%