Read the gem's wiki for more features!
Installation
Add this line to your application's Gemfile:
gem 'getyourguide'
And then execute:
$ bundle
Or install it yourself as:
$ gem install getyourguide
Usage
I. The easy way
require 'getyourguide'
# required
partner_id = 'XXXXXXXXXX'
options = {
:q => 'product_list',
:where => 'Rome'
}
# optional (default is set to EN)
language = 'fr'
api = GetYourGuide::ApiClient.new(partner_id, language)
parsed_activities = api.call_and_parse(options)
Run tests
bundle exec rspec
Contributing
- Fork it ( https://github.com/Libertrip/getyourguide/fork )
- 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 a new Pull Request