GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cp/feedbin: Ruby wrapper for the Feedbin REST API

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
spec
spec
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Gemfile
Gemfile
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
feedbin.gemspec
feedbin.gemspec
 
 

Repository files navigation

Feedbin Build Status

A simple Ruby wrapper for v2 of the Feedbin.me REST API. Includes functionality for retrieving entries and subscribing to feeds.

This is an unoficial gem, and is not affiliated with Feedbin.

Installation

Add this line to your application's Gemfile:

gem 'feedbin'

And then execute:

$ bundle

Or install it yourself as:

$ gem install feedbin

Usage

Examples

@feedbin = FeedbinAPI.new('[email protected]','pa$$w0rd')

@feedbin.entries
# => (array of entry hashes)

#feedbin.entries(read: false)
# => (an array of unread entries as hashes)

@feedbin.unread_entries
# => (array of unread entry IDs)

entry_id = @feedbin.entries[0]["id"] # Let's get the ID of the first entry in our array.

@feedbin.entry(entry_id)
# => (entry)

@feedbin.mark_as_read(entry_id)
# => entry_id

@feedbin.mark_as_unread(entry_id)
# => entry_id

@feedbin.subscribe('http://colbyaley.com/feed')
# => 200

@feedbin.subscriptions
# => (an array with hashes of all subscriptions)

Sample Sinatra App

require 'sinatra'
require 'feedbin'

FEEDBIN = FeedbinAPI.new('[email protected]','pa$$w0rd')

get '/' do
  FEEDBIN.entries
end

get '/subscribe/:url' do
  FEEDBIN.subscribe(url.to_s)
end

...you get the picture.

Todo

  • Move away from HTTParty because of it's massive overhead.

Testing

Rspec is used for tests. WebMock is used to avoid touching the live Feedbin API.

Please add tests when contrinuting, and make sure that they all pass before submitting a PR.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add test coverage for your code.
  4. Run rspec. If there are any failures, please fix them before moving forward.
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

About

Ruby wrapper for the Feedbin REST API

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.