jeancsil/skyscanner-vigilant-bundle
Composer 安装命令:
composer require jeancsil/skyscanner-vigilant-bundle
包简介
Provides constant tracking for the best prices for your next trip
README 文档
README
Symfony2 Bundle that provides console commands to keep watching flight deals for you!
Install
composer require jeancsil/skyscanner-vigilant-bundle
OR
Add in your composer.json:
"require": { "jeancsil/skyscanner-vigilant-bundle": "1.*" }
Enable the bundle:
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new Jeancsil\Skyscanner\VigilantBundle\JeancsilSkyscannerVigilantBundle(), ... ); } }
Add these configurations in your parameters.yml file:
jeancsil.skyscanner.api.host: 'http://partners.api.skyscanner.net' jeancsil.skyscanner.api.key: YOUR_API_KEY jeancsil.skyscanner.http.client.config: base_uri: '%jeancsil.skyscanner.api.host%' timeout: 30 headers: Content-Type: application/x-www-form-urlencoded Accept: application/json User-Agent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) (OPTIONAL)'
Documentation
Simply run bin/console skyscanner:vigilant:live_prices --help to get it running.
Example:bin/console skyscanner:vigilant:live_prices --from=GRU-sky --to=FRA-sky --departure=2016-10-01 --arrival=2016-11-01 --country=BR --currency=BRL --locale=pt-BR.
You might want to put it in your crontab as well. (and go grab a beer!)
Support
For general support and questions, find me on Twitter as @jeancsil.
Bugs and suggestions: open a ticket.
License
This package is available under the MIT license.
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-15