RHN
Yet another WEB API for hackernews. Beware of lazy hack ahead!
This project is a very thin layer on top of ruby-hackernews so
we can access this info through HTTP.
The main usage of this API is an Emacs Client for Hackernews.
Install and Run
That's easy. You just have to get the code and run the rhn
executable:
$ gem install rhn
Boom! Just change your emacs configuration adding the following lines:
(setq hackernews-url "http://127.0.0.1:4567/")
The next time you run M-x hackernews
you'll be using your local proxy.
As a library
Add this line to your application's Gemfile
gem 'rhn'
And then execute
$ bundle
Usage
$ rhn
Then open a browser and try the following URL:
http://localhost:4567/api/?r=%7B%22symbol%22%3A%22HN.hotpage%22%7D
Contributing
- 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