BetfairApiNgRails
API-NG is Betfair's next generation API for developers looking to create automated betting systems or custom interfaces for themselves or for Betfair customers. Using this gem you may do calls to API-NG for fetching some interesting information about competitions, events and markets.
Installation
Add this line to your application's Gemfile:
gem 'betfair_api_ng_rails', '1.0.0'
And then execute:
$ bundle
Or install it yourself as:
$ gem install betfair_api_ng_rails
Or if you want to stay on the edge:
gem 'betfair_api_ng_rails', github: 'alterego-labs/betfair_api_ng_rails'
After this run next rake command:
$ bundle exec rake betfair_api_ng_rails:install
After installation will appear two files:
config/betfair_api_ng_rails.yml
config/initializers/betfair_api_ng_rails.rb
In this files you must specify credentials to API-NG. Also you should notice that this gem used non-interactive login and you must generate ssh keys for logining well. More information about this you may find there.
Usage
Please check wiki pages.
CHANGES IN 1.1.0
- Supporting all Simple listing filtered requests
- Supporting listMarketCatalogue and listMarketBook methods
- Raising APINGException if error occurred similar official API-NG
- Refactoring and testing
CHANGES IN 1.0.0
- Replaced ActiveRecord style querying by more similar structure to API-NG
- Starting to testing
- Refactoring
CHANGES IN 0.0.8
- Fixing more of bugs
- Came back formatters and out-of-box exists formatter for JsTree
- Added all enums
- Added shortcuts for models
- Refactoring
Specs
You may running all specs by rspec spec --color
to be sure that all is alright.
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