RilText
This is a thin wrapper of Read It Later Text API.
At first, you should get your API key.
Installation
Add this line to your application's Gemfile:
gem 'ril_text'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ril_text
Usage
require 'ril_text'
RilText.get('http://readitlaterlist.com/api/docs')
will return a hash. The hash contains following fields.
-
text: Extracted body of the document. -
title: Title of the document. -
resolved: Resolved URL. RIL Text API follows redirect chain until it gets 200. -
image: Favicon of the document.
Coniguration
Set apikey using RilText.configure before use.
RilText.configure do |c|
c.apikey = 'yourapikey'
c.images = 1
c.mode = 'more'
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request