MaximeRVY / getyourguide

A simple ruby client for Getyourguide partner XML API

Home Page:https://rubygems.org/gems/getyourguide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetYourGuide logo

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)

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

About

A simple ruby client for Getyourguide partner XML API

https://rubygems.org/gems/getyourguide

License:MIT License


Languages

Language:Ruby 86.9%Language:Shell 13.1%