0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the Lending Club API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

LendingClub

A Ruby wrapper for the Lending Club API.

Installation

$ gem install lending_club

Usage

Obtain credentials

  1. Request access to the Lending Club API to obtain your key.
  2. Log in to find your investor id. You can find it in your account summary ("My Account yourinvestorid").

Example

# Set credentials
LendingClub.access_token = 'abc123'
LendingClub.investor_id = '12345678'
# Make a call
summary = LendingClub.summary
# Check available cash
summary.available_cash

Console

Create a credentials.yml from the example in the /config dir.

$ rake console

The console task will load and set your credentials from the credentials.yml, so you can start using the API right away.

Changelog

0.0.2 Added #to_h feature to all client objects.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/lending_club/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

Credit

Credit where credit is due: I modeled this gem closely after the Instagram API gem instagram-ruby-gem.