Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 ril_text.gemspec
README.md

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.