Quickstart¶
Usage¶
First, you need to obtain an ID and a key from the EMT website. Once you have your
credentials, simply instantiate a Wrapper
as follows:
from pyemtmad import Wrapper
wrapper = Wrapper('MY_ID', 'MY_PASSWORD')
API endpoints are implemented in:
The functions can be accessed directly from the wrapper through the bus
,
geo
and parking
attributes of the object. For example:
from pyemtmad import Wrapper
wrapper = Wrapper('MY_ID', 'MY_PASSWORD')
# Bus API
b = wrapper.bus.get_calendar(MY_ARGS)
# Geo API
g = wrapper.geo.get_arrive_stop(MY_ARGS)
# Parking API
p = wrapper.parking.detail_parking(MY_ARGS)
Check the Module reference for details on each method and their arguments.