Class: Amadeus::Namespaces::Travel::Analytics::AirTraffic::Searched

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/travel/analytics/air_traffic/searched.rb

Overview

A namespaced client for the /v1/travel/analytics/air-traffic/searched endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.travel.analytics.air_traffic.searched

Instance Method Summary collapse

Instance Method Details

#get(params = {}) ⇒ Amadeus::Response

Returns a list of air traffic reports, based on searches.

IATA code of the origin city -

e.g. MAD for Madrid - required

IATA code of the country from which the searches were made -

e.g. ES for Spain - required

are searching -

in YYYY-MM format - required

from Madrid in August 2017?

amadeus.travel.analytics.air_traffic.searched.get(
  originCityCode: 'MAD',
  searchPeriod: '2017-08',
  marketCountryCode: 'ES'
)

Examples:

Which were the most searched flight destinations


Options Hash (params):

  • :originCityCode (String)
  • :marketCountryCode (String)
  • :searchPeriod (String)

    when consumers

Raises:

  • (Amadeus::Base)

    an exception if the call failed



38
39
40
# File 'lib/amadeus/namespaces/travel/analytics/air_traffic/searched.rb', line 38

def get(params = {})
  client.get('/v1/travel/analytics/air-traffic/searched', params)
end