amadeus 1.0.0.beta7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -2
  3. data/lib/amadeus/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 099d7bf4b27c85e463286035f1b1a460bf06ee2240716d5aa504c225b0512ee9
4
- data.tar.gz: ac36cd6723725f167c121c2a91d6bb38ac7450b72df4e4270d9142d47cf13968
3
+ metadata.gz: 116bbcff741bb5fab5803f00b10308532d62a2f4b14b68f46907fac8a8da2c28
4
+ data.tar.gz: deb8b9c78e5b04d33416ff206f69aeb7fe7864d021672cfd6a4568d8c4ec99a8
5
5
  SHA512:
6
- metadata.gz: e828a71b9434750d73901a601489789f71e4b802f4cb59eccf4003135af92327bd9e049abea87ba0d48f9418ef9215b80e8f5d9912740558dc7a1e9c13fdbe91
7
- data.tar.gz: eaa1e93bf96e5a6c911b86fb8713da96783f5bb6cc2ed40b219effeed29b2313fec6f260cb63bedf47fd58d82283c7b33b44c75bc6f0a1bc7149ce43fb492b29
6
+ metadata.gz: f2079ed0e6473ec1f8e1084bd8c6b1d6e7d27a13a201f92a99ec0daf8cd5396db55400f377d8a4a5a05ef4921eb5412f6eb8a0c299c6384bf543e4c5b4860fa4
7
+ data.tar.gz: bced7a7488c3048c5f181155dd3e57a5bfe1c6903be9694d4479d5c8c2efec3719ee905d00b00051bae3f94dd5232a2adcea2bede43869a16b90d8f053154113
data/README.md CHANGED
@@ -15,9 +15,13 @@ documentation](https://amadeus4dev.github.io/amadeus-ruby/) on
15
15
  ## Installation
16
16
 
17
17
  This gem requires Ruby 2.2+. You can install install it directly or via bundler.
18
-
18
+ #### Command line
19
+ ```bash
20
+ gem install amadeus
21
+ ```
22
+ #### Bundler
19
23
  ```rb
20
- gem 'amadeus', '~> 1.0.0.beta7'
24
+ gem 'amadeus'
21
25
  ```
22
26
 
23
27
  ## Getting Started
@@ -169,7 +173,46 @@ amadeus = Amadeus::Client.new(
169
173
  log_level: 'debug' # or "warn" or "silent", defaults to "silent"
170
174
  )
171
175
  ```
176
+ ## List of supported endpoints
177
+ ```rb
178
+ # Flight Cheapest Date Search
179
+ amadeus.shopping.flight_dates.get(origin: 'NCE', destination: 'PAR', duration: 1)
180
+
181
+ # Flight Inspiration Search
182
+ amadeus.shopping.flight_destinations.get(origin: 'MAD')
172
183
 
184
+ # Flight Low-fare Search
185
+ amadeus.shopping.flight_offers.get(origin: 'MAD', destination: 'OPO', departureDate: '2018-07-08')
186
+
187
+ # Flight Check-in Links
188
+ amadeus.reference_data.urls.checkin_links.get({ airline: '1X' })
189
+
190
+ # Airport & City Search (autocomplete)
191
+ # Find all the cities and airports starting by the keyword 'Lon'
192
+ amadeus.reference_data.locations.get(
193
+ keyword: 'Lon',
194
+ subType: Amadeus::Location::ANY
195
+ )
196
+ # Get a specific city or airport based on its id
197
+ amadeus.reference_data.location('ALHR').get
198
+
199
+ # Airport Nearest Relevant
200
+ amadeus.reference_data.locations.airports.get(longitude: 49.0000, latitude: 2.55)
201
+
202
+ # Flight Most Searched Destinations
203
+ amadeus.travel.analytics.fare_searches.get(origin: 'NCE', sourceCountry: 'FR', period: '2017-08')
204
+
205
+ # Flight Most Traveled Destinations
206
+ ramadeus.travel.analytics.air_traffic.traveled.get(origin: 'NCE', period: '2017-08')
207
+
208
+ # Hotel Search API
209
+ # Get list of hotels by cityCode
210
+ amadeus.shopping.hotel_offers.get(cityCode: 'PAR')
211
+ # Get list of offers for a specific hotel
212
+ amadeus.shopping.hotel('SMPARCOL').hotel_offers.get
213
+ # Confirm the availability of a specific offer for a specific hotel
214
+ amadeus.shopping.hotel('SMPARCOL').offer('4BA070CE929E135B3268A9F2D0C51E9D4A6CF318BA10485322FA2C7E78C7852E').get
215
+ ```
173
216
  ## Development & Contributing
174
217
 
175
218
  Want to contribute? Read our [Contributors Guide](.github/CONTRIBUTING.md) for
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Amadeus
4
4
  # The current client version
5
- VERSION = '1.0.0.beta7'.freeze
5
+ VERSION = '1.0.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amadeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amadeus
@@ -242,9 +242,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: 2.2.0
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ">"
245
+ - - ">="
246
246
  - !ruby/object:Gem::Version
247
- version: 1.3.1
247
+ version: '0'
248
248
  requirements: []
249
249
  rubyforge_project:
250
250
  rubygems_version: 2.7.6