feat(so-sync): final round-trip tools and infrastructure fixes

This commit is contained in:
Moltbot-Jarvis
2026-02-16 13:58:28 +00:00
parent bb306c7717
commit d2e9ee2a70
12 changed files with 512 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ from dotenv import load_dotenv
import urllib.parse
def generate_url():
load_dotenv(dotenv_path="../.env")
load_dotenv(dotenv_path="/home/node/clawd/.env")
client_id = os.getenv("SO_CLIENT_ID") or os.getenv("SO_SOD")
redirect_uri = "https://devnet-tools.superoffice.com/openid/callback" # Das muss im Portal so registriert sein

View File

@@ -0,0 +1,28 @@
# test_client.py
import os
from dotenv import load_dotenv
from superoffice_client import SuperOfficeClient
print("--- Testing Core SuperOfficeClient ---")
# Load environment variables from the root .env file
load_dotenv(dotenv_path="/home/node/clawd/.env")
try:
# Initialize the client
client = SuperOfficeClient()
# Perform a simple read operation
person_id = 1
print(f"Fetching person with ID: {person_id}...")
person_data = client.get_person(person_id)
if person_data:
print(f"✅ SUCCESS! Found Person: {person_data.get('firstname')} {person_data.get('lastname')}")
else:
print(f"❌ ERROR: Could not fetch person {person_id}, but connection was successful.")
except Exception as e:
print(f"❌ FATAL ERROR during client initialization or request: {e}")
print("--- Test complete ---")