A Ruby interface to Feedly's API.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install feedlr
require 'feedlr' client = ::.(oauth_access_token: 'oauth access token') # Fetch user categories p client.user_categories # Fetch user subscriptions p client.user_subscriptions
You can easily inspect the available client methods:
require 'feedlr' client = ::. p client.methods.sort - Object.methods
Also, the gem is fairly documented. Browse the YARD documentaion for more information.
You can have a global configuration that instances can use. For example, you can have the following in some initializer's code:
. do |config| config.oauth_access_token = 'oauth access token' config.sandbox = true config.logger = SomeCustomLogger.new end
And elsewhere you can do:
client = ::.
You can set the oauth access token, a custom logger(if needed) and whether or not to use the client on sandbox(develpment) mode:
require 'feedlr' require 'logger' client = ::.( oauth_access_token: 'oauth access token', sandbox: true, logger: Logger.new(STDOUT) )
- Fork it
- 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