26 lines
708 B
Python
26 lines
708 B
Python
import os
|
|
import logging
|
|
import json
|
|
from dotenv import load_dotenv
|
|
from auth_handler import AuthHandler
|
|
from superoffice_client import SuperOfficeClient
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
def discover_contact_structure():
|
|
load_dotenv(dotenv_path="/home/node/clawd/.env", override=True)
|
|
client = SuperOfficeClient()
|
|
|
|
logger.info("Fetching contact ID 2 to inspect structure...")
|
|
|
|
contact = client._get("Contact/2")
|
|
if contact:
|
|
print("\n--- CONTACT STRUCTURE ---")
|
|
print(json.dumps(contact, indent=2))
|
|
else:
|
|
logger.error("Failed to fetch contact.")
|
|
|
|
if __name__ == "__main__":
|
|
discover_contact_structure()
|