skyscanner-python-sdk icon indicating copy to clipboard operation
skyscanner-python-sdk copied to clipboard

Skyscanner Optional Parameters do not seem to parse

Open johnsonc opened this issue 6 years ago • 0 comments

Example params being passed to:

from skyscanner.skyscanner import Flights flights_service = Flights(settings.SKY_TOKEN) flights_service.skyscanner.get_result( {'inbounddate': '', 'currency': 'INR', 'includeCarriers': u'9W', 'originplace': u'CCU-sky', 'adults': 1, 'destinationplace': u'DEL-sky', 'locale': 'en-IN', 'country': 'IN', 'outbounddate': '2018-01-13', 'market': 'IN'})

However, the results don't come filtered with includeCarriers.
In the results we get other Carriers and also the results['Query'] as such.

"Query": { "DestinationPlace": "10957", "CabinClass": "Economy", "Adults": 1, "Locale": "en-IN", "Country": "IN", "OutboundDate": "2018-01-13", "Currency": "INR", "OriginPlace": "10401", "LocationSchema": "Default", "Infants": 0, "GroupPricing": false, "Children": 0 },

We tested with the same parameters in the API Test Harness and we got proper results.

johnsonc avatar Nov 13 '17 07:11 johnsonc