A Ruby interface to Decathlon's Sports API is available as a Ruby Gem.
Add this line to your application's Gemfile:
gem 'decathlon-sports'
And then execute:
$ bundle
Or install it yourself as:
$ gem install decathlon-sports
sports = Decathlon::Sports.all(params: {}, headers: {})
sport = Decathlon::Sports.find(175)
sport = Decathlon::Sports.search('Snowboarding', params: {}, headers: {})
recommendations = Decathlon::Sports::Recommendations.get(175)
The
params: {}
andheaders: {}
arguments are optional and interchangeable.
Bug reports and pull requests are welcome on GitHub at https://github.com/decathlon/sports-api-wrapper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.