Skip to content

Instantly share code, notes, and snippets.

@marcelkore
marcelkore / box_authenticated_client.py
Created April 15, 2022 19:37
function that returns an authenticated box client
def get_authenticated_client(configPath):
"""Get an authenticated Box client for a JWT service account
Arguments:
configPath {str} -- Path to the JSON config file for your Box JWT app
Returns:
Client -- A Box client for the JWT service account
Raises: