Skip to content

Commit a87adf5

Browse files
committed
Add example
1 parent 27deb38 commit a87adf5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

examples/control.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Asynchronous Python client for the Geocaching API."""
2+
import asyncio
3+
from geocachingapi import GeocachingApi
4+
5+
async def main():
6+
"""Show example of using the Geocaching API"""
7+
async with GeocachingApi() as api:
8+
print("test")
9+
10+
if __name__ == "__main__":
11+
loop = asyncio.get_event_loop()
12+
loop.run_until_complete(main())

0 commit comments

Comments
 (0)