APB Shuttle API
This API helps developers easy get APB Shuttle info.
Details document: https://apb-shuttle.info/doc/api
Installation
Add this line to your application's Gemfile:
gem 'apb_shuttle_api'And then execute:
$ bundle
Or install it yourself as:
$ gem install apb_shuttle_api
Usage
- 最新車表 - Now
- 下一班車表 - Next
- 全部車表 - All
- 其他資訊 - Info
require 'apb_shuttle_api'最新車表 - Now
ApbShuttleApi.now下一班車表 - Next
ApbShuttleApi.next(1) # next 1
ApbShuttleApi.next(5) # next 5全部車表 - All
ApbShuttleApi.all
ApbShuttleApi.all(1) # limit = 1全部車表 - All APB
ApbShuttleApi.all_apb
ApbShuttleApi.all_apb(1) # limit = 1全部車表 - All Orange (亞通客運)
ApbShuttleApi.all_orange
ApbShuttleApi.all_orange(1) # limit = 1其他資訊 - Info
ApbShuttleApi.infoCopyright / License
- Copyright (c) 2015 jiunjiun (quietmes At gmail.com)
- Licensed under MIT licenses.