0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wraper for the Diffbot API, follows Ruby conventions and idioms.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5

Runtime

~> 0.8.8
 Project Readme

Diffbot.rb Build Status Code Climate

Ruby wraper for the diffbot.com API, follows Ruby conventions and idioms.

Check out the code documentation here.

Installation

Add this line to your application's Gemfile:

gem 'diffbot_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install diffbot_api

Usage

You can provide your authentication token globally

Diffbot.configure do |c|
  c.token = ENV['DIFFBOT_TOKEN']
end

The API is modular, you can access access all resources through the client instance

client = Diffbot::Client.new
client.article "www.somedomain.com/example-url"

or just the module-level resources that you actually need

article = Diffbot::Article.new("www.mrt.com/the-a-team")
article.title   # => "The A-Team"
article.author  # => "Mr. T"

Status

This is very early stage, here are the endpoints implemented so far:

  • Article (in progress)
  • FrontPage (pending)
  • Product (pending)
  • Image (pending)
  • Classifier (pending)

Contributing

  1. Fork it ( http://github.com/orendon/diffbot.rb/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Bitdeli Badge