Skyscanner / skyscanner-python-sdk

Skyscanner Python SDK
Other
122 stars 33 forks source link

additional params? #15

Closed brianshu closed 8 years ago

brianshu commented 8 years ago

" from skyscanner import Flights

flights_service = Flights('un916353397293877852942657332487') result = flights_service.get_result( stops = 0, country='US', currency='USD', locale='en-US', originplace='DTW-sky', destinationplace='PEK-sky', outbounddate='2016-06-29', inbounddate='2016-07-30').parsed

print result "

the parameter of "stops" doesn't work.

is my way not right? how could I solve it? I just simply want to add a stop parameter to filter the result.

ardydedase commented 8 years ago

Hi @brianshu,

This should be supported in our latest version 1.1.2. Please see release notes for more details: https://github.com/Skyscanner/skyscanner-python-sdk/releases/tag/1.1.2

Thanks! Ardy

erwinyusrizal commented 7 years ago

@ardydedase I think you need to make the additional params accessible? so we can custom it based on what we need, like currently it has no pageindex and pagesize, also some hotels parameters not working since it is not in additional default params

pageindex=0, pagesize=5

Thanks