amadeus 1.0.0.beta7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +45 -2
- data/lib/amadeus/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 116bbcff741bb5fab5803f00b10308532d62a2f4b14b68f46907fac8a8da2c28
|
4
|
+
data.tar.gz: deb8b9c78e5b04d33416ff206f69aeb7fe7864d021672cfd6a4568d8c4ec99a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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
|
data/lib/amadeus/version.rb
CHANGED
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
|
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:
|
247
|
+
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
250
|
rubygems_version: 2.7.6
|