Project

corepro_eg

0.0
No commit activity in last 3 years
No release in over 3 years
See https://docs.corepro.io for more detail.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
~> 10.0
~> 3.2
 Project Readme

corepro-sdk-ruby

A Ruby SDK for consuming the CorePro API

Installation

Add this line to your application's Gemfile:

gem 'corepro'

And then execute:

$ bundle

Or install it yourself as:

$ gem install corepro

Usage

Use this object hierarchy as a simple entry point into CorePro. Details of the CorePro API itself are available at https://docs.corepro.io/api. To see all available SDKs, visit https://docs.corepro.io/sdk.

require 'corepro'

# create a connection 
# (typical use case is to pull connection info from config.yml, this is for explicitness)
conn = CorePro::Connection.new 'your-api-key-here', 'your-api-secret-here', 'api.corepro.io'

# retrieve a customer by a known tag (pass conn as nil if connection info is in config.yml)
cust = CorePro::Customer.getByTag 'bweaver', conn

# retrieve most recent transactions for that customer's primary account
trans = CorePro::Transaction.list cust.customerId, cust.accounts[0].accountId

Contributing

  1. Fork it ( https://github.com/socialmoney/corepro-sdk-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request