Sha256: 6265082ed06f8950eb9c3e23e0e59961aee89bba90a5547ce509626d0b1e4369

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

[![Build Status](https://travis-ci.org/westernmilling/gman_client.svg?branch=master)](https://travis-ci.org/westernmilling/gman_client) [![Coverage Status](https://coveralls.io/repos/westernmilling/gman_client/badge.svg)](https://coveralls.io/r/westernmilling/gman_client)
# GmanClient

Gem hooks into the Grossman API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'gman_client', :git => 'git@github.com:michaelachrisco/gman_client.git'
```

And then execute:

    $ bundle

Make sure to include:
* WRAP_URL: This URL is the url for the api. Example ```export WRAP_URL="http://example.com"```
* CLIENT_ID: Doorkeeper App ID. Example: ```export CLIENT_ID="1234567"```
* CLIENT_SECRET: Doorkeeper App Secret. Example: ```export CLIENT_SECRET="1234567"```
* TOKEN_URL: URL for token. Example:  ```export TOKEN_URL="http://example.com/oauth/token"```

Or initialize:
```Ruby
        gman = Gman::Client.new(:url => "http://example.com",
                                  :token_url => "1234567",
                                  :client_id => "1234567",
                                  :client_secret => "http://example.com/oauth/token"
        )
```

How to use:
```Ruby
gman.drivers
gman.driver_commission_histories
gman.driver_commission_histories_by_paid_date(DATE.new())
```

## Contributing

1. Fork it ( https://github.com/michaelachrisco/gman_client/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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gman_client-0.0.6 README.md
gman_client-0.0.5 README.md