feat: implement backend API clients for multi-marketplace integration and frontend service layer
This commit is contained in:
15
backend/ozon_api/__init__.py
Normal file
15
backend/ozon_api/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from .client import OzonClient
|
||||
from .services.products import ProductsService
|
||||
from .services.fbs import FBSService
|
||||
|
||||
class OzonAPI:
|
||||
"""
|
||||
Main entry point for Ozon SDK.
|
||||
Instantiates all services with a shared client.
|
||||
"""
|
||||
def __init__(self, client_id: str = None, api_key: str = None):
|
||||
self.client = OzonClient(client_id, api_key)
|
||||
|
||||
# Initialize services
|
||||
self.products = ProductsService(self.client)
|
||||
self.fbs = FBSService(self.client)
|
||||
Reference in New Issue
Block a user