Recurly Ruby Client
The Recurly Ruby Client library is an open source library to interact with Recurly's subscription management from your Ruby on Rails website. The library interacts with Recurly's REST API.
This library can be installed as a gem or a plugin. Your choice.
gem install recurly --source=http://gemcutter.org
script/plugin install email@example.com:recurly/recurly-client-ruby.git
The Recurly Ruby Client requires a username and password to connect. We recommend creating a user just for your API. Please see the Authentication documentation for more information.
Create a file in your Rails app at /config/initializers/recurly_config.rb with contents like:
Recurly.configure do |c| c.username = 'firstname.lastname@example.org' c.password = 'super_secret_password' end
All the functionality is demonstrated by the unit tests in the test directory.
To run the tests, you'll need to create a file /test/config.yml. See /test/config.example.yml for details.
Please see the Recurly API for more information.