From 21fe24701b84a5f60d59a17900d3fb769d7358ed Mon Sep 17 00:00:00 2001 From: avinash Date: Mon, 10 Nov 2025 16:52:55 +0530 Subject: [PATCH 1/2] add fathom auth Flow --- direct/fathom.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 direct/fathom.py diff --git a/direct/fathom.py b/direct/fathom.py new file mode 100644 index 0000000..797e911 --- /dev/null +++ b/direct/fathom.py @@ -0,0 +1,56 @@ +import json + +import scalekit.client +import os +from dotenv import load_dotenv + + + +# Load environment variables +load_dotenv() +connection_name = "fathom-5gcNSEGm" # Get this from your scalekit dashboard +identifier = "yourGongUser" + + +scalekit = scalekit.client.ScalekitClient( + client_id=os.getenv("SCALEKIT_CLIENT_ID"), + client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"), + env_url=os.getenv("SCALEKIT_ENV_URL"), +) +actions = scalekit.actions + + +response = actions.get_or_create_connected_account( + connection_name=connection_name, + identifier=identifier, + authorization_details= { + "static_auth": { + "api_key": "Fathom API Key" + } + } +) + + + +auth_details = response.connected_account.authorization_details +print(auth_details['static_auth']['api_key']) + + +#uncomment to see password +#print(auth_details['static_auth']['password']) + + +update_response = scalekit.actions.update_connected_account( + connection_name=connection_name, + identifier=identifier, + authorization_details= { + "static_auth": { + "api_key": "New Fathom API Key how do ypu do?" + } + } +) + +auth_details = update_response.connected_account.authorization_details + +print("Updated Auth Details:") +print(auth_details['static_auth']['api_key']) \ No newline at end of file From 5d96af234417a8b905333ed1b483280a9523285a Mon Sep 17 00:00:00 2001 From: avinash Date: Wed, 12 Nov 2025 18:23:01 +0530 Subject: [PATCH 2/2] add fathom sample --- direct/fathom.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/direct/fathom.py b/direct/fathom.py index 797e911..bc3b396 100644 --- a/direct/fathom.py +++ b/direct/fathom.py @@ -8,8 +8,8 @@ # Load environment variables load_dotenv() -connection_name = "fathom-5gcNSEGm" # Get this from your scalekit dashboard -identifier = "yourGongUser" +connection_name = "fathom" # Get this from your scalekit dashboard +identifier = "your_fathom_user" scalekit = scalekit.client.ScalekitClient( @@ -36,16 +36,13 @@ print(auth_details['static_auth']['api_key']) -#uncomment to see password -#print(auth_details['static_auth']['password']) - update_response = scalekit.actions.update_connected_account( connection_name=connection_name, identifier=identifier, authorization_details= { "static_auth": { - "api_key": "New Fathom API Key how do ypu do?" + "api_key": "New Fathom API Key" } } )