Skip to content

Latest commit

 

History

History
43 lines (22 loc) · 1.03 KB

02_integrations.md

File metadata and controls

43 lines (22 loc) · 1.03 KB

SDKs

Ruby

A Ruby interface to Decathlon's Sports API is available as a Ruby Gem.

Installation

Add this line to your application's Gemfile:

gem 'decathlon-sports'

And then execute:

$ bundle

Or install it yourself as:

$ gem install decathlon-sports

Usage

Decathlon::Sports.all

sports = Decathlon::Sports.all(params: {}, headers: {})

Decathlon::Sports.find

sport = Decathlon::Sports.find(175)

Decathlon::Sports.find

sport = Decathlon::Sports.search('Snowboarding', params: {}, headers: {})

Decathlon::Sports::Recommendations.get

recommendations = Decathlon::Sports::Recommendations.get(175)

The params: {} and headers: {} arguments are optional and interchangeable.

Contributing

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.