Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 722 Bytes

USAGE.md

File metadata and controls

39 lines (27 loc) · 722 Bytes
# 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())