ActiveDiigo

Description

ActiveDiigo is a wrapper for Diigo API(version: v2). It provides ActiveRecord like interaction with Diigo API. You just need to inherit ActiveDiigo::Base in class you want to use active_diigo in. It’s also works standalone and it’s framework agnostic gem, enabling itself to be used in any ruby framework.

Installation

as you install any other ruby gem

[sudo] gem install active_diigo

using bundler

gem 'active_diigo'

and then

bundle install

Uses

Setup API Key and user credentials in initializer or anywhere before using active_diigo

ActiveDiigo.api_key = 'YOUR_API_KEY'
ActiveDiigo.username = '<user-name>'
ActiveDiigo.password = '<password>'

then

ActiveDiigo::Base.find(username, options)
#=> returns array of ActiveDiigo::Base objects
ActiveDiigo::Base.save(title, url, options)
#=> returns a hash with message (saved or not)
#OR
class MyDiigo < ActiveDiigo::Base; end
MyDiigo.find(username, options)
#=> Returns array of MyDiigo objects

Contributing to active_diigo

TODO

Copyright © 2011-2016 Bagwan Pankaj. See LICENSE for further details.