/api_access

Simple wrapper for HTTP GET and POST

Primary LanguageRubyMIT LicenseMIT

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

  1. Fork it ( https://github.com/Slacken/api_access/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request