0.01
No commit activity in last 3 years
No release in over 3 years
A simple ruby client for GetYourGuide partner XML API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0.7.8, ~> 0.7.8
~> 10.0
>= 3.1.0, ~> 3.1

Runtime

>= 2.3.1, ~> 2.3
>= 1.5.0, ~> 1.5
 Project Readme

GetYourGuide logo

Gem Version Build Status Code Climate Coverage Status

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

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