Skip to content

Commit

Permalink
feat: refactor: Remove print statement from main_sync function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stainless Bot committed Jul 22, 2024
1 parent dcd9e3b commit b72a7a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/trip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


import onebusaway


def main_sync() -> None:
client = onebusaway.OnebusawaySDK(api_key="TEST")

trip_id = '40_608344966'
trip = client.trip.retrieve(trip_id)

if trip.data and trip.data.entry:
print(trip.data.entry)
else:
print("trip data or entry is None.")

if __name__ == "__main__":
main_sync()

0 comments on commit b72a7a1

Please sign in to comment.