# Synchronous Example
from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.activity.list_activity()
# Handle response
print(res)The same SDK client can also be used to make asynchronous requests by importing asyncio.
# Asynchronous Example
import asyncio
from flexprice import Flexprice
async def main():
async with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = await f_client.activity.list_activity_async()
# Handle response
print(res)
asyncio.run(main())