# RocketfuelApi [![CircleCI](https://circleci.com/gh/ad2games/rocketfuel_api.svg?style=svg)](https://circleci.com/gh/ad2games/rocketfuel_api) Unofficial client library for [Rocketfuel API](https://api.rocketfuel.com) ## Installation Add this line to your application's Gemfile: ```ruby gem 'rocketfuel_api' ``` And then execute: $ bundle Or install it yourself as: $ gem install rocketfuel_api ## Usage ```ruby # for development/specs (the default uri is: https://api-sandbox.rocketfuel.com/2016) connection = RocketfuelApi::Connection.new( auth_token: ENV['ROCKETFUEL_API_SANDBOX_AUTH_TOKEN'] ) # for production connection = RocketfuelApi::Connection.new( uri: 'https://api.rocketfuel.com/2016', auth_token: ENV['ROCKETFUEL_API_AUTH_TOKEN'] ) service = RocketfuelApi::Service::Company.new(connection) service.get(10) # returns the company with the ID 10 service.get_all # returns all companies ``` Also the `spec/integration` directory contains examples. Note: Only the `Company` Service `GET` requests are tested so far. ## Development Run specs with `bundle exec rspec`. To recreate or create new VCR episodes, a proper value for env var `ROCKETFUEL_API_SANDBOX_AUTH_TOKEN` is needed. We recommend that you set it in `.env.test` file. We run `rake rubocop` to make sure, everything looks good. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). ## Code of Conduct Everyone interacting in the RocketfuelApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rocketfuel_api/blob/master/CODE_OF_CONDUCT.md). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/ad2games/rocketfuel_api.