Files

23 lines
785 B
Python

from dotenv import load_dotenv
import json
from config import Config
from logging_config import setup_logging
from auth_handler import AuthHandler
from superoffice_client import SuperOfficeClient
logger = setup_logging("inspector")
def inspect_person(person_id):
load_dotenv(dotenv_path="/home/node/clawd/.env", override=True)
client = SuperOfficeClient()
logger.info(f"Fetching Person with ID {person_id} to inspect structure...")
person_data = client._get(f"Person/{person_id}")
if person_data:
print(f"\n--- PERSON STRUCTURE (ID: {person_id}) ---")
print(json.dumps(person_data, indent=2))
else:
logger.error(f"Failed to fetch person data.")
if __name__ == "__main__":
target_person_id = 9
inspect_person(target_person_id)