Files
AutoMarket/backend/mm_api/__init__.py

16 lines
485 B
Python

from .client import MMClient
from .services.orders import OrdersService
from .services.shipments import ShipmentsService
class MagnitMarketAPI:
"""
Main entry point for Magnit Market SDK.
Instantiates all services with a shared client.
"""
def __init__(self, api_key: str = None):
self.client = MMClient(api_key)
# Initialize services
self.orders = OrdersService(self.client)
self.shipments = ShipmentsService(self.client)