def _dist_ppkefu(self, _request): from ppmessage.ppconfig.config.ppkefu.config import config _d = { "key": self._api.get(API_LEVEL.PPKEFU.lower()).get("key"), "server_url": _get_config().get("server").get("url") } config(_d) return True
def _dist_ppcom(self, _request): from ppmessage.ppconfig.config.ppcom.config import config _d = { "ssl": _get_config().get("server").get("ssl"), "server_name": _get_config().get("server").get("name"), "server_port": _get_config().get("server").get("port"), "key": self._api.get(API_LEVEL.PPCOM.lower()).get("key"), "secret": self._api.get(API_LEVEL.PPCOM.lower()).get("secret"), } config(_d) return True