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