-
Notifications
You must be signed in to change notification settings - Fork 3
/
GGAPI.py
28 lines (20 loc) · 1.06 KB
/
GGAPI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from services import ProductService, SaleService, StoreService, UserMessageService, CargoService
import Auth
class GGAPI(object):
def __init__(self, username, password, api_key, secret_key):
self._auth = Auth.Auth(username, password, api_key, secret_key)
self._cargoService = CargoService.CargoService(self._auth)
self._productService = ProductService.ProductService(self._auth)
self._saleService = SaleService.SaleService(self._auth)
self._storeService = StoreService.StoreService(self._auth)
self._userMessageService = UserMessageService.UserMessageService(self._auth)
def getCargoService(self) -> CargoService:
return self._cargoService
def getProductService(self) -> ProductService:
return self._productService
def getSaleService(self) -> SaleService:
return self._saleService
def getStoreService(self) -> StoreService:
return self._storeService
def getUserMessageService(self) -> UserMessageService:
return self._userMessageService