DigitalBiblePlatform
A ruby wrapper for the Digital Bible Platform
Installation
Add this line to your application's Gemfile:
gem 'digital_bible_platform'
And then execute:
$ bundle
Or install it yourself as:
$ gem install digital_bible_platform
Usage
Get an API Key
Initialize a Client
You can set optional defaults for language, version, and media. See details here.
@client = DigitalBiblePlatform::Client.new(<your-api-key>)
Get a list of the books of the Bible
You will need the short_code (dam_id)
books = @client.books
Get the media link for a book of the bible
books = @client.url_for('2Tim', 4)
Contributing
- Fork it ( http://github.com//digital_bible_platform/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 new Pull Request