Skip to content

Commit 19f0f30

Browse files
feat: added new example
1 parent 9ff8599 commit 19f0f30

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

examples/schedule_for_stop.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import onebusaway
2+
3+
4+
def main_sync() -> None:
5+
client = onebusaway.OnebusawaySDK(api_key="TEST")
6+
stop_id = "1_75403"
7+
schedule_for_stop = client.schedule_for_stop.retrieve(stop_id)
8+
9+
if schedule_for_stop.data and schedule_for_stop.data.entry:
10+
print(schedule_for_stop.data.entry)
11+
else:
12+
print("schedule data or entry is None.")
13+
14+
15+
if __name__ == "__main__":
16+
main_sync()

0 commit comments

Comments
 (0)