ApiAccess
A Ruby gem and a simple wrapper for HTTP GET and POST
Installation
Add this line to your application's Gemfile:
gem 'api_access'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api_access
Usage
ApiAccess.getJSON('http://example.com/url', {q: 1}), ApiAccess.get is an alias method of ApiAccess.getJSON
Contributing
- Fork it ( https://github.com/Slacken/api_access/fork )
- 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 a new Pull Request