<filename>HAAApiService.py
import ApiException
from HAAApi import HAAApi


class HAAApiService:
    """ the service for calling API """
    def __init__(self, app_config, log):
        self.app_config = app_config
        self.log = log
        # create the API caller
        self.HAAApiCall = HAAApi()

    def request_api_count(self, api_name):
        try:
            # caller executes to request the count against the API method
            return self.HAAApiCall.request_api_count(api_name)
        except ApiException as e:
            self.log.write_line(e)

<filename>HAAApiService.py
import ApiException
from HAAApi import HAAApi


class HAAApiService:
    """ the service for calling API """
    def __init__(self, app_config, log):
        self.app_config = app_config
        self.log = log
        # create the API caller
        self.HAAApiCall = HAAApi()

    def request_api_count(self, api_name):
        try:
            # caller executes to request the count against the API method
            return self.HAAApiCall.request_api_count(api_name)
        except ApiException as e:
            self.log.write_line(e)

the service for calling API # create the API caller # caller executes to request the count against the API method