@Connector(name="google-qpx", friendlyName="Google QPX", description="Google QPX Integration", minMuleVersion="3.8") public class GoogleQPXConnector extends Object
Anypoint™ Connector for Google QPX allows to interact with Google QPX Express API and provides the ability to search for flights and use this data into your Mule apps.
The Google QPX Express API allows developers to access information on global airline pricing and availability. By integrating the API into their applications, developers can provide their customers with airfare pricing and shopping services. With one query, QPX Express searches airline schedules, fares, tax rules, and seat availability in order to return fully-priced, availability-checked flight options and booking information.
Constructor and Description |
---|
GoogleQPXConnector() |
Modifier and Type | Method and Description |
---|---|
GoogleQPXConfig |
getGoogleQPXConfig() |
void |
setGoogleQPXConfig(GoogleQPXConfig googleQPXConfig) |
TripsSearchResponse |
trips(TripsSearchRequest tripsSearchRequest)
Returns a list of flights including the flight details and price
|
@Processor @Mime(value="application/java") public TripsSearchResponse trips(@Default(value="#[payload]") TripsSearchRequest tripsSearchRequest) throws GoogleQPXException
tripsSearchRequest
- Required values are at least one adult or senior passenger, an origin, a destination, and a date.GoogleQPXException
- If any fail occurspublic GoogleQPXConfig getGoogleQPXConfig()
public void setGoogleQPXConfig(GoogleQPXConfig googleQPXConfig)
Copyright © 2010–2017. All rights reserved.