Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skyscanner Optional Parameters do not seem to parse #32

Open
johnsonc opened this issue Nov 13, 2017 · 0 comments
Open

Skyscanner Optional Parameters do not seem to parse #32

johnsonc opened this issue Nov 13, 2017 · 0 comments

Comments

@johnsonc
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant