LendingClub
A Ruby wrapper for the Lending Club API.
Installation
$ gem install lending_club
Usage
Obtain credentials
- Request access to the Lending Club API to obtain your key.
- 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
- Fork it ( https://github.com/[my-github-username]/lending_club/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Credit
Credit where credit is due: I modeled this gem closely after the Instagram API gem instagram-ruby-gem.