Sha256: 704d80f2e488fcba3c03d9777cc5204d8493d64206021ee987b892804a89bdd2

Contents?: true

Size: 1.26 KB

Versions: 13

Compression:

Stored size: 1.26 KB

Contents

# corepro-sdk-ruby

A Ruby SDK for consuming the CorePro API

## Installation

Add this line to your application's Gemfile:

```ruby
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.

```ruby
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

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
corepro_fvr-1.0.9 README.md
corepro_eg-1.0.8 README.md
corepro_eg-1.0.7 README.md
corepro_eg-1.0.6 README.md
corepro_eg-1.0.5 README.md
corepro_eg-1.0.4 README.md
corepro_eg-1.0.3 README.md
corepro_eg-1.0.2 README.md
corepro-0.0.9 README.md
corepro-0.0.8 README.md
corepro-0.0.7 README.md
corepro-0.0.6 README.md
corepro-0.0.5 README.md