feat: implement backend API clients for multi-marketplace integration and frontend service layer
This commit is contained in:
15
backend/mm_api/__init__.py
Normal file
15
backend/mm_api/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user