| 1234567891011121314151617181920212223 |
- from credentials import Credentials
- from acumatica_odata_client import AcumaticaODataClient
- if __name__ == "__main__":
- # 🔧 Replace with your actual OData endpoint
- odata_url = "https://acumatica.conciseit.net/Odata/Project%20UDF%20Example"
-
- creds = Credentials()
- client = AcumaticaODataClient(
- base_url=odata_url,
- username=creds.username,
- password=creds.password,
- page_size=500, # Adjustable page size
- max_workers=6 # Adjustable thread count
- )
- records = client.fetch_all()
- print(f"\n✅ Total records retrieved: {len(records)}\n")
- for i, record in enumerate(records, 1):
- print(f"[{i}] {record}")
|