All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amadeus.travel.analytics.airTraffic.SearchedByDestination Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package com.amadeus.travel.analytics.airTraffic;

import com.amadeus.Amadeus;
import com.amadeus.Params;
import com.amadeus.Response;
import com.amadeus.exceptions.ResponseException;
import com.amadeus.resources.Resource;
import com.amadeus.resources.SearchedDestination;

/**
 * 

* A namespaced client for the * /v1/travel/analytics/air-traffic/searched/by-destination endpoints. *

* *

* Access via the Amadeus client object. *

* *
 * Amadeus amadeus = Amadeus.builder("API_KEY", "API_SECRET").build();
 * amadeus.travel.analytics.airTraffis.SearchedByDestination;
*/ public class SearchedByDestination { private Amadeus client; /** * Constructor. * * @hide */ public SearchedByDestination(Amadeus client) { this.client = client; } /** *

* Returns a air traffic report based on the number of searches. *

* *
   * amadeus.travel.analytics.airTraffic.searchedByDestination.get(Params
   *   .with("originCityCode", "MAD")
   *   .and("destinationCityCode", "NYC")
   *   .and("searchPeriod", "2017-08")
   *   .and("marketCountryCode", "ES"));
* * @param params the parameters to send to the API * @return an API response object * @throws ResponseException when an exception occurs */ public SearchedDestination get(Params params) throws ResponseException { Response response = client .get("/v1/travel/analytics/air-traffic/searched/by-destination", params); return (SearchedDestination) Resource.fromObject(response, SearchedDestination.class); } /** * Convenience method for calling get without any parameters. * * @see SearchedByDestination#get() */ public SearchedDestination get() throws ResponseException { return get(null); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy