Python
Please find installation instructions and documentation for our Python library on GitHub:
https://github.com/Cluttr-eng/fuse-python
Installation
pip3 install fuse-client
from fuse_client.api_client import ApiClient
from fuse_client.apis.tags.fuse_api import FuseApi
from fuse_client.configuration import Configuration
config = Configuration()
config.api_key['fuseClientId'] = 'my-fuse-client-id'
config.api_key['fuseApiKey'] = 'my-fuse-api-key'
config.host = 'https://sandbox-api.letsfuse.com'
# Uncomment for production
#config.host = 'https://api.letsfuse.com'
fuse_api_client = ApiClient(configuration=config)
fuse_api_instance = FuseApi(api_client=fuse_api_client)
fuse_api_client.default_headers.add("Plaid-Client-Id", 'my-plaid-client-id')
fuse_api_client.default_headers.add("Plaid-Secret", 'my-plaid-secret')
fuse_api_client.default_headers.add("Teller-Application-Id", 'my-teller-application-id')
fuse_api_client.default_headers.add("Teller-Certificate", 'my-teller-certificate')
fuse_api_client.default_headers.add("Teller-Private-Key", 'my-teller-private-key')
fuse_api_client.default_headers.add("Teller-Signing-Secret", 'my-teller-signing-secret')
fuse_api_client.default_headers.add("Mx-Api-Key", 'my-mx-api-key')
fuse_api_client.default_headers.add("Mx-Client-Id", 'my-mx-client-id')
create_session_request = CreateSessionRequest(
supported_financial_institution_aggregators=['plaid', 'teller', 'mx'],
products=['account_details'],
entity=Entity(id=str(request.user.uuid))
)
response = fuse_api_instance.create_session(body=create_session_request)
logger.info(f"{response.body.client_secret}")
logger.info(f"{response.response.data}") #raw json response
Updated 11 months ago