From 030077d252bf7ad65195055e5fd9a1ae028fe571 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kuleshov Date: Fri, 7 Oct 2022 16:15:25 +0300 Subject: [PATCH] Update 'Client' --- Client.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Client.md diff --git a/Client.md b/Client.md new file mode 100644 index 0000000..5a29f79 --- /dev/null +++ b/Client.md @@ -0,0 +1,30 @@ +# PythonRMV Client +You are now viewing the main class of the module, its heart. The main Client class, all available normal methods can be found here. + +This page is about the Client class, which exposes high-level methods for an easy access to the API. + +```py +from pyrmv import Client + +client = Client("SampleAPIKey") + +print(client.stop_by_id("A=1@O=Offenbach (Main)-Zentrum Marktplatz\/Frankf. Straße@X=8764456@Y=50105181@U=80@L=3002510@")) +``` + +# Details + +## `class pyrmv.Client` + +### Parameters +* access_key (`str`) – Access ID for identifying the requesting client. Get your key on [RMV website](https://opendata.rmv.de/site/start.html). + +### Methods: +* board_arrival -> `BoardArrival` +* board_departure -> `BoardDeparture` +* him_search -> `List[Message]` +* journey_detail -> `Journey` +* stop_by_coords -> `List[Stop]` +* stop_by_id -> `Union[Stop, None]` +* stop_by_name -> `List[Stop]` +* trip_find -> `List[Trip]` +* trip_recon -> `List[Trip]` \ No newline at end of file