circle-info
Squadcast is now SolarWinds Incident Response

USAGE

# Synchronous Example
from squadcast import SquadcastSDK


with SquadcastSDK(
    refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:

    res = squadcast_sdk.analytics.get_org_analytics(from_="<value>", to="<value>")

    # Handle response
    print(res)

The same SDK client can also be used to make asynchronous requests by importing asyncio.

# Asynchronous Example
import asyncio
from squadcast import SquadcastSDK

async def main():

    async with SquadcastSDK(
        refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
    ) as squadcast_sdk:

        res = await squadcast_sdk.analytics.get_org_analytics_async(from_="<value>", to="<value>")

        # Handle response
        print(res)

asyncio.run(main())

Last updated