Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from typing import Union
import requests
import flowclient.connection
class ASyncConnection(flowclient.connection.Connection):
"""
A connection to a FlowKit API server.
Attributes
----------
url : str
URL of the API server
token : str
JSON Web Token for this API server
api_version : int
Version of the API to connect to
user : str
Username of token
Parameters
----------